/* ================================================================================
   ACCOUNT.CSS - Account Management Styles
   ================================================================================ */

/* Delete Account Modal */
.delete-account-modal {
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.delete-account-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.delete-account-modal .modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    color: #666;
}

/* Warning Box */
.delete-account-modal .warning-box {
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    color: #991b1b;
}

.delete-account-modal .warning-box p {
    margin: 0 0 0.5rem 0;
}

.delete-account-modal .warning-box p:first-child {
    font-weight: 700;
}

.delete-account-modal .warning-box ul {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}

.delete-account-modal .warning-box li {
    margin: 0.25rem 0;
}

/* Form Elements */
.delete-account-modal .form-group {
    margin: 1.5rem 0;
}

.delete-account-modal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.delete-account-modal .form-group input[type="text"],
.delete-account-modal .form-group input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.delete-account-modal input[type="password"] {
    text-transform: uppercase;
}

.delete-account-modal .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.delete-account-modal .checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
}

/* Error Message */
.delete-account-modal .error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 0.75rem;
    color: #991b1b;
    margin: 1rem 0;
}

/* Buttons */
.delete-account-modal .modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.delete-account-modal .modal-actions button {
    flex: 1;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.delete-account-modal .btn-danger {
    background: #dc3545;
    color: white;
}

.delete-account-modal .btn-danger:hover:not(:disabled) {
    background: #c82333;
}

.delete-account-modal .btn-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.delete-account-modal .btn-secondary {
    background: #6c757d;
    color: white;
}

.delete-account-modal .btn-secondary:hover {
    background: #5a6268;
}

/* More Menu Danger Item Styling */
.menu-item.danger-item {
    border-left: 3px solid #dc3545;
}

.menu-item.danger-item:hover {
    background: #fff5f5;
}

.menu-badge.danger {
    background: #dc3545;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 480px) {
    .delete-account-modal {
        width: 95%;
    }
    
    .delete-account-modal .modal-actions {
        flex-direction: column;
    }
}




/* Account Modal Styles */

#accountModal .modal-content {
   padding: clamp(var(--space-lg), 3vw, var(--space-3xl));
   width: 100%;
   border-radius: 0;
}

#accountModal .account-card {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.1), rgba(218, 165, 32, 0.1));
    border-radius: 12px;
    margin-bottom: 20px;
}

#accountModal .account-avatar-large {
    width: 80px;
    height: 80px;
    font-size: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#accountModal .account-card h3 {
    margin: 0 0 15px;
    font-size: 24px;
    color: #333;
}

#accountModal .account-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

#accountModal .stat-item {
    text-align: center;
}

#accountModal .stat-value {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #8B4513;
}

#accountModal .stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-top: 4px;
}

#accountModal .account-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

#accountModal .account-actions .btn {
    justify-content: flex-start;
    padding: 12px 16px;
}

#accountModal .account-actions .btn span {
    margin-right: 10px;
    font-size: 20px;
}

#accountModal .divider {
    height: 1px;
    background: #e0e0e0;
    margin: 20px 0;
}

#accountModal .danger-zone {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#accountModal .btn-danger-outline {
    border: 1px solid #dc3545;
    color: #dc3545;
    background: transparent;
}

#accountModal .btn-danger-outline:hover {
    background: #dc3545;
    color: white;
}

#accountModal .modal-small {
    max-width: 400px;
    width: 90%;
}

/* Sign Out Confirmation Modal */
#signOutConfirmModal .modal-content {
    max-width: 400px;
    padding: 2rem;
    text-align: center;
}

#signOutConfirmModal h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

#signOutConfirmModal .warning-text {
    color: #f39c12;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

#signOutConfirmModal p {
    color: #666;
    margin-bottom: 2rem;
}

#signOutConfirmModal .modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

#signOutConfirmModal .btn {
    flex: 1;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

#signOutConfirmModal .btn-secondary {
    background: #e0e0e0;
    color: #333;
}

#signOutConfirmModal .btn-secondary:hover {
    background: #d0d0d0;
}

#signOutConfirmModal .btn-danger {
    background: #e74c3c;
    color: white;
}

#signOutConfirmModal .btn-danger:hover {
    background: #c0392b;
}

/* Delete Account Modal */
#deleteAccountModal .modal-content {
    max-width: 500px;
}

#deleteAccountModal .modal-danger {
    border-top: 3px solid #e74c3c;
}

#deleteAccountModal .danger-warning {
    background: #fff5f5;
    border: 1px solid #ffdddd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

#deleteAccountModal .danger-warning p {
    color: #c0392b;
    margin: 0.5rem 0;
}

#deleteAccountModal .danger-warning ul {
    color: #666;
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

#deleteAccountModal .delete-form {
    margin: 1.5rem 0;
}

#deleteAccountModal .form-group {
    margin-bottom: 1rem;
}

#deleteAccountModal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

#deleteAccountModal .form-group input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

#deleteAccountModal .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

#deleteAccountModal .checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
}

#deleteAccountModal .checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
    color: #666;
}

#deleteAccountModal .error-message {
    background: #ffebee;
    color: #c62828;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
}

#deleteAccountModal .modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

#deleteAccountModal .btn-danger {
    background: #e74c3c;
    color: white;
}

#deleteAccountModal .btn-danger:hover {
    background: #c0392b;
}

#deleteAccountModal .btn-danger:disabled {
    background: #999;
    cursor: not-allowed;
}
