/* ==========================================================================
   DIARAMA - SYSTEME DE DESIGN PREMIUM SAAS (INDIGO & SLATE)
   ========================================================================== */

/* Variables CSS - Thème Sombre Premium "Bleu Ardoise Doux" par défaut */
:root {
    --primary: #6366f1; /* Indigo vibrant */
    --primary-dark: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.15);
    --secondary: #06b6d4;
    --secondary-dark: #0891b2;
    --secondary-light: rgba(6, 182, 212, 0.15);
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    
    --bg-color: #0f172a; /* Bleu ardoise doux agréable pour la lecture */
    --surface: rgba(30, 41, 59, 0.7); /* Verre ardoise sombre */
    --sidebar-bg: #1e293b; /* Fond de la barre latérale ardoise doux */
    --input-bg: #1e293b;
    --text-color: #f8fafc; /* Texte blanc/argenté */
    --text-muted: #94a3b8;
    --inactive-color: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);
    
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --sidebar-width: 280px;
}

/* --- Resets --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* Background grid motif subtil */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(var(--border-color) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   LAYOUT GÉNERAL ET RESPONSIVITÉ (MOBILE-FIRST)
   ========================================================================== */

/* Layout par défaut : Mobile / Tablette */
body.logged-in {
    padding-bottom: 90px; /* Espace pour la barre de nav mobile */
}

.topbar {
    background: var(--gradient);
    color: white;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    border-radius: 0 0 20px 20px;
    transition: all 0.3s ease;
}

.container {
    padding: 20px;
    max-width: 100%;
}

.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: calc(100% - 40px);
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    z-index: 900;
    overflow: hidden; /* empêche tout débordement */
}

.nav-links-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    overflow-x: auto;         /* scroll horizontal si trop d'items */
    overflow-y: hidden;
    scrollbar-width: none;    /* Firefox : cache la scrollbar */
    -ms-overflow-style: none; /* IE/Edge : cache la scrollbar */
    gap: 0;
    padding: 0 4px;
}
/* Chrome/Safari : cache la scrollbar horizontale */
.nav-links-wrapper::-webkit-scrollbar {
    display: none;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.7rem;  /* légèrement réduit pour tenir sur mobile */
    font-weight: 500;
    flex: 0 0 auto;     /* ne rétrécit pas, taille naturelle */
    min-width: 58px;    /* largeur minimale garantie par item */
    padding: 2px 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary);
    font-weight: 700;
}

.nav-item.active i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.3));
}

/* Cacher les éléments de la sidebar PC sur mobile */
.sidebar-logo,
.sidebar-footer {
    display: none;
}

