/* Custom styling for OmniFinder High-End UI (Oficial Brand Theme) */

/* ==========================================================================
   CUSTOM DROPDOWN SELECTS (ESTILIZAÇÃO DE SELETORES COM ARREDONDAMENTO PERFEITO)
   ========================================================================== */
select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%23a1a1aa'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 1rem 1rem !important;
    padding-right: 2.5rem !important;
    cursor: pointer !important;
    border-radius: 0.75rem !important;
}

/* Foco e Hover no Select sem outline retangular do navegador */
select:focus {
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.35) !important;
}

/* Suporte ao Tema Claro */
html.light select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%2352525b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E") !important;
}

/* Estilização das Opções do Dropdown */
select option {
    background-color: #09090b !important;
    color: #f4f4f5 !important;
    padding: 8px 12px !important;
}

html.light select option {
    background-color: #ffffff !important;
    color: #18181b !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #090d16;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #ea580c;
}

/* Nav Active Button - Tema Oficial OmniFinder */
.nav-btn.active {
    background-color: rgba(249, 115, 22, 0.12) !important;
    color: #ffedd5 !important;
    font-weight: 700;
    border-left: 3px solid #f97316 !important;
}

/* Status Tab Active */
.tab-status-btn.active {
    background-color: rgba(249, 115, 22, 0.18) !important;
    color: #ffffff !important;
    border-color: #ea580c !important;
}

/* Category Chips Active */
.category-chip.active {
    background-color: rgba(249, 115, 22, 0.2) !important;
    color: #ffffff !important;
    border-color: #f97316 !important;
}

/* Leaflet Map Dark Theme Overrides */
.leaflet-container {
    background-color: #0b0f17 !important;
    font-family: inherit;
}
.leaflet-tile-pane {
    filter: brightness(0.82) contrast(1.15) invert(0.9) hue-rotate(190deg);
}
.leaflet-popup-content-wrapper {
    background-color: #111827 !important;
    color: #f8fafc !important;
    border: 1px solid #334155 !important;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
}
.leaflet-popup-content,
.leaflet-popup-content * {
    color: #f8fafc !important;
}
.leaflet-popup-content b,
.leaflet-popup-content strong {
    color: #fb923c !important;
}
.leaflet-popup-tip {
    background-color: #111827 !important;
}
.leaflet-container a.leaflet-popup-close-button {
    color: #94a3b8 !important;
}
.leaflet-container a.leaflet-popup-close-button:hover {
    color: #ffffff !important;
}

/* Pulse Animations */
@keyframes pulse-glow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse-glow {
    animation: pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Niche Sector Tabs & Active States */
.niche-sector-btn.active {
    background-color: rgba(249, 115, 22, 0.15) !important;
    color: #ffffff !important;
    border-color: #ea580c !important;
}

/* Kanban Board Styling */
.kanban-column {
    min-width: 280px;
    max-width: 320px;
}
.kanban-dropzone {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
}
.kanban-dropzone::-webkit-scrollbar {
    width: 5px;
}
.kanban-dropzone::-webkit-scrollbar-thumb {
    background: rgba(249, 115, 22, 0.4);
    border-radius: 9999px;
}
.kanban-dropzone.drag-over {
    border-color: #f97316 !important;
    background-color: rgba(249, 115, 22, 0.08) !important;
}


/* Print CSS Media Query for Native 1-Page PDF Generation */
@media print {
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
    aside, header, nav, button, .view-panel, #onboarding-modal, #details-modal, #niche-explorer-modal, #cockpit-modal {
        display: none !important;
    }
    #pdf-report-modal {
        position: absolute !important;
        inset: 0 !important;
        background: transparent !important;
        display: block !important;
        padding: 0 !important;
    }
    #pdf-print-area {
        max-height: none !important;
        box-shadow: none !important;
        border: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* ==========================================================================
   TEMA CLARO OFICIAL (OMNIFINDER LIGHT MODE) - REFINADO & ALTO CONTRASTE
   ========================================================================== */

html.light body {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

/* Sidebar, Cards, Modais e Contêineres Principais */
html.light aside,
html.light .bg-zinc-900,
html.light .bg-zinc-900\/90,
html.light .bg-zinc-900\/80,
html.light .bg-zinc-900\/60,
html.light #onboarding-modal > div,
html.light #niche-explorer-modal > div,
html.light #cockpit-modal > div,
html.light #details-modal > div {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.03) !important;
}

