/* --- GLOBAAL DARK MODE & PREMIUM GLASS OVERRIDES --- */
      
      :root {
        --brand-primary: #6366f1; /* Indigo blauw */
        --brand-primary-hover: #818cf8;
        --brand-dark: #0f172a;
        --bg-main: #020617; 
        --accent: #10b981;
        --glass-bg: rgba(15, 23, 42, 0.45);
        --glass-border: rgba(255, 255, 255, 0.08);
      }

      body {
        font-family: "Inter", sans-serif;
        background-color: var(--bg-main);
        background-image: radial-gradient(circle at 50% -20%, #1e1b4b 0%, #020617 100%);
        background-attachment: fixed;
        color: white;
      }

      /* 1. Echte Glassmorphism Kaarten */
      .bg-white, .bg-slate-50 {
        background-color: var(--glass-bg) !important;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-color: var(--glass-border) !important;
        color: white !important;
      }

      .card-premium {
        background: var(--glass-bg) !important;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 1.2rem;
        border: 1px solid var(--glass-border) !important;
        box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5) !important;
        color: white !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
      }

      button.card-premium:hover, a.card-premium:hover, .card-premium.group:hover {
        transform: translateY(-4px);
        border-color: rgba(99, 102, 241, 0.4) !important;
        box-shadow: 0 15px 35px -10px rgba(99, 102, 241, 0.2) !important;
        background: rgba(30, 41, 59, 0.6) !important;
      }

      .balance-card {
        background: linear-gradient(135deg, rgba(30, 27, 75, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%) !important;
        border: 1px solid rgba(99, 102, 241, 0.25) !important;
        box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255,255,255,0.05) !important;
      }

      /* 2. Verbeterde Knoppen met Glow Hover */
      .btn-modern {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.75rem 1.5rem;
        min-height: 3.5rem;
        border-radius: 0.85rem;
        font-weight: 700;
        font-size: 0.875rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        background: rgba(255, 255, 255, 0.05); 
        border: 1px solid var(--glass-border);
        color: white;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        width: 100%;
        line-height: 1.2;
      }
      
      .btn-modern:hover {
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
        box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.3);
      }

      .btn-modern:active {
        transform: translateY(1px);
      }

      .btn-modern:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        filter: grayscale(0.5);
      }

      .btn-primary, .btn-accent {
        background: var(--brand-primary) !important;
        border: 1px solid #818cf8 !important;
        color: white !important;
        box-shadow: 0 0 15px rgba(99, 102, 241, 0.2) !important;
      }

      .btn-primary:hover, .btn-accent:hover {
        background: var(--brand-primary-hover) !important;
        border-color: #a5b4fc !important;
        box-shadow: 0 0 25px rgba(99, 102, 241, 0.5) !important;
      }

      .btn-emerald { background: #10b981 !important; border: 1px solid #34d399 !important; color: white !important; }
      .btn-rose { background: #e11d48 !important; border: 1px solid #fb7185 !important; color: white !important; }
      .btn-amber { background: #d97706 !important; border: 1px solid #fbbf24 !important; color: white !important; }

      /* 3. Vloekende Lichte Elementen Fixen */
      .tip-card {
        background: rgba(30, 58, 138, 0.15) !important; 
        border: 1px solid rgba(99, 102, 241, 0.3) !important;
        backdrop-filter: blur(12px);
      }
      
      .tip-card p.text-slate-700 {
        color: #cbd5e1 !important; 
      }

      /* 4. Tekst en Contrast Optimalisatie */
      .text-slate-900, .text-slate-800, .text-slate-700 { color: #f8fafc !important; }
      .text-slate-500, .text-slate-400 { color: #94a3b8 !important; }
      .text-blue-600 { color: #818cf8 !important; }
      .border-slate-100, .border-slate-200, .border-slate-50 { border-color: var(--glass-border) !important; }

      /* --- 5. INVOERVELDEN (Inputs, Selects & Datums) --- */
      
      .input-modern {
        background-color: rgba(15, 23, 42, 0.7) !important; 
        color: #ffffff !important; 
        border: 1px solid rgba(99, 102, 241, 0.6) !important; /* Standaard de blauwe rand zoals op je foto */
        border-radius: 0.85rem !important; 
        padding: 0 1.25rem !important;
        height: 3.5rem !important;
        font-size: 1rem !important;
        width: 100% !important;
        transition: all 0.3s ease !important;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1) !important; 
        appearance: none !important;
        box-sizing: border-box !important;
        color-scheme: dark !important; 
      }

      .input-modern:focus {
        outline: none !important;
        background-color: rgba(15, 23, 42, 0.95) !important;
        border-color: #818cf8 !important; /* Lichter blauw bij aanklikken */
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.1) !important; 
      }

      .input-modern::placeholder {
        color: #64748b !important;
        opacity: 1 !important;
      }

      select.input-modern { background-image: none !important; }
      select.input-modern option { background-color: #0f172a !important; color: #ffffff !important; }

      ::-webkit-calendar-picker-indicator {
        filter: invert(1) opacity(0.5);
        cursor: pointer;
      }

      /* --- 6. GLOBAAL SCROLLBAR THEMA --- */
      /* Door de '.custom-scrollbar' tekst weg te halen, geldt dit voor de hele website */
      ::-webkit-scrollbar {
        width: 8px;  /* Verticale dikte */
        height: 8px; /* Horizontale dikte (voor bijvoorbeeld de categorie-knoppen) */
      }
      
      ::-webkit-scrollbar-track {
        background: rgba(2, 6, 23, 0.4); /* Mooie diepe achtergrondkleur */
        border-radius: 10px;
      }
      
      ::-webkit-scrollbar-thumb {
        background: rgba(99, 102, 241, 0.4); /* De paars/blauwe kleur */
        border-radius: 10px;
        border: 2px solid rgba(2, 6, 23, 0.4); /* Zorgt voor een beetje padding om de balk heen */
      }
      
      ::-webkit-scrollbar-thumb:hover {
        background: rgba(99, 102, 241, 0.8); /* Oplichten als je er met je muis op staat */
      }

      /* Verbergt de scrollbar helemaal als we de 'no-scrollbar' class gebruiken */
      .no-scrollbar::-webkit-scrollbar {
        display: none;
      }

      /* Extra UI Elements */
      .clip-path-slant { clip-path: polygon(0 0, 100% 0, 100% 70%, 0% 100%); }

      @keyframes growBar { from { width: 0; } }
      .animate-grow { animation: growBar 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
      .fade-up { animation: fadeUp 0.4s ease-out forwards; }
      @keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

    /* Nieuwe, vloeiende instellingen animatie */
      .animate-zoom-in { animation: zoomIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
      @keyframes zoomIn { 
        0% { opacity: 0; transform: scale(0.97) translateY(10px); } 
        100% { opacity: 1; transform: scale(1) translateY(0); } 
      }



      .no-scrollbar::-webkit-scrollbar { display: none; }

      .filter-chip {
        padding: 0.5rem 1rem;
        border-radius: 2rem;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        transition: all 0.2s;
        cursor: pointer;
        white-space: nowrap;
        border: 1px solid var(--glass-border);
        background: rgba(255,255,255,0.05);
        color: #94a3b8;
      }

      .filter-chip.active {
        background: var(--brand-primary);
        color: white;
        border-color: var(--brand-primary);
      }

      .security-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.25rem 0.75rem;
        background: rgba(16, 185, 129, 0.1);
        color: #34d399;
        border: 1px solid rgba(16, 185, 129, 0.2);
        border-radius: 2rem;
        font-size: 0.6rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.05em;
      }

      /* Mobile FAB Menu */
      #mobile-action-menu {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: none;
        opacity: 0;
        transform: translateY(20px);
        bottom: 100px; 
      }
      #mobile-action-menu.active {
        display: block !important;
        opacity: 1;
        transform: translateY(0);
      }

      /* Login screen specifieke fixes */
      .hero-gradient { background: radial-gradient(circle at 50% -20%, #1e1b4b 0%, #020617 80%); }
      /* --- VERBERG RECAPTCHA LOGO --- */
      .grecaptcha-badge { 
        visibility: hidden !important;
        opacity: 0 !important;
        display: none !important;
      }

[data-theme="light"] {
    --brand-primary: #4f46e5;
    --brand-primary-hover: #4338ca;
    --brand-dark: #f8fafc;
    --bg-main: #f1f5f9;
    --accent: #059669;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] body {
    background-image: radial-gradient(circle at 50% -20%, #e2e8f0 0%, #f1f5f9 100%);
    color: #0f172a;
}

[data-theme="light"] .text-slate-900, [data-theme="light"] .text-white { color: #0f172a !important; }
[data-theme="light"] .text-slate-400 { color: #64748b !important; }
[data-theme="light"] .card-premium {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1) !important;
    color: #0f172a !important;
}
[data-theme="light"] .balance-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.8) 100%) !important;
    border: 1px solid rgba(79, 70, 229, 0.2) !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1) !important;
}
[data-theme="light"] .btn-modern {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--glass-border);
    color: #0f172a;
}
[data-theme="light"] .input-modern {
    background-color: rgba(255, 255, 255, 0.9) !important;
    color: #0f172a !important;
    border: 1px solid rgba(79, 70, 229, 0.3) !important;
}
[data-theme="light"] .input-modern::placeholder { color: #94a3b8 !important; }
[data-theme="light"] select.input-modern option { background-color: #ffffff !important; color: #0f172a !important; }
