body { font-family: 'Inter', sans-serif; -webkit-tap-highlight-color: transparent; }
        .hide-scrollbar::-webkit-scrollbar { display: none; }
        .hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
        /* ===================== TEMA CLARO / ESCURO ===================== */
        html { color-scheme: light; }
        html.dark {
            color-scheme: dark;
            --np-bg: #0b100f;
            --np-surface: #131a18;
            --np-surface-2: #1b2421;
            --np-hover: #182220;
            --np-border: #28332f;
            --np-text: #f1f5f3;
            --np-text-2: #d3dbd8;
            --np-muted: #9aa7a2;
        }
        html.dark body { background-color: var(--np-bg); color: var(--np-text); }

        /* Superfícies */
        html.dark .bg-gray-50 { background-color: var(--np-bg); }
        html.dark .bg-white { background-color: var(--np-surface); }
        html.dark .bg-white\/90 { background-color: rgb(19 26 24 / 0.92); }
        html.dark .bg-gray-100 { background-color: var(--np-surface-2); }
        html.dark .hover\:bg-gray-50:hover { background-color: var(--np-hover); }
        html.dark .hover\:bg-gray-100:hover { background-color: var(--np-surface-2); }

        /* Bordas */
        html.dark .border-gray-50,
        html.dark .border-gray-100,
        html.dark .border-gray-200 { border-color: var(--np-border); }
        html.dark .divide-gray-100 > :not([hidden]) ~ :not([hidden]) { border-color: var(--np-border); }
        html.dark .hover\:border-emerald-500:hover { border-color: #10b981; }
        html.dark .hover\:border-emerald-500\/50:hover { border-color: rgb(16 185 129 / 0.5); }

        /* Texto */
        html.dark .text-gray-900 { color: var(--np-text); }
        html.dark .text-gray-800,
        html.dark .text-gray-700 { color: var(--np-text-2); }
        html.dark .text-gray-600,
        html.dark .text-gray-500 { color: var(--np-muted); }
        html.dark .hover\:text-gray-900:hover { color: var(--np-text); }
        html.dark .hover\:text-gray-600:hover { color: var(--np-text-2); }

        /* Cores de destaque (badges, links) */
        html.dark .bg-emerald-50,
        html.dark .hover\:bg-emerald-50:hover { background-color: rgb(16 185 129 / 0.14); }
        html.dark .bg-emerald-100 { background-color: rgb(16 185 129 / 0.2); }
        html.dark .bg-blue-50 { background-color: rgb(59 130 246 / 0.16); }
        html.dark .bg-amber-50 { background-color: rgb(245 158 11 / 0.16); }
        html.dark .text-emerald-600,
        html.dark .hover\:text-emerald-600:hover,
        html.dark .group:hover .group-hover\:text-emerald-600 { color: #34d399; }
        html.dark .hover\:text-emerald-700:hover { color: #6ee7b7; }
        html.dark .text-blue-600 { color: #60a5fa; }
        html.dark .text-amber-600 { color: #fbbf24; }

        /* Nome "NativePort" no cabeçalho (gradiente começava em cinza escuro) */
        html.dark header .from-gray-900 { --tw-gradient-from: #f1f5f3 var(--tw-gradient-from-position); }

        /* Filtro de SO activo e botão OK do modal (eram cinza escuro) */
        html.dark .os-filter-btn.bg-gray-900 { background-color: #f1f5f3; color: #0b100f; }
        html.dark #notification-modal .bg-gray-900 { background-color: #059669; color: #fff; }
        html.dark #notification-modal .bg-gray-900:hover { background-color: #10b981; }

        /* Rodapé */
        html.dark footer.bg-gray-900 { background-color: #080c0b; }

        /* Botão de alternar tema */
        html:not(.dark) .np-ico-sun { display: none; }
        html.dark .np-ico-moon { display: none; }