/* Sub-blocos, Inputs e Seletores */
html.light input:not([type="radio"]):not([type="checkbox"]),
html.light select,
html.light textarea,
html.light .bg-zinc-950,
html.light .bg-zinc-950\/80,
html.light .bg-zinc-950\/60 {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html.light input::placeholder {
    color: #94a3b8 !important;
}

/* Cores de Texto Globais no Tema Claro */
html.light .text-white {
    color: #0f172a !important;
}
html.light .text-zinc-100,
html.light .text-zinc-200,
html.light .text-zinc-300 {
    color: #1e293b !important;
}
html.light .text-zinc-400,
html.light .text-zinc-500 {
    color: #64748b !important;
}

/* Bordas no Tema Claro */
html.light .border-zinc-800,
html.light .border-zinc-700,
html.light .border-zinc-800\/80,
html.light .border-zinc-800\/60,
html.light .border-zinc-800\/40 {
    border-color: #e2e8f0 !important;
}

/* ==========================================================================
   BOTÕES E COMPONENTES ESPECÍFICOS - CONTRASTE PERFEITO (LIGHT MODE)
   ========================================================================== */

/* 1. Balão da Sidebar (Total de Leads no Menu Lateral) */
html.light #badge-total-leads {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}
html.light .nav-btn.active #badge-total-leads {
    background-color: #ffedd5 !important;
    color: #c2410c !important;
    border-color: #fdba74 !important;
}

/* 2. Botão Suporte no Rodapé da Sidebar & Tag PRO B2B */
html.light aside a[href*="wa.me"] {
    background-color: #ecfdf5 !important;
    color: #047857 !important;
    border-color: #a7f3d0 !important;
}
html.light aside a[href*="wa.me"]:hover {
    background-color: #d1fae5 !important;
}

.badge-pro-b2b {
    background-color: rgba(234, 88, 12, 0.15);
    color: #fb923c;
    border-color: rgba(234, 88, 12, 0.4);
}

html.light .badge-pro-b2b {
    background-color: #ffedd5 !important;
    color: #c2410c !important;
    border-color: #fed7aa !important;
}

/* 3. Seletor de Visão CRM (Tabela vs Kanban) */
html.light #btn-view-table.active,
html.light #btn-view-kanban.active {
    background-color: #ffffff !important;
    color: #ea580c !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    font-weight: 700 !important;
}
html.light #btn-view-table:not(.active),
html.light #btn-view-kanban:not(.active) {
    background-color: transparent !important;
    color: #64748b !important;
    border: none !important;
}
html.light #btn-view-table:not(.active):hover,
html.light #btn-view-kanban:not(.active):hover {
    color: #0f172a !important;
}

/* 4. Botões de Exportação no Cabeçalho (CSV & PDF) */
html.light #btn-export-csv {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}
html.light #btn-export-csv:hover {
    background-color: #e2e8f0 !important;
}

html.light #btn-export-pdf {
    background-color: #ecfdf5 !important;
    color: #047857 !important;
    border-color: #a7f3d0 !important;
}
html.light #btn-export-pdf:hover {
    background-color: #d1fae5 !important;
}

/* 5. Balões das Colunas do Kanban & Cards */
html.light .kanban-column span.bg-zinc-800,
html.light .kanban-column .font-mono {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}
html.light .kanban-column {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
}
html.light .kanban-card {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}
html.light .kanban-card:hover {
    border-color: #cbd5e1 !important;
}

/* 6. Botão de Geolocalização (Usar Minha Localização) */
html.light #btn-use-geolocation {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}
html.light #btn-use-geolocation:hover {
    background-color: #f8fafc !important;
    border-color: #94a3b8 !important;
}

/* 7. Categorias & Badges do Filtro de CRM */
html.light #crm-filter-badge-summary {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}

