/* Jobtain Profile Editor - Clean Modern Styles */

.jobtain-profile-editor {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.jobtain-profile-editor *,
.jobtain-profile-editor *::before,
.jobtain-profile-editor *::after {
    box-sizing: border-box !important;
}

/* Toggle button */
.jobtain-profile-editor .jobtain-toggle-btn {
    background: #3b82f6 !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-bottom: 20px !important;
}

.jobtain-profile-editor .jobtain-toggle-btn:hover {
    background: #2563eb !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

/* Form container */
.jobtain-profile-editor .jobtain-form-container {
    max-width: 600px !important;
    margin: 0 auto !important;
    padding: 40px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e5e7eb !important;
}

/* Error and success messages */
.jobtain-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 500;
    text-align: center;
}

.jobtain-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-weight: 500;
    text-align: center;
}

/* Form container */
.jobtain-profile-editor #jobtain-profile-form {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Form fields container */
.jobtain-profile-editor .jobtain-form-fields {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    margin-bottom: 32px !important;
}

/* Individual field group */
.jobtain-profile-editor .jobtain-field-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start;
}

.jobtain-profile-editor .jobtain-field-group label {
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 8px !important;
    font-size: 14px !important;
    display: block !important;
}

/* Input styles */
.jobtain-profile-editor .jobtain-input,
.jobtain-profile-editor .jobtain-textarea {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    transition: all 0.2s ease !important;
    background: #ffffff !important;
    font-family: inherit !important;
    color: #111827 !important;
}

.jobtain-profile-editor .jobtain-input::placeholder,
.jobtain-profile-editor .jobtain-textarea::placeholder {
    color: #9ca3af !important;
}

.jobtain-profile-editor .jobtain-input:focus,
.jobtain-profile-editor .jobtain-textarea:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.jobtain-profile-editor .jobtain-textarea {
    min-height: 100px !important;
    resize: vertical !important;
    font-family: inherit !important;
}

/* Field validation states */
.jobtain-field-success {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

.jobtain-field-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Character counter */
.jobtain-char-count {
    font-size: 12px;
    color: #6b7280;
    text-align: right;
    margin-top: 4px;
}

/* Form actions */
.jobtain-form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

/* Submit button */
.jobtain-profile-editor .jobtain-submit-btn {
    background: #3b82f6 !important;
    color: white !important;
    border: none !important;
    padding: 12px 32px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    min-width: 120px !important;
}

.jobtain-profile-editor .jobtain-submit-btn:hover:not(:disabled) {
    background: #2563eb !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.jobtain-profile-editor .jobtain-submit-btn:active {
    transform: translateY(0) !important;
}

.jobtain-profile-editor .jobtain-submit-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    background: #9ca3af !important;
}

/* Message container */
.jobtain-message {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    min-width: 200px;
}

.jobtain-message.jobtain-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.jobtain-message.jobtain-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}


/* Responsive design */
@media (max-width: 768px) {
    .jobtain-profile-editor {
        margin: 20px;
        padding: 24px;
    }
    
    .jobtain-form-fields {
        gap: 20px;
    }
    
    .jobtain-input,
    .jobtain-textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .jobtain-submit-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .jobtain-profile-editor {
        margin: 10px;
        padding: 20px;
    }

    .jobtain-form-fields {
        gap: 16px;
    }
    
    .jobtain-field-group label {
        font-size: 13px;
    }
}

/* Focus management for accessibility */
.jobtain-profile-editor :focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}
