/* Tmavý (noční) režim celého portálu. Zapíná ho tema.js třídou "dark" na <html>. */
html.dark { color-scheme: dark; }
html.dark body.bg-slate-100 { background: #0b1220; }

/* Plochy */
html.dark .bg-white { background: #172133; }
html.dark .bg-slate-50, html.dark .bg-slate-50\/70 { background: #131c2c; }
html.dark .bg-slate-100 { background: #243044; }
html.dark .bg-slate-200 { background: #2b3850; }
html.dark .bg-slate-300 { background: #3a4760; }
html.dark .bg-blue-50, html.dark .bg-blue-50\/40, html.dark .bg-sky-50, html.dark .bg-indigo-50 { background: rgba(59, 130, 246, .12); }
html.dark .bg-blue-100 { background: rgba(59, 130, 246, .22); }
html.dark .bg-amber-50, html.dark .bg-amber-50\/70, html.dark .bg-amber-50\/95 { background: rgba(245, 158, 11, .13); }
html.dark .bg-amber-100 { background: rgba(245, 158, 11, .22); }
html.dark .bg-orange-50 { background: rgba(249, 115, 22, .13); }
html.dark .bg-emerald-50, html.dark .bg-emerald-50\/95 { background: rgba(16, 185, 129, .13); }
html.dark .bg-rose-50, html.dark .bg-rose-50\/50, html.dark .bg-rose-50\/95, html.dark .bg-red-50 { background: rgba(244, 63, 94, .13); }
html.dark .bg-rose-100 { background: rgba(244, 63, 94, .22); }
html.dark .bg-purple-100 { background: rgba(168, 85, 247, .22); }

html.dark .hover\:bg-slate-50:hover, html.dark .hover\:bg-slate-100:hover,
html.dark .hover\:bg-slate-200:hover, html.dark .hover\:bg-slate-300:hover { background: #2f3d57; }
html.dark .hover\:bg-blue-50:hover { background: rgba(59, 130, 246, .2); }
html.dark .hover\:bg-orange-50:hover { background: rgba(249, 115, 22, .2); }

/* Text */
html.dark .text-slate-900 { color: #f1f5f9; }
html.dark .text-slate-800 { color: #e5e9f0; }
html.dark .text-slate-700 { color: #cfd6e1; }
html.dark .text-slate-600 { color: #aab4c3; }
html.dark .text-slate-500 { color: #8f9bad; }
html.dark .text-slate-400 { color: #6b7789; }
html.dark .text-blue-900, html.dark .text-blue-800 { color: #bfdbfe; }
html.dark .text-blue-700, html.dark .text-blue-600 { color: #93c5fd; }
html.dark .text-sky-700 { color: #bae6fd; }
html.dark .text-indigo-700 { color: #c7d2fe; }
html.dark .text-rose-900, html.dark .text-rose-800 { color: #fecdd3; }
html.dark .text-amber-950, html.dark .text-amber-900 { color: #fde68a; }
html.dark .text-amber-700 { color: #fcd34d; }
html.dark .text-orange-700 { color: #fdba74; }
html.dark .text-emerald-900, html.dark .text-emerald-800 { color: #a7f3d0; }
html.dark .text-purple-800 { color: #e9d5ff; }
html.dark .bg-amber-400.text-amber-950 { color: #451a03; }
html.dark .hover\:text-slate-900:hover, html.dark .hover\:text-slate-800:hover, html.dark .hover\:text-slate-700:hover { color: #fff; }
html.dark .hover\:text-blue-800:hover, html.dark .hover\:text-blue-600:hover { color: #bfdbfe; }

/* Okraje */
html.dark .border-slate-100, html.dark .border-slate-200, html.dark .border-slate-200\/80 { border-color: #263247; }
html.dark .border-slate-300 { border-color: #3a4760; }
html.dark .border-amber-200, html.dark .border-amber-300, html.dark .border-blue-200, html.dark .border-rose-200,
html.dark .border-rose-300, html.dark .border-orange-200, html.dark .border-emerald-200, html.dark .border-sky-200,
html.dark .border-indigo-200, html.dark .border-purple-300 { border-color: rgba(255, 255, 255, .14); }
html.dark .divide-slate-100 > * + *, html.dark .divide-slate-200 > * + * { border-color: #263247; }

/* Formuláře */
html.dark input:not([type=checkbox]):not([type=radio]), html.dark select, html.dark textarea { background: #0f1828; color: #e5e9f0; }
html.dark .t-in { background: #0f1828; border-color: #3a4760; color: #e5e9f0; }
html.dark .t-in:focus { background: #1b3557; }

/* Barvy SŽ */
html.dark .text-\[\#002B49\] { color: #93c5fd; }
html.dark .border-\[\#002B49\] { border-color: #93c5fd; }
html.dark .bg-\[\#002B49\] { background: #1f5a96; border-color: #1f5a96; }

/* Logo: v noci bez bílého podkladu (tema.js přepne obrázek na logo_portal_tma.webp) */
html.dark .logo-obal { background: transparent !important; border-color: transparent !important; box-shadow: none !important; }
