/* Styles for Edit Profile page */
/* @import url('account-shared.css'); */

/* Header Styles */
.header {
    width: 100%;
    background: linear-gradient(135deg, #382c42 0%, #18141c 100%);
    box-shadow: 0 4px 20px rgba(56, 44, 66, 0.18);
    padding: 0;
    margin-bottom: 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px;
    min-height: 60px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-action-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.header-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header-center {
    flex: 1;
    text-align: center;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Save Button */
.save-btn {
    background: #6366F1;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.save-btn:hover {
    background: #4F46E5;
}

.save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Main Content */
.main-content {
    padding: 16px;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 40px;
}

/* Status Container */
.status-container {
    margin-bottom: 16px;
    background: #F8FAFC;
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 20px;
    background: #F59E0B;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.status-badge i {
    font-size: 16px;
}

/* Form Sections */
.form-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid #E5E7EB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.form-section:last-child {
    margin-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 4px;
}

.section-title i {
    color: #6366F1;
}

.section-subtitle {
    font-size: 14px;
    color: #6B7280;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Form Rows */
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}

.form-row .form-group {
    flex: 1;
}

.half-width {
    flex: 1 !important;
    min-width: 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 15px;
    color: #1F2937;
    background: #fff;
    transition: all 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group input::placeholder {
    color: #9CA3AF;
}

.form-group input.readonly {
    background: #F9FAFB;
    color: #6B7280;
    cursor: not-allowed;
}

.helper-text {
    display: block;
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 4px;
}

/* Email Container */
.email-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.email-container input {
    flex: 1;
}

.verify-email-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #6366F1;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.verify-email-btn:hover {
    background: #EEF2FF;
    border-color: #6366F1;
}

.verify-email-btn.verified {
    background: #D1FAE5;
    border-color: #10B981;
    color: #10B981;
}

.change-email-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #F3F4F6;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #6366F1;
    cursor: pointer;
    transition: all 0.2s;
}

.change-email-btn:hover {
    background: #EEF2FF;
    border-color: #6366F1;
}

/* Address Toggle */
.address-toggle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding: 8px 0;
}

.address-toggle input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #D1D5DB;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s;
}

.address-toggle input[type="checkbox"]:checked + .checkbox-custom {
    background: #6366F1;
    border-color: #6366F1;
}

.address-toggle input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 12px;
}

.toggle-content {
    flex: 1;
}

.toggle-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 2px;
}

.toggle-subtitle {
    display: block;
    font-size: 12px;
    color: #6B7280;
}

/* Checkout Status */
.checkout-status {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #F8FAFC;
    border-radius: 12px;
    padding: 16px;
}

.checkout-status-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkout-status-icon i {
    font-size: 20px;
    color: #F59E0B;
}

.checkout-status-content {
    flex: 1;
}

.checkout-status-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 4px 0;
}

.checkout-status-content p {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    line-height: 1.4;
}

/* Form Spacer */
.form-spacer {
    height: 40px;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.alert-modal {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 320px;
    width: 90%;
    text-align: center;
}

.alert-header {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #EEF2FF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.alert-header i {
    font-size: 24px;
    color: #6366F1;
}

.alert-modal h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 8px 0;
}

.alert-modal p {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.alert-btn {
    background: #6366F1;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.alert-btn:hover {
    background: #4F46E5;
}

/* Responsive Styles */
@media (max-width: 600px) {
    .header-container {
        padding: 0 12px;
        min-height: 56px;
    }
    
    .header-title {
        font-size: 16px;
    }
    
    .save-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .main-content {
        padding: 12px;
        padding-bottom: 30px;
    }
    
    .form-section {
        padding: 16px;
        border-radius: 10px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .half-width {
        width: 100%;
    }
    
    .email-container {
        flex-wrap: wrap;
    }
    
    .email-container input {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .verify-email-btn,
    .change-email-btn {
        flex: 1;
        justify-content: center;
    }
    
    .checkout-status {
        padding: 12px;
    }
    
    .checkout-status-icon {
        width: 40px;
        height: 40px;
    }
    
    .checkout-status-icon i {
        font-size: 18px;
    }
    
    .checkout-status-content h4 {
        font-size: 14px;
    }
    
    .checkout-status-content p {
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .header-action-btn {
        font-size: 18px;
        padding: 6px 8px;
    }
    
    .status-badge {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .form-group input {
        padding: 10px 12px;
        font-size: 14px;
    }
}