html.light .tab-status-btn:not(.active),
html.light .crm-cat-btn:not(.font-bold),
html.light .crm-category-btn:not(.active),
html.light .category-chip:not(.active) {
    background-color: #ffffff !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}
html.light .tab-status-btn:not(.active):hover,
html.light .crm-cat-btn:not(.font-bold):hover,
html.light .crm-category-btn:not(.active):hover,
html.light .category-chip:not(.active):hover {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

html.light .tab-status-btn.active,
html.light .crm-cat-btn.font-bold,
html.light .crm-category-btn.active,
html.light .category-chip.active {
    background-color: #ea580c !important;
    color: #ffffff !important;
    border-color: #c2410c !important;
}

/* 8. Botão "Explorar Nichos B2B" e Badges Verdes */
html.light #btn-open-niche-modal,
html.light #btn-open-niche-modal span {
    background-color: #ecfdf5 !important;
    color: #047857 !important;
    border-color: #a7f3d0 !important;
}
html.light #btn-open-niche-modal:hover {
    background-color: #d1fae5 !important;
}

/* 9. Botões Secundários & Teste de API nas Configurações */
html.light #btn-test-key,
html.light #btn-open-cockpit,
html.light .niche-sector-btn:not(.active) {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

/* 10. Tabelas e Linhas no Tema Claro */
html.light table th {
    background-color: #f8fafc !important;
    color: #475569 !important;
    border-color: #e2e8f0 !important;
}
html.light table td {
    border-color: #f1f5f9 !important;
    color: #0f172a !important;
}
html.light table tr:hover {
    background-color: #f1f5f9 !important;
}
html.light .lead-crm-stage-select {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

/* 10.1 Botões de Ação, Badges e Modais no Tema Claro */
.btn-action-site {
    background-color: #27272a;
    color: #f4f4f5;
    border-color: #3f3f46;
}
.btn-action-site:hover {
    background-color: #3f3f46;
    color: #ffffff;
}

/* Padronização no Tema Claro: Botões de Ação com fundos claros e alto contraste */
html.light .btn-action-site {
    background-color: #ecfdf5 !important;
    color: #047857 !important;
    border-color: #a7f3d0 !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}
html.light .btn-action-site:hover {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
}

html.light table td a[href*="wa.me"] {
    background-color: #ecfdf5 !important;
    color: #047857 !important;
    border-color: #a7f3d0 !important;
    font-weight: 600 !important;
}
html.light table td a[href*="wa.me"]:hover {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
}

/* Score Badges no Tema Claro (Incluindo Score < 50) */
html.light table td span.bg-emerald-950\/90 {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    border-color: #86efac !important;
}
html.light table td span.bg-amber-950\/90 {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
    border-color: #fde68a !important;
}
html.light table td span.bg-zinc-800\/80 {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
    font-weight: 700 !important;
}

/* Badges de Status na Tabela no Tema Claro */
html.light table td span.bg-amber-950\/80,
html.light table td .bg-amber-950\/80 {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
    border-color: #fde68a !important;
}
html.light table td span.bg-orange-950\/80,
html.light table td .bg-orange-950\/80 {
    background-color: #ffedd5 !important;
    color: #c2410c !important;
    border-color: #fed7aa !important;
}
html.light table td span.bg-emerald-950\/80,
html.light table td .bg-emerald-950\/80 {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    border-color: #86efac !important;
}

/* Overrides Completos para o Modal de Detalhes do Lead & Copywriting no Tema Claro */
html.light #details-modal > div {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
}

/* Header do Modal */
html.light #details-modal .w-12.h-12 {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}
html.light #modal-lead-category {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
    font-weight: 600 !important;
}
html.light #btn-close-details {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}
html.light #btn-close-details:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Tabs do Modal (Ficha do Lead / Copywriting IA) */
html.light .tab-modal-btn.active {
    background-color: #ea580c !important;
    color: #ffffff !important;
    border-color: #c2410c !important;
    font-weight: 700 !important;
}
html.light .tab-modal-btn:not(.active) {
    background-color: #ffffff !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}
html.light .tab-modal-btn:not(.active):hover {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

/* Card de Diagnóstico Comercial e Sub-blocos do Modal */
html.light #details-modal .bg-zinc-950 {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}
html.light #details-modal .bg-zinc-900 {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

/* Card de Estratégia Racional de Abordagem (Verde) */
html.light #details-modal .bg-emerald-950\/40 {
    background-color: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    color: #064e3b !important;
}
html.light #details-modal .bg-emerald-950\/40 p,
html.light #details-modal .bg-emerald-950\/40 span,
html.light #details-modal .bg-emerald-950\/40 li,
html.light #details-modal .bg-emerald-950\/40 strong {
    color: #064e3b !important;
}
html.light #details-modal #modal-lead-hook-badge {
    background-color: #d1fae5 !important;
    color: #047857 !important;
    border-color: #6ee7b7 !important;
}

