/* Shared theme layer for SIAR pages */
.siar-theme-switcher {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(2, 6, 23, 0.12);
}

.siar-theme-switcher label {
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.siar-theme-switcher select {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 8px;
    min-width: 96px;
}

.siar-theme-switcher select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

html.theme-dark body {
    background-color: #020617 !important;
    color: #e2e8f0 !important;
}

html.theme-dark .bg-gray-50,
html.theme-dark .bg-slate-50,
html.theme-dark .bg-gray-100,
html.theme-dark .bg-slate-100,
html.theme-dark .bg-white,
html.theme-dark .bg-white\/50,
html.theme-dark .bg-white\/80,
html.theme-dark .bg-white\/90 {
    background-color: #0f172a !important;
}

html.theme-dark .text-gray-900,
html.theme-dark .text-gray-800,
html.theme-dark .text-slate-900,
html.theme-dark .text-slate-800,
html.theme-dark .text-slate-700 {
    color: #e2e8f0 !important;
}

html.theme-dark .text-gray-700,
html.theme-dark .text-gray-600,
html.theme-dark .text-gray-500,
html.theme-dark .text-slate-600,
html.theme-dark .text-slate-500 {
    color: #94a3b8 !important;
}

html.theme-dark .border-gray-100,
html.theme-dark .border-gray-200,
html.theme-dark .border-gray-300,
html.theme-dark .border-slate-100,
html.theme-dark .border-slate-200,
html.theme-dark .border-slate-300 {
    border-color: #334155 !important;
}

html.theme-dark nav.bg-white,
html.theme-dark .glass-header {
    background: rgba(2, 6, 23, 0.84) !important;
    border-bottom-color: rgba(71, 85, 105, 0.45) !important;
}

html.theme-dark .siar-theme-switcher {
    border-color: #475569;
    background: rgba(15, 23, 42, 0.92);
}

html.theme-dark .siar-theme-switcher label {
    color: #cbd5e1;
}

html.theme-dark .siar-theme-switcher select {
    background: #0f172a;
    color: #e2e8f0;
    border-color: #475569;
}

@media (max-width: 640px) {
    .siar-theme-switcher {
        right: 10px;
        bottom: 10px;
        padding: 6px 8px;
    }

    .siar-theme-switcher label {
        display: none;
    }
}
