/* Account Settings Modal Overlay */
.account-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: 2000;
}

/* Account Settings Modal */
.account-modal {
    background: white;
    border-radius: 12px;
    max-width: 680px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Modal Header */
.account-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.account-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #3c90c4;
    margin: 0 0 4px 0;
}

.account-modal-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.account-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #6b7280;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.account-modal-close:hover {
    background-color: #f3f4f6;
    color: #374151;
}

/* Modal Body */
.account-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

/* Account Section */
.account-section {
    margin-bottom: 30px;
}

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

.account-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 20px 0;
}

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

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

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

.account-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    box-sizing: border-box;
    transition: all 0.2s;
}

.account-form-input:focus {
    outline: none;
    border-color: #3c90c4;
    box-shadow: 0 0 0 3px rgba(60, 144, 196, 0.1);
}

.account-form-input:readonly {
    background-color: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

.account-form-input::placeholder {
    color: #9ca3af;
}

/* Input Wrapper */
.account-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.account-input-wrapper .account-form-input {
    padding-right: 45px;
}

.account-input-icon {
    position: absolute;
    right: 14px;
    color: #9ca3af;
    font-size: 16px;
    pointer-events: none;
}

.account-password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    font-size: 16px;
}

.account-password-toggle:hover {
    color: #6b7280;
}

/* Error Message */
.account-error-message {
    color: #ef4444;
    font-size: 14px;
    padding: 12px 16px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    margin-top: 20px;
}

/* Modal Footer */
.account-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 20px 30px;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.account-btn-cancel {
    padding: 12px 24px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #374151;
    transition: all 0.2s;
    font-size: 14px;
}

.account-btn-cancel:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

.account-btn-save {
    padding: 12px 24px;
    background-color: #3c90c4;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-btn-save:hover {
    background-color: #2b7cb0;
}

.account-btn-save:active {
    transform: scale(0.98);
}

/* Responsive */
@media (max-width: 768px) {
    .account-modal {
        max-width: 95%;
        width: 95%;
    }

    .account-modal-header,
    .account-modal-body,
    .account-modal-footer {
        padding: 20px;
    }

    .account-modal-title {
        font-size: 1.25rem;
    }

    .account-form-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}