/* Accordion de Objeções e Elementos de Entrada */
html.light #details-modal details {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
}
html.light #details-modal details summary {
    color: #0f172a !important;
}
html.light #details-modal #modal-lead-objections-container > div {
    background-color: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
html.light #details-modal #modal-lead-objections-container strong {
    color: #047857 !important;
}
html.light #details-modal #modal-lead-objections-container p {
    color: #1e293b !important;
}
html.light #details-modal input,
html.light #details-modal textarea,
html.light #details-modal select {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}
html.light #details-modal input::placeholder,
html.light #details-modal textarea::placeholder {
    color: #64748b !important;
}
html.light #details-modal .quick-tag-btn {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}
html.light #details-modal .quick-tag-btn:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Botões do Rodapé do Modal e Salvar CRM */
html.light #btn-save-lead-crm-data {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
    font-weight: 600 !important;
}
html.light #btn-save-lead-crm-data:hover {
    background-color: #e2e8f0 !important;
}

html.light #modal-btn-print-pdf,
html.light #modal-btn-search {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
    font-weight: 600 !important;
}
html.light #modal-btn-print-pdf:hover,
html.light #modal-btn-search:hover {
    background-color: #e2e8f0 !important;
}

/* Aba 2: Copywriting IA */
html.light #copy-seller-profile-select,
html.light #copy-custom-pitch-input {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}
html.light #panel-lead-copy p[id^="copy-output-"] {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

/* Botões de Copiar IA (Copywriting) no Tema Claro & Escuro */
.btn-copy-ai {
    background-color: #27272a;
    color: #e4e4e7;
    border: 1px solid #3f3f46;
    transition: all 0.15s ease;
}
.btn-copy-ai:hover {
    background-color: #3f3f46;
    color: #ffffff;
}

html.light .btn-copy-ai,
html.light button[onclick*="copyToClipboard"],
html.light #panel-lead-copy button[onclick*="copyToClipboard"] {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}
html.light .btn-copy-ai:hover,
html.light button[onclick*="copyToClipboard"]:hover,
html.light #panel-lead-copy button[onclick*="copyToClipboard"]:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

/* ==========================================================================
   VARREDURA COMPLETA DO TEMA CLARO - BADGES, MODAIS E BOTÕES (HIGH CONTRAST)
   ========================================================================== */

/* 1. Balões e Badges de Follow-up (Agendamento de Retorno) */
html.light #modal-lead-followup-badge,
html.light span[class*="bg-zinc-800"],
html.light .bg-zinc-800.text-zinc-300 {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
    font-weight: 600 !important;
}

html.light #modal-lead-followup-badge.bg-emerald-950,
html.light .bg-emerald-950.text-emerald-400 {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    border-color: #86efac !important;
    font-weight: 600 !important;
}

html.light #modal-lead-followup-badge.bg-red-950,
html.light .bg-red-950.text-red-400 {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
    border-color: #fca5a5 !important;
    font-weight: 600 !important;
}

/* 2. Modais: Cockpit Foco (#cockpit-modal) no Tema Claro */
html.light #cockpit-modal > div {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
}
html.light #btn-close-cockpit {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}
html.light #btn-close-cockpit:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}
html.light #cockpit-modal .bg-zinc-950 {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
}
html.light #cockpit-modal #cockpit-lead-category,
html.light #cockpit-modal #cockpit-lead-city {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}
html.light #cockpit-modal #cockpit-lead-rating {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    border-color: #86efac !important;
}
html.light #cockpit-modal .bg-emerald-950\/40 {
    background-color: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    color: #064e3b !important;
}
html.light #cockpit-modal .bg-emerald-950\/40 p {
    color: #064e3b !important;
}
html.light #cockpit-stage-select {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}
html.light #cockpit-btn-copy-ia,
html.light #cockpit-btn-prev {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}
html.light #cockpit-btn-copy-ia:hover,
html.light #cockpit-btn-prev:hover {
    background-color: #e2e8f0 !important;
}

