/* ==========================================================================
   Grava AI - Tema Claro
   Gerado automaticamente a partir das classes usadas (gen_light.py).
   Ativado por <html class="theme-light">.
   ========================================================================== */

html.theme-light {
    color-scheme: light;
    --bg-dark: #f4f6fb;
    --card-bg: rgba(255, 255, 255, 0.82);
    --border-color: rgba(15, 23, 42, 0.08);
}
html.theme-light body,
html.theme-light .bg-darkBg {
    background-color: #f4f6fb;
    background-image:
        radial-gradient(1200px 500px at 10% -10%, rgba(10, 138, 230, 0.07), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(85, 201, 31, 0.06), transparent 60%);
    background-attachment: fixed;
    color: #1e293b;
}
html.theme-light .glass-panel {
    background: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.12);
}
html.theme-light header.glass-panel { box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06); }
html.theme-light .glass-card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(15, 23, 42, 0.07);
}
html.theme-light .shadow-xl,
html.theme-light .shadow-2xl { --tw-shadow-color: rgba(15, 23, 42, 0.08); }

/* Texto branco vira escuro, exceto sobre fundos coloridos (botões, gradientes, avatares) */
html.theme-light .text-white { color: #0f172a; }
html.theme-light .hover\:text-white:hover { color: #0f172a; }
html.theme-light :is([class*="from-indigo-5"],[class*="from-indigo-6"],[class*="from-emerald-6"],[class*="from-purple-6"],
    .bg-indigo-500,.bg-indigo-600,.bg-indigo-600\/80,.bg-emerald-600,.bg-blue-600,.bg-purple-600,.bg-amber-600,.bg-red-600,.bg-black,.bg-black\/70).text-white,
html.theme-light :is([class*="from-indigo-5"],[class*="from-indigo-6"],[class*="from-emerald-6"],[class*="from-purple-6"],
    .bg-indigo-500,.bg-indigo-600,.bg-indigo-600\/80,.bg-emerald-600,.bg-blue-600,.bg-purple-600,.bg-amber-600,.bg-red-600) .text-white,
html.theme-light .hover\:bg-indigo-600:hover.hover\:text-white:hover,
html.theme-light .hover\:bg-indigo-500:hover.hover\:text-white:hover { color: #ffffff; }

/* Placeholder e inputs */
html.theme-light input::placeholder,
html.theme-light textarea::placeholder { color: #94a3b8; }
html.theme-light select option { background: #ffffff; color: #1e293b; }

/* Step bubbles */
html.theme-light .step-bubble.active { box-shadow: 0 0 0 4px rgba(10, 138, 230, 0.15); border-color: #0a8ae6; color: #0158a8; background: #eaf6ff; }
html.theme-light .step-bubble.completed { background: #10b981; color: #ffffff; border-color: #34d399; }

/* Scrollbar */
html.theme-light ::-webkit-scrollbar-track { background: #eef2f7; }
html.theme-light ::-webkit-scrollbar-thumb { background: rgba(10, 138, 230, 0.35); }
html.theme-light ::-webkit-scrollbar-thumb:hover { background: rgba(10, 138, 230, 0.6); }

html.theme-light .dropzone-active { background-color: rgba(10, 138, 230, 0.06) !important; }

/* Transição suave ao alternar */
html.theme-transition, html.theme-transition *, html.theme-transition *::before, html.theme-transition *::after {
    transition: background-color .25s ease, border-color .25s ease, color .25s ease !important;
}

/* ---- Mapeamento de utilitários ---- */
html.theme-light .text-slate-100 { color: #0f172a; }
html.theme-light .border-slate-800 { border-color: #e2e8f0; }
html.theme-light .text-slate-300 { color: #334155; }
html.theme-light .text-slate-600 { color: #94a3b8; }
html.theme-light .text-indigo-400 { color: #0070d1; }
html.theme-light .border-slate-700 { border-color: #d5dce6; }
html.theme-light .bg-slate-800\/80 { background-color: #eef2f7; }
html.theme-light .text-slate-400 { color: #5b6779; }
html.theme-light .text-indigo-300 { color: #0158a8; }
html.theme-light .text-slate-200 { color: #1e293b; }
html.theme-light .divide-slate-800 > :not([hidden]) ~ :not([hidden]) { border-color: #e2e8f0; }
html.theme-light .bg-slate-900 { background-color: #f8fafc; }
html.theme-light .bg-slate-800 { background-color: #eef2f7; }
html.theme-light .bg-indigo-950 { background-color: #eaf6ff; }
html.theme-light .border-indigo-800\/60 { border-color: #a6d8ff; }
html.theme-light .bg-indigo-950\/80 { background-color: #eaf6ff; }
html.theme-light .border-indigo-700\/50 { border-color: #6bbfff; }
html.theme-light .bg-indigo-950\/40 { background-color: #eaf6ff; }
html.theme-light .border-slate-800\/80 { border-color: #e2e8f0; }
html.theme-light .bg-slate-900\/40 { background-color: #f8fafc; }
html.theme-light .bg-slate-950\/60 { background-color: #eef2f7; }
html.theme-light .text-slate-500 { color: #5f6b7d; }
html.theme-light .text-purple-400 { color: #3fa614; }
html.theme-light .border-slate-700\/80 { border-color: #d5dce6; }
html.theme-light .bg-purple-950 { background-color: #f0fde8; }
html.theme-light .text-purple-300 { color: #317f13; }
html.theme-light .border-purple-800\/60 { border-color: #bef49d; }
html.theme-light .bg-slate-900\/60 { background-color: #f8fafc; }
html.theme-light .bg-purple-950\/40 { background-color: #f0fde8; }
html.theme-light .text-amber-300 { color: #b45309; }
html.theme-light .bg-amber-950\/40 { background-color: #fffbeb; }
html.theme-light .border-amber-800\/60 { border-color: #fde68a; }
html.theme-light .text-amber-400 { color: #d97706; }
html.theme-light .bg-amber-950\/70 { background-color: #fffbeb; }
html.theme-light .border-amber-800\/80 { border-color: #fde68a; }
html.theme-light .text-amber-200 { color: #b45309; }
html.theme-light .bg-indigo-950\/20 { background-color: #eaf6ff; }
html.theme-light .border-indigo-800\/40 { border-color: #a6d8ff; }
html.theme-light .bg-indigo-950\/30 { background-color: #eaf6ff; }
html.theme-light .text-blue-400 { color: #0070d1; }
html.theme-light .bg-slate-950\/70 { background-color: #eef2f7; }
html.theme-light .bg-blue-950 { background-color: #eaf6ff; }
html.theme-light .text-blue-300 { color: #0158a8; }
html.theme-light .border-blue-800\/60 { border-color: #a6d8ff; }
html.theme-light .bg-blue-950\/20 { background-color: #eaf6ff; }
html.theme-light .border-blue-800\/40 { border-color: #a6d8ff; }
html.theme-light .bg-slate-900\/80 { background-color: #f8fafc; }
html.theme-light .text-emerald-400 { color: #059669; }
html.theme-light .bg-amber-950\/60 { background-color: #fffbeb; }
html.theme-light .border-amber-700\/50 { border-color: #fcd34d; }
html.theme-light .bg-emerald-950 { background-color: #ecfdf5; }
html.theme-light .border-emerald-800\/60 { border-color: #a7f3d0; }
html.theme-light .border-indigo-800\/50 { border-color: #a6d8ff; }
html.theme-light .border-amber-800\/50 { border-color: #fde68a; }
html.theme-light .bg-slate-950\/50 { background-color: #eef2f7; }
html.theme-light .bg-emerald-950\/20 { background-color: #ecfdf5; }
html.theme-light .border-emerald-800\/40 { border-color: #a7f3d0; }
html.theme-light .bg-slate-900\/70 { background-color: #f8fafc; }
html.theme-light .bg-slate-950 { background-color: #eef2f7; }
html.theme-light .text-rose-400 { color: #e11d48; }
html.theme-light .border-amber-700\/40 { border-color: #fcd34d; }
html.theme-light .bg-slate-900\/90 { background-color: #f8fafc; }
html.theme-light .text-red-400 { color: #dc2626; }
html.theme-light .bg-red-950\/60 { background-color: #fef2f2; }
html.theme-light .border-red-800\/60 { border-color: #fecaca; }
html.theme-light .bg-slate-800\/50 { background-color: #eef2f7; }
html.theme-light .border-slate-700\/60 { border-color: #d5dce6; }
html.theme-light .bg-emerald-950\/60 { background-color: #ecfdf5; }
html.theme-light .text-emerald-300 { color: #047857; }
html.theme-light .text-red-300 { color: #b91c1c; }
html.theme-light .bg-emerald-950\/70 { background-color: #ecfdf5; }
html.theme-light .border-emerald-700\/80 { border-color: #6ee7b7; }
html.theme-light .text-emerald-200 { color: #047857; }
html.theme-light .bg-emerald-950\/40 { background-color: #ecfdf5; }
html.theme-light .border-emerald-800\/50 { border-color: #a7f3d0; }
html.theme-light .bg-amber-950 { background-color: #fffbeb; }
html.theme-light .bg-blue-950\/40 { background-color: #eaf6ff; }
html.theme-light .border-blue-800\/50 { border-color: #a6d8ff; }
html.theme-light .text-blue-200 { color: #0158a8; }
html.theme-light .bg-indigo-950\/70 { background-color: #eaf6ff; }
html.theme-light .text-sky-300 { color: #317f13; }
html.theme-light .bg-red-900\/40 { background-color: #fee2e2; }
html.theme-light .border-red-800\/50 { border-color: #fecaca; }
html.theme-light .border-slate-800\/70 { border-color: #e2e8f0; }
html.theme-light .text-teal-300 { color: #0f766e; }
html.theme-light .border-emerald-700\/60 { border-color: #6ee7b7; }
html.theme-light .bg-emerald-900\/40 { background-color: #d1fae5; }
html.theme-light .border-emerald-700\/50 { border-color: #6ee7b7; }
html.theme-light .bg-indigo-900\/40 { background-color: #d1ebff; }
html.theme-light .border-red-700\/50 { border-color: #fca5a5; }
html.theme-light .bg-yellow-900\/40 { background-color: #fef9c3; }
html.theme-light .text-yellow-300 { color: #a16207; }
html.theme-light .border-yellow-700\/50 { border-color: #fde047; }
html.theme-light .bg-rose-900\/30 { background-color: #ffe4e6; }
html.theme-light .text-rose-300 { color: #be123c; }
html.theme-light .border-rose-800\/50 { border-color: #fecdd3; }
html.theme-light .bg-red-900\/30 { background-color: #fee2e2; }
html.theme-light .border-emerald-700 { border-color: #6ee7b7; }
html.theme-light .bg-red-950 { background-color: #fef2f2; }
html.theme-light .border-red-700 { border-color: #fca5a5; }
html.theme-light .text-red-200 { color: #b91c1c; }
html.theme-light .border-amber-700 { border-color: #fcd34d; }
html.theme-light .hover\:bg-slate-700\/80:hover { background-color: #e2e8f0; }
html.theme-light .hover\:bg-slate-700:hover { background-color: #e2e8f0; }
html.theme-light .hover\:text-indigo-300:hover { color: #0158a8; }
html.theme-light .hover\:bg-indigo-900:hover { background-color: #d1ebff; }
html.theme-light .hover\:border-slate-700:hover { border-color: #d5dce6; }
html.theme-light .hover\:bg-slate-900\/70:hover { background-color: #f8fafc; }
html.theme-light .hover\:bg-slate-800:hover { background-color: #eef2f7; }
html.theme-light .hover\:bg-amber-900\/60:hover { background-color: #fef3c7; }
html.theme-light .hover\:text-indigo-200:hover { color: #0158a8; }
html.theme-light .hover\:text-blue-300:hover { color: #0158a8; }
html.theme-light .hover\:bg-slate-800\/30:hover { background-color: #eef2f7; }
html.theme-light .hover\:text-red-400:hover { color: #dc2626; }
html.theme-light .hover\:bg-slate-800\/40:hover { background-color: #eef2f7; }
html.theme-light .hover\:bg-emerald-900:hover { background-color: #d1fae5; }
html.theme-light .hover\:bg-red-900:hover { background-color: #fee2e2; }
html.theme-light .hover\:bg-slate-800\/60:hover { background-color: #eef2f7; }
html.theme-light .hover\:bg-red-800\/60:hover { background-color: #fee2e2; }
html.theme-light .hover\:bg-rose-800\/60:hover { background-color: #ffe4e6; }

/* Classes com transparência que ainda não tinham versão clara (pasta/grupo do vídeo, Documentação, fatura vencida, idioma) */
html.theme-light .bg-indigo-950\/60 { background-color: #eaf6ff; }
html.theme-light .bg-indigo-950\/50 { background-color: #eaf6ff; }
html.theme-light .bg-emerald-950\/90 { background-color: #ecfdf5; }
html.theme-light .bg-slate-900\/85 { background-color: #f8fafc; }
html.theme-light .bg-slate-900\/90 { background-color: #f8fafc; }
html.theme-light .bg-slate-900\/95 { background-color: #ffffff; }
html.theme-light .bg-red-950\/40 { background-color: #fef2f2; }
html.theme-light .bg-slate-700\/60 { background-color: #e2e8f0; }
html.theme-light .text-red-200 { color: #b91c1c; }

/* Contraste no tema claro: textos que ficavam apagados (chip de créditos da barra, avisos e legendas) */
html.theme-light .text-indigo-100,
html.theme-light .text-indigo-200 { color: #0b3e70; }
html.theme-light .text-slate-600 { color: #475569; }
html.theme-light .hover\:bg-indigo-900:hover { background-color: #d1ebff; }
html.theme-light #navCreditsChip { background-color: #eaf6ff; border-color: #2ea4f5; color: #0b3e70; }
html.theme-light #navCreditsChip:hover { background-color: #d1ebff; }
html.theme-light #navCreditsChip .text-red-300 { color: #b91c1c; }
html.theme-light #navCreditsChip .text-amber-300 { color: #b45309; }

/* Selos de situação (faturas, limites): contraste forte no tema claro */
html.theme-light .pill-open    { background: #d1ebff !important; color: #0b3e70 !important; border-color: #6bbfff !important; }
html.theme-light .pill-paid    { background: #d1fae5 !important; color: #065f46 !important; border-color: #6ee7b7 !important; }
html.theme-light .pill-overdue { background: #fee2e2 !important; color: #991b1b !important; border-color: #fca5a5 !important; }
html.theme-light .pill-void    { background: #e2e8f0 !important; color: #334155 !important; border-color: #cbd5e1 !important; }