/* --- Layout PC (SaaS plein écran) --- */
@media (min-width: 1024px) {
    body.logged-in {
        padding-bottom: 0;
        display: flex;
        flex-direction: row;
        min-height: 100vh;
    }
    
    /* Repositionnement du Topbar */
    body.logged-in .topbar {
        position: fixed;
        top: 0;
        right: 0;
        width: calc(100% - var(--sidebar-width));
        height: 70px;
        z-index: 800;
        border-radius: 0;
        background: var(--surface);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        color: var(--text-color);
        border-bottom: 1px solid var(--border-color);
        box-shadow: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 40px;
    }

    /* Ajustement des boutons & textes du header sur PC */
    body.logged-in .topbar i.fa-store,
    body.logged-in .topbar .header-logout-btn,
    body.logged-in .topbar div[style*="width: 30px"] {
        display: none !important;
    }

    body.logged-in .topbar span {
        font-size: 1.25rem;
        font-weight: 800;
        color: var(--text-color);
    }
    
    /* Microphone IA dans le topbar */
    body.logged-in #global-mic-btn {
        color: var(--text-color) !important;
        background: var(--bg-color) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow-sm);
        transition: all 0.2s;
    }
    body.logged-in #global-mic-btn:hover {
        transform: scale(1.05);
        color: var(--primary) !important;
        border-color: var(--primary) !important;
    }
    
    /* Container principal */
    body.logged-in .container {
        margin-left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
        padding: 110px 40px 40px 40px; /* padding top laisse place au topbar */
        min-height: 100vh;
        max-width: none;
        margin-top: 0;
        background: transparent;
        box-shadow: none;
    }
    
    /* Transformation en Sidebar Navigation */
    body.logged-in .bottom-nav {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: var(--sidebar-width);
        height: 100vh;
        background: var(--sidebar-bg);
        border: none;
        border-right: 1px solid var(--border-color);
        border-radius: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: stretch;
        padding: 0;
        z-index: 1000;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.02);
    }
    
    .nav-links-wrapper {
        flex-direction: column;
        justify-content: flex-start;
        padding: 10px 18px;
        gap: 8px;
        flex-grow: 1;
        overflow-y: auto;
        overflow-x: hidden;
        /* Scrollbar fine et stylée pour la sidebar PC */
        scrollbar-width: thin;
        scrollbar-color: rgba(99,102,241,0.3) transparent;
    }
    .nav-links-wrapper::-webkit-scrollbar {
        width: 4px;
        display: block; /* réactive l'affichage sur PC uniquement */
    }
    .nav-links-wrapper::-webkit-scrollbar-track {
        background: transparent;
    }
    .nav-links-wrapper::-webkit-scrollbar-thumb {
        background: rgba(99,102,241,0.3);
        border-radius: 4px;
    }
    .nav-links-wrapper::-webkit-scrollbar-thumb:hover {
        background: rgba(99,102,241,0.6);
    }
    
    /* Items de navigation Sidebar */
    .nav-item {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 12px 18px !important;
        border-radius: 12px !important;
        font-size: 0.95rem !important;
        color: var(--text-muted);
        width: 100% !important;
        flex: none !important;
        gap: 14px;
        transition: all 0.2s ease;
    }
    
    .nav-item i {
        font-size: 1.25rem !important;
        margin-bottom: 0 !important;
        width: 24px;
        text-align: center;
        transition: transform 0.2s;
    }
    
    .nav-item:hover {
        background: rgba(79, 70, 229, 0.06);
        color: var(--primary);
    }
    
    .nav-item:hover i {
        transform: translateX(2px);
    }
    
    .nav-item.active {
        background: var(--primary);
        color: white !important;
        box-shadow: 0 4px 15px rgba(79, 70, 229, 0.25);
    }
    
    .nav-item.active i {
        color: white !important;
        filter: none !important;
    }
    
    /* Branding & Footer Sidebar */
    .sidebar-logo {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 28px 24px;
        font-size: 1.4rem;
        font-weight: 800;
        letter-spacing: -0.5px;
        color: var(--text-color);
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 15px;
    }
    
    .sidebar-logo i {
        background: var(--gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    .sidebar-footer {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 24px;
        border-top: 1px solid var(--border-color);
    }
    
    .sidebar-user {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .user-avatar {
        font-size: 2.2rem;
        color: var(--primary);
        display: flex;
        align-items: center;
    }
    
    .user-info {
        display: flex;
        flex-direction: column;
    }
    
    .user-name {
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--text-color);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }
    
    .user-role {
        font-size: 0.75rem;
        color: var(--text-muted);
        font-weight: 500;
    }
    
    .sidebar-logout {
        display: flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        color: var(--text-muted);
        font-weight: 600;
        font-size: 0.9rem;
        padding: 10px 14px;
        border-radius: 10px;
        transition: all 0.2s;
    }
    
    .sidebar-logout:hover {
        background: rgba(239, 68, 68, 0.08);
        color: #ef4444;
    }
}

/* ==========================================================================
   COMPOSANTS DE FORMULAIRES & BOUTONS
   ========================================================================== */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--input-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Toggle mot de passe */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-wrapper .form-control {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 16px;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
    font-size: 1.1rem;
}

.toggle-password:hover {
    color: var(--primary);
}

/* Boutons */
.btn {
    width: 100%;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background-color: var(--bg-color);
    transform: translateY(-2px);
}

/* Alertes */
.alert {
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    box-shadow: var(--shadow-sm);
    line-height: 1.5;
}

.alert i, .alert svg {
    margin-right: 8px;
    vertical-align: middle;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-info {
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

/* Login container */
.login-container {
    max-width: 440px;
    margin: 60px auto;
    padding: 40px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   TABLEAU DE BORD (DASHBOARD)
   ========================================================================== */

.dashboard-header {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.dashboard-header p {
    color: var(--text-muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.stat-card {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

a.stat-card.clickable {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.stat-card.clickable:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.stat-card.alert-border {
    border-color: #ef4444;
}

.stat-card.alert-border .stat-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.stat-icon {
    font-size: 1.6rem;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-details h3 {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 30px 0 20px 0;
    letter-spacing: -0.2px;
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

/* ==========================================================================
   GRIDS ET LISTES (STOCK, CLIENTS, DEVIS)
   ========================================================================== */

.search-bar {
    margin-bottom: 24px;
}

/* Liste des produits (Stock) */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.product-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.product-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.product-meta span {
    font-weight: 700;
    color: var(--text-color);
}

.badge-stock {
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
}

.badge-stock.success { background-color: rgba(16, 185, 129, 0.15); color: #10b981; }
.badge-stock.warning { background-color: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.badge-stock.danger { background-color: rgba(239, 68, 68, 0.15); color: #ef4444; }

.btn-icon {
    color: white;
    background: var(--gradient);
    font-size: 1.1rem;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.btn-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

/* Liste des Devis / Clients */
.quote-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .quote-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
        gap: 20px;
    }
}

.quote-card {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.quote-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.quote-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-color);
}

.quote-meta {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.badge-status {
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
}

.badge-status.brouillon { background-color: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.badge-status.valide { background-color: rgba(16, 185, 129, 0.15); color: #10b981; }
.badge-status.annule { background-color: rgba(239, 68, 68, 0.15); color: #ef4444; }
.badge-status.paye { background-color: rgba(16, 185, 129, 0.15); color: #10b981; }
.badge-status.partiel { background-color: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.badge-status.impaye { background-color: rgba(239, 68, 68, 0.15); color: #ef4444; }

/* Devis Builder (Form) */
.quote-section {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.add-product-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.item-row:last-child {
    border-bottom: none;
}

.item-info {
    flex: 1;
}

.item-info h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 4px;
}

.item-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.item-price {
    font-weight: 700;
    color: var(--primary);
    margin-right: 15px;
}

.btn-remove {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove:hover {
    background: #ef4444;
    color: white;
}

/* Contacts form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-md);
}

/* Micro-animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ==========================================================================
   MODAL DES PARAMÈTRES GLOBAUX
   ========================================================================== */
.settings-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(9, 13, 22, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.settings-modal-overlay.show {
    opacity: 1;
}

.settings-modal-card {
    background: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 90%;
    max-width: 480px;
    box-shadow: var(--shadow-md), 0 20px 40px rgba(0,0,0,0.25);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

.settings-modal-overlay.show .settings-modal-card {
    transform: translateY(0);
}

.settings-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.settings-modal-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-modal-header h3 i {
    color: var(--primary);
}

.settings-close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.settings-close-btn:hover {
    color: #ef4444;
}

.settings-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

.user-profile-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.user-avatar-large {
    font-size: 3rem;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.user-details h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-color);
}

.user-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 99px;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-option-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.settings-option-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    background: var(--surface);
}

.option-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 14px;
}

.option-info {
    flex-grow: 1;
}

.option-info h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.option-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.arrow-icon {
    color: var(--inactive-color);
    font-size: 0.85rem;
    transition: transform 0.2s;
}

.settings-option-item:hover .arrow-icon {
    transform: translateX(4px);
    color: var(--primary);
}