/* 3. Quadro Kanban (#kanban-board-container) no Tema Claro */
html.light .kanban-column {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
}
html.light .kanban-card {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}
html.light .kanban-card strong {
    color: #0f172a !important;
}
html.light .kanban-card .bg-zinc-900,
html.light .kanban-card .bg-zinc-950 {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}
html.light .kanban-stage-select {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

/* 4. Modal Explorador de Nichos (#niche-explorer-modal) no Tema Claro */
html.light #niche-explorer-modal > div {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}
html.light #btn-close-niche-modal {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}
html.light #btn-close-niche-modal:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}
html.light .niche-sector-btn:not(.active) {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}
html.light .niche-card {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

/* 5. Documentação & FAQ no Tema Claro */
html.light .faq-toggle-btn {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
}
html.light .faq-toggle-btn:hover {
    background-color: #f1f5f9 !important;
}
html.light .faq-content {
    background-color: #ffffff !important;
    color: #334155 !important;
    border-color: #e2e8f0 !important;
}

/* 6. Analytics & Metas no Tema Claro */
html.light #view-analytics .bg-zinc-950 {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}
html.light #view-analytics .bg-zinc-800 {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}

/* 11. Mapa Interativo (Leaflet) no Tema Claro */
html.light .leaflet-container {
    background-color: #e2e8f0 !important;
}
html.light .leaflet-tile-pane {
    filter: none !important;
}
html.light .leaflet-popup-content-wrapper {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}
html.light .leaflet-popup-content,
html.light .leaflet-popup-content * {
    color: #0f172a !important;
}
html.light .leaflet-popup-content b,
html.light .leaflet-popup-content strong {
    color: #ea580c !important;
}
html.light .leaflet-popup-tip {
    background-color: #ffffff !important;
}
html.light .leaflet-container a.leaflet-popup-close-button {
    color: #64748b !important;
}
html.light .leaflet-container a.leaflet-popup-close-button:hover {
    color: #0f172a !important;
}

/* 12. Scrollbars no Tema Claro */
html.light ::-webkit-scrollbar-track {
    background: #f1f5f9;
}
html.light ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}
html.light ::-webkit-scrollbar-thumb:hover {
    background: #f97316;
}

/* 13. Popups de Alerta & Notificações Toast no Tema Claro & Escuro */
.toast-popup {
    background-color: #18181b !important;
    border-color: #3f3f46 !important;
}
.toast-popup .toast-msg {
    color: #f4f4f5 !important;
}

html.light #toast-container > div,
html.light .toast-popup {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
}

html.light #toast-container > div .toast-msg,
html.light .toast-popup .toast-msg,
html.light #toast-container > div span {
    color: #0f172a !important;
    font-weight: 600 !important;
}

html.light #toast-container > div[class*="border-red"],
html.light .toast-popup[class*="border-red"] {
    background-color: #fef2f2 !important;
    color: #991b1b !important;
    border-color: #fca5a5 !important;
}

html.light #toast-container > div[class*="border-red"] .toast-msg,
html.light .toast-popup[class*="border-red"] .toast-msg,
html.light #toast-container > div[class*="border-red"] span {
    color: #991b1b !important;
}

html.light #toast-container > div[class*="border-emerald"],
html.light .toast-popup[class*="border-emerald"] {
    background-color: #f0fdf4 !important;
    color: #166534 !important;
    border-color: #86efac !important;
}

html.light #toast-container > div[class*="border-emerald"] .toast-msg,
html.light .toast-popup[class*="border-emerald"] .toast-msg,
html.light #toast-container > div[class*="border-emerald"] span {
    color: #166534 !important;
}

html.light #toast-container > div[class*="border-cyan"],
html.light .toast-popup[class*="border-cyan"] {
    background-color: #ecfeff !important;
    color: #155e75 !important;
    border-color: #a5f3fc !important;
}

html.light #toast-container > div[class*="border-cyan"] .toast-msg,
html.light .toast-popup[class*="border-cyan"] .toast-msg,
html.light #toast-container > div[class*="border-cyan"] span {
    color: #155e75 !important;
}



