/**
 * EPOS Theme Engine — CSS variable palettes mapped to Bootstrap tokens.
 * Loaded after dark-mode.css; overrides via html[data-theme].
 */

/* ------------------------------------------------------------------ */
/* Token bridge: custom theme vars → Bootstrap + legacy aliases       */
/* ------------------------------------------------------------------ */
html[data-theme],
:root {
    --primary-color: var(--theme-primary, #64748b);
    --secondary-color: var(--theme-secondary, #475569);
    --bg-color: var(--theme-bg, #f1f5f9);
    --text-color: var(--theme-text, #0f172a);
    --theme-surface: var(--theme-surface-token, #ffffff);
    --theme-border: var(--theme-border-token, #cbd5e1);
    --theme-navbar: var(--theme-navbar-token, #f8fafc);
    --theme-muted: var(--theme-muted-token, #64748b);
    --theme-link: var(--theme-link-token, var(--primary-color));
    --theme-link-hover: var(--theme-link-hover-token, var(--primary-color));

    --bs-body-bg: var(--bg-color);
    --bs-body-color: var(--text-color);
    --bs-border-color: var(--theme-border);
    --bs-link-color: var(--theme-link);
    --bs-link-hover-color: var(--theme-link-hover);
    --bs-heading-color: var(--text-color);
    --bs-text-muted: var(--theme-muted);
    --bs-primary: var(--primary-color);
    --bs-secondary: var(--secondary-color);
    --bs-bg-primary: var(--primary-color);
    --bs-bg-secondary: var(--secondary-color);
    --bs-success: #198754;
    --bs-danger: #dc3545;
    --bs-warning: #ffc107;
    --bs-info: #0dcaf0;
    --bs-bg-success: #198754;
    --bs-bg-danger: #dc3545;
    --bs-bg-warning: #ffc107;
    --bs-bg-info: #0dcaf0;
    --bs-bg-light: var(--theme-surface);
    --bs-bg-dark: var(--text-color);
    --bs-card-bg: var(--theme-surface);
    --bs-card-border-color: var(--theme-border);
    --bs-navbar-bg: var(--theme-navbar);
    --bs-navbar-color: var(--theme-link);
    --bs-navbar-brand-color: var(--theme-text);
    --bs-navbar-brand-hover-color: var(--theme-link-hover);
    --bs-nav-link-color: var(--theme-link);
    --bs-nav-link-hover-color: var(--theme-link-hover);
    --bs-dropdown-bg: var(--theme-surface);
    --bs-dropdown-border-color: var(--theme-border);
    --bs-dropdown-link-color: var(--text-color);
    --bs-dropdown-link-hover-bg: color-mix(in srgb, var(--primary-color) 12%, var(--theme-surface));
    --bs-form-control-bg: var(--theme-surface);
    --bs-form-control-border-color: var(--theme-border);
    --bs-form-control-color: var(--text-color);
    --bs-form-control-focus-border-color: var(--primary-color);
    --bs-form-control-focus-bg: var(--theme-surface);
    --bs-table-bg: var(--theme-surface);
    --bs-table-border-color: var(--theme-border);
    --bs-table-striped-bg: color-mix(in srgb, var(--primary-color) 6%, var(--theme-surface));
    --bs-modal-bg: var(--theme-surface);
    --bs-modal-border-color: var(--theme-border);
    --bs-tooltip-bg: var(--text-color);
    --bs-popover-bg: var(--theme-surface);
    --bs-popover-border-color: var(--theme-border);
    --bs-alert-bg: color-mix(in srgb, var(--primary-color) 10%, var(--theme-surface));
    --bs-alert-border-color: var(--theme-border);
    --bs-badge-bg: var(--secondary-color);
    --bs-progress-bg: color-mix(in srgb, var(--theme-border) 50%, var(--theme-surface));
    --bs-list-group-bg: var(--theme-surface);
    --bs-list-group-border-color: var(--theme-border);
    --bs-breadcrumb-bg: var(--theme-surface);
    --bs-pagination-bg: var(--theme-surface);
    --bs-pagination-border-color: var(--theme-border);
    --bs-pagination-color: var(--primary-color);
    --bs-pagination-hover-bg: color-mix(in srgb, var(--primary-color) 10%, var(--theme-surface));
    --bs-pagination-hover-border-color: var(--theme-border);
    --bs-pagination-hover-color: var(--theme-link-hover);
    --bs-pagination-active-bg: var(--primary-color);
    --bs-pagination-active-border-color: var(--primary-color);
    --bs-pagination-active-color: #ffffff;
    --bs-pagination-disabled-bg: var(--theme-surface);
    --bs-pagination-disabled-border-color: var(--theme-border);
    --bs-pagination-disabled-color: var(--theme-muted);
    --bs-close-color: var(--text-color);
    --bs-close-hover-color: var(--text-color);
    --bs-code-color: var(--primary-color);
    --bs-kbd-bg: var(--theme-surface);
    --bs-kbd-color: var(--text-color);
    --bs-pre-color: var(--text-color);
    --bs-pre-bg: var(--theme-surface);
    --bs-blockquote-border-color: var(--theme-border);
    --bs-hr-color: var(--theme-border);
    --bs-mark-bg: color-mix(in srgb, var(--bs-warning) 35%, transparent);
    --bs-mark-color: var(--text-color);
    --bs-small-color: var(--theme-muted);
    --bs-text-decoration-color: var(--theme-muted);
    --bs-text-reset: var(--theme-muted);
    --bs-text-emphasis: var(--text-color);
}

/* ------------------------------------------------------------------ */
/* Typography preferences                                             */
/* ------------------------------------------------------------------ */
html {
    --epos-font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --epos-font-size-base: 100%;
    /* Scale all rem-based Bootstrap sizing from the root */
    font-size: var(--epos-font-size-base) !important;
}

body {
    font-family: var(--epos-font-family) !important;
    font-size: 1rem;
}

h1, h2, h3, h4, h5, h6,
.navbar,
.card,
.table,
.form-control,
.form-select,
.btn,
.dropdown-menu,
.modal-content {
    font-family: inherit;
}

/* ------------------------------------------------------------------ */
/* Theme-aware top navbar — override Bootstrap scoped navbar tokens   */
/* ------------------------------------------------------------------ */
.app-top-nav.navbar {
    /* Bootstrap 5.3 sets these ON .navbar; must override locally */
    --bs-navbar-color: var(--theme-link) !important;
    --bs-navbar-hover-color: var(--theme-link-hover) !important;
    --bs-navbar-active-color: var(--theme-link-hover) !important;
    --bs-navbar-disabled-color: color-mix(in srgb, var(--theme-link) 40%, transparent) !important;
    --bs-navbar-brand-color: var(--theme-text) !important;
    --bs-navbar-brand-hover-color: var(--theme-link-hover) !important;
    --bs-nav-link-color: var(--theme-link) !important;
    --bs-nav-link-hover-color: var(--theme-link-hover) !important;
    --bs-nav-link-active-color: var(--theme-link-hover) !important;
    --bs-nav-link-disabled-color: color-mix(in srgb, var(--theme-link) 40%, transparent) !important;

    position: sticky;
    top: 0;
    z-index: 1030;

    background-color: var(--theme-navbar) !important;
    background-image: none !important;
    border-bottom: 1px solid var(--theme-border) !important;
    color: var(--theme-link) !important;
}

.app-top-nav .navbar-brand,
.app-top-nav a.navbar-brand {
    color: var(--theme-text) !important;
}

.app-top-nav .navbar-brand:hover,
.app-top-nav .navbar-brand:focus,
.app-top-nav a.navbar-brand:hover,
.app-top-nav a.navbar-brand:focus {
    color: var(--theme-link-hover) !important;
}

.app-top-nav .nav-link,
.app-top-nav a.nav-link,
.app-top-nav .navbar-nav .nav-link,
.app-top-nav .navbar-nav a.nav-link,
.app-top-nav .navbar-nav .nav-link.active,
.app-top-nav .navbar-nav .show > .nav-link {
    color: var(--theme-link) !important;
}

.app-top-nav .nav-link:hover,
.app-top-nav .nav-link:focus,
.app-top-nav a.nav-link:hover,
.app-top-nav a.nav-link:focus,
.app-top-nav .navbar-nav .nav-link:hover,
.app-top-nav .navbar-nav .nav-link:focus {
    color: var(--theme-link-hover) !important;
}

.app-top-nav .nav-link i,
.app-top-nav .navbar-brand i {
    color: inherit !important;
}

.app-top-nav .dropdown-menu {
    --bs-dropdown-zindex: 1040;
    z-index: 1040 !important;
    background-color: var(--bs-dropdown-bg) !important;
    border-color: var(--bs-dropdown-border-color) !important;
    color: var(--bs-dropdown-link-color) !important;
}

.app-top-nav .dropdown-item {
    color: var(--bs-dropdown-link-color) !important;
}

.app-top-nav .dropdown-item:hover,
.app-top-nav .dropdown-item:focus {
    background-color: var(--bs-dropdown-link-hover-bg) !important;
    color: var(--bs-dropdown-link-color) !important;
}

.app-top-nav .theme-picker-trigger {
    color: var(--theme-link) !important;
    border-color: var(--theme-border) !important;
    background-color: color-mix(in srgb, var(--theme-surface) 88%, transparent) !important;
}

.app-top-nav .theme-picker-trigger:hover,
.app-top-nav .theme-picker-trigger:focus {
    color: var(--theme-link-hover) !important;
    border-color: var(--primary-color) !important;
    background-color: color-mix(in srgb, var(--primary-color) 12%, var(--theme-surface)) !important;
}

.app-top-nav .navbar-toggler {
    border-color: var(--theme-border) !important;
}

[data-bs-theme="dark"] .app-top-nav .navbar-toggler-icon,
html[data-theme] .app-top-nav .navbar-toggler-icon {
    filter: invert(1) grayscale(100%);
}

/* Picker UI */
.theme-picker-dropdown {
    position: relative;
    z-index: 1040;
}

.theme-picker-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 999px;
    padding: 0.32rem 0.65rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.theme-picker-trigger:hover {
    transform: translateY(-1px);
}

.theme-picker-menu {
    --bs-dropdown-zindex: 1040;
    z-index: 1040 !important;
    min-width: 16rem;
    max-width: 20rem;
    max-height: min(80vh, 520px);
    overflow: hidden;
    background-color: var(--bs-dropdown-bg) !important;
    border-color: var(--bs-dropdown-border-color) !important;
    color: var(--bs-dropdown-link-color) !important;
}

.theme-picker-list {
    max-height: calc(min(80vh, 520px) - 11rem);
    overflow-y: auto;
}

.theme-swatch {
    width: 1rem;
    height: 1rem;
    border: 1px solid color-mix(in srgb, var(--text-color) 25%, transparent);
}

.theme-picker-item.active,
.theme-picker-item:focus {
    outline: none;
}

@media (max-width: 576px) {
    .theme-picker-menu {
        min-width: 14rem;
        width: calc(100vw - 1.5rem);
        max-width: calc(100vw - 1.5rem);
    }

    .app-top-nav .navbar-utilities .theme-picker-trigger-label {
        display: none !important;
    }
}

/* DataTables processing overlay */
.dataTables_wrapper .dataTables_processing {
    background: var(--theme-surface) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--theme-border) !important;
}

/* Tabs */
.nav-tabs {
    border-bottom-color: var(--theme-border) !important;
}

.nav-tabs .nav-link {
    color: var(--theme-muted);
}

.nav-tabs .nav-link.active {
    background-color: var(--theme-surface) !important;
    border-color: var(--theme-border) var(--theme-border) var(--theme-surface) !important;
    color: var(--text-color) !important;
}

/* ------------------------------------------------------------------ */
/* Theme palettes                                                     */
/* ------------------------------------------------------------------ */
[data-theme="light"],
:root {
    --theme-primary: #2563eb;
    --theme-secondary: #475569;
    --theme-bg: #ffffff;
    --theme-text: #111827;
    --theme-surface-token: #ffffff;
    --theme-border-token: #e5e7eb;
    --theme-navbar-token: #f9fafb;
    --theme-muted-token: #6b7280;
    --theme-link-token: #2563eb;
    --theme-link-hover-token: #1d4ed8;
}

[data-theme="dark"] {
    /* Material Design 2 dark — keep in sync with public/css/dark-mode.css */
    --theme-primary: #90CAF9;
    --theme-secondary: #78909C;
    --theme-bg: #121212;
    --theme-text: rgba(255, 255, 255, 0.87);
    --theme-surface-token: #1E1E1E;
    --theme-border-token: rgba(255, 255, 255, 0.12);
    --theme-navbar-token: #252525;
    --theme-muted-token: rgba(255, 255, 255, 0.6);
    --theme-link-token: #90CAF9;
    --theme-link-hover-token: #BBDEFB;
}

[data-theme="slate"] {
    --theme-primary: #94a3b8;
    --theme-secondary: #64748b;
    --theme-bg: #1e293b;
    --theme-text: #f1f5f9;
    --theme-surface-token: #273449;
    --theme-border-token: #3d4f66;
    --theme-navbar-token: #273449;
    --theme-muted-token: #94a3b8;
    --theme-link-token: #cbd5e1;
    --theme-link-hover-token: #e2e8f0;
}

[data-theme="ocean"] {
    --theme-primary: #38bdf8;
    --theme-secondary: #0ea5e9;
    --theme-bg: #0c4a6e;
    --theme-text: #e0f2fe;
    --theme-surface-token: #075985;
    --theme-border-token: #0369a1;
    --theme-navbar-token: #075985;
    --theme-muted-token: #7dd3fc;
    --theme-link-token: #38bdf8;
    --theme-link-hover-token: #7dd3fc;
}

[data-theme="forest"] {
    --theme-primary: #4ade80;
    --theme-secondary: #22c55e;
    --theme-bg: #14532d;
    --theme-text: #ecfdf5;
    --theme-surface-token: #166534;
    --theme-border-token: #15803d;
    --theme-navbar-token: #166534;
    --theme-muted-token: #86efac;
    --theme-link-token: #4ade80;
    --theme-link-hover-token: #86efac;
}

[data-theme="midnight"] {
    --theme-primary: #818cf8;
    --theme-secondary: #6366f1;
    --theme-bg: #0a0a0f;
    --theme-text: #e2e8f0;
    --theme-surface-token: #12121a;
    --theme-border-token: #2a2a38;
    --theme-navbar-token: #12121a;
    --theme-muted-token: #a5b4fc;
    --theme-link-token: #818cf8;
    --theme-link-hover-token: #c7d2fe;
}

[data-theme="nord"] {
    --theme-primary: #88c0d0;
    --theme-secondary: #5e81ac;
    --theme-bg: #2e3440;
    --theme-text: #eceff4;
    --theme-surface-token: #3b4252;
    --theme-border-token: #4c566a;
    --theme-navbar-token: #3b4252;
    --theme-muted-token: #d8dee9;
    --theme-link-token: #88c0d0;
    --theme-link-hover-token: #8fbcbb;
}

[data-theme="sunset"] {
    --theme-primary: #f97316;
    --theme-secondary: #ea580c;
    --theme-bg: #fff7ed;
    --theme-text: #431407;
    --theme-surface-token: #ffedd5;
    --theme-border-token: #fed7aa;
    --theme-navbar-token: #ffedd5;
    --theme-muted-token: #9a3412;
    --theme-link-token: #ea580c;
    --theme-link-hover-token: #c2410c;
}

[data-theme="rose"] {
    --theme-primary: #f43f5e;
    --theme-secondary: #e11d48;
    --theme-bg: #fff1f2;
    --theme-text: #881337;
    --theme-surface-token: #ffe4e6;
    --theme-border-token: #fecdd3;
    --theme-navbar-token: #ffe4e6;
    --theme-muted-token: #9f1239;
    --theme-link-token: #e11d48;
    --theme-link-hover-token: #be123c;
}

[data-theme="carbon"] {
    --theme-primary: #a1a1aa;
    --theme-secondary: #71717a;
    --theme-bg: #18181b;
    --theme-text: #fafafa;
    --theme-surface-token: #27272a;
    --theme-border-token: #3f3f46;
    --theme-navbar-token: #27272a;
    --theme-muted-token: #d4d4d8;
    --theme-link-token: #d4d4d8;
    --theme-link-hover-token: #f4f4f5;
}

[data-theme="lavender"] {
    --theme-primary: #8b5cf6;
    --theme-secondary: #7c3aed;
    --theme-bg: #f5f3ff;
    --theme-text: #4c1d95;
    --theme-surface-token: #ede9fe;
    --theme-border-token: #ddd6fe;
    --theme-navbar-token: #ede9fe;
    --theme-muted-token: #6d28d9;
    --theme-link-token: #7c3aed;
    --theme-link-hover-token: #6d28d9;
}

[data-theme="sand"] {
    --theme-primary: #ca8a04;
    --theme-secondary: #a16207;
    --theme-bg: #fefce8;
    --theme-text: #713f12;
    --theme-surface-token: #fef9c3;
    --theme-border-token: #fde047;
    --theme-navbar-token: #fef9c3;
    --theme-muted-token: #854d0e;
    --theme-link-token: #a16207;
    --theme-link-hover-token: #854d0e;
}

[data-theme="mint"] {
    --theme-primary: #10b981;
    --theme-secondary: #059669;
    --theme-bg: #ecfdf5;
    --theme-text: #064e3b;
    --theme-surface-token: #d1fae5;
    --theme-border-token: #a7f3d0;
    --theme-navbar-token: #d1fae5;
    --theme-muted-token: #047857;
    --theme-link-token: #059669;
    --theme-link-hover-token: #047857;
}

[data-theme="coral"] {
    --theme-primary: #fb7185;
    --theme-secondary: #f43f5e;
    --theme-bg: #fff5f5;
    --theme-text: #9f1239;
    --theme-surface-token: #ffe4e6;
    --theme-border-token: #fecdd3;
    --theme-navbar-token: #ffe4e6;
    --theme-muted-token: #be123c;
    --theme-link-token: #f43f5e;
    --theme-link-hover-token: #e11d48;
}

[data-theme="arctic"] {
    --theme-primary: #0ea5e9;
    --theme-secondary: #0284c7;
    --theme-bg: #f0f9ff;
    --theme-text: #0c4a6e;
    --theme-surface-token: #e0f2fe;
    --theme-border-token: #bae6fd;
    --theme-navbar-token: #e0f2fe;
    --theme-muted-token: #0369a1;
    --theme-link-token: #0284c7;
    --theme-link-hover-token: #0369a1;
}

[data-theme="graphite"] {
    --theme-primary: #a1a1aa;
    --theme-secondary: #71717a;
    --theme-bg: #27272a;
    --theme-text: #f4f4f5;
    --theme-surface-token: #3f3f46;
    --theme-border-token: #52525b;
    --theme-navbar-token: #3f3f46;
    --theme-muted-token: #d4d4d8;
    --theme-link-token: #e4e4e7;
    --theme-link-hover-token: #f4f4f5;
}

[data-theme="amber"] {
    --theme-primary: #f59e0b;
    --theme-secondary: #d97706;
    --theme-bg: #fffbeb;
    --theme-text: #78350f;
    --theme-surface-token: #fef3c7;
    --theme-border-token: #fde68a;
    --theme-navbar-token: #fef3c7;
    --theme-muted-token: #b45309;
    --theme-link-token: #d97706;
    --theme-link-hover-token: #b45309;
}

[data-theme="emerald"] {
    --theme-primary: #059669;
    --theme-secondary: #047857;
    --theme-bg: #d1fae5;
    --theme-text: #065f46;
    --theme-surface-token: #a7f3d0;
    --theme-border-token: #6ee7b7;
    --theme-navbar-token: #a7f3d0;
    --theme-muted-token: #047857;
    --theme-link-token: #047857;
    --theme-link-hover-token: #065f46;
}

[data-theme="blush"] {
    --theme-primary: #ec4899;
    --theme-secondary: #db2777;
    --theme-bg: #fdf2f8;
    --theme-text: #9d174d;
    --theme-surface-token: #fce7f3;
    --theme-border-token: #fbcfe8;
    --theme-navbar-token: #fce7f3;
    --theme-muted-token: #be185d;
    --theme-link-token: #db2777;
    --theme-link-hover-token: #be185d;
}

[data-theme="void"] {
    --theme-primary: #737373;
    --theme-secondary: #525252;
    --theme-bg: #000000;
    --theme-text: #e5e5e5;
    --theme-surface-token: #171717;
    --theme-border-token: #404040;
    --theme-navbar-token: #171717;
    --theme-muted-token: #a3a3a3;
    --theme-link-token: #d4d4d4;
    --theme-link-hover-token: #f5f5f5;
}

[data-theme="steel"] {
    --theme-primary: #64748b;
    --theme-secondary: #475569;
    --theme-bg: #f1f5f9;
    --theme-text: #0f172a;
    --theme-surface-token: #ffffff;
    --theme-border-token: #cbd5e1;
    --theme-navbar-token: #f8fafc;
    --theme-muted-token: #64748b;
    --theme-link-token: #475569;
    --theme-link-hover-token: #334155;
}

[data-theme="neon"] {
    --theme-primary: #00ff88;
    --theme-secondary: #00cc6a;
    --theme-bg: #0f0f0f;
    --theme-text: #e8ffe8;
    --theme-surface-token: #1a1a1a;
    --theme-border-token: #2d4a3d;
    --theme-navbar-token: #1a1a1a;
    --theme-muted-token: #7dffb0;
    --theme-link-token: #00ff88;
    --theme-link-hover-token: #7dffb0;
}

[data-theme="phantom"] {
    --theme-primary: #a855f7;
    --theme-secondary: #9333ea;
    --theme-bg: #1a1a2e;
    --theme-text: #eaeaea;
    --theme-surface-token: #252542;
    --theme-border-token: #3d3d5c;
    --theme-navbar-token: #252542;
    --theme-muted-token: #c4b5fd;
    --theme-link-token: #a855f7;
    --theme-link-hover-token: #c4b5fd;
}

[data-theme="obsidian"] {
    --theme-primary: #737373;
    --theme-secondary: #525252;
    --theme-bg: #0d0d0d;
    --theme-text: #d4d4d4;
    --theme-surface-token: #1a1a1a;
    --theme-border-token: #333333;
    --theme-navbar-token: #1a1a1a;
    --theme-muted-token: #a3a3a3;
    --theme-link-token: #d4d4d4;
    --theme-link-hover-token: #f5f5f5;
}

/* Alert variant themes (Bootstrap alert palette) */
[data-theme="alert-primary"] {
    --theme-primary: #0d6efd;
    --theme-secondary: #084298;
    --theme-bg: #cfe2ff;
    --theme-text: #084298;
    --theme-surface-token: #dbeafe;
    --theme-border-token: #9ec5fe;
    --theme-navbar-token: #dbeafe;
    --theme-muted-token: #055160;
    --theme-link-token: #0d6efd;
    --theme-link-hover-token: #084298;
}

[data-theme="alert-secondary"] {
    --theme-primary: #6c757d;
    --theme-secondary: #41464b;
    --theme-bg: #e2e3e5;
    --theme-text: #41464b;
    --theme-surface-token: #e9ecef;
    --theme-border-token: #c4c8cb;
    --theme-navbar-token: #e9ecef;
    --theme-muted-token: #565e64;
    --theme-link-token: #565e64;
    --theme-link-hover-token: #41464b;
}

[data-theme="alert-success"] {
    --theme-primary: #198754;
    --theme-secondary: #0f5132;
    --theme-bg: #d1e7dd;
    --theme-text: #0f5132;
    --theme-surface-token: #d1e7dd;
    --theme-border-token: #a3cfbb;
    --theme-navbar-token: #d1e7dd;
    --theme-muted-token: #0a3622;
    --theme-link-token: #198754;
    --theme-link-hover-token: #0f5132;
}

[data-theme="alert-danger"] {
    --theme-primary: #dc3545;
    --theme-secondary: #842029;
    --theme-bg: #f8d7da;
    --theme-text: #842029;
    --theme-surface-token: #f8d7da;
    --theme-border-token: #f1aeb5;
    --theme-navbar-token: #f8d7da;
    --theme-muted-token: #58151c;
    --theme-link-token: #dc3545;
    --theme-link-hover-token: #842029;
}

[data-theme="alert-warning"] {
    --theme-primary: #ffc107;
    --theme-secondary: #664d03;
    --theme-bg: #fff3cd;
    --theme-text: #664d03;
    --theme-surface-token: #fff3cd;
    --theme-border-token: #ffe69c;
    --theme-navbar-token: #fff3cd;
    --theme-muted-token: #997404;
    --theme-link-token: #997404;
    --theme-link-hover-token: #664d03;
}

[data-theme="alert-info"] {
    --theme-primary: #0dcaf0;
    --theme-secondary: #055160;
    --theme-bg: #cff4fc;
    --theme-text: #055160;
    --theme-surface-token: #cff4fc;
    --theme-border-token: #9eeaf9;
    --theme-navbar-token: #cff4fc;
    --theme-muted-token: #087990;
    --theme-link-token: #0aa2c0;
    --theme-link-hover-token: #055160;
}

[data-theme="alert-light"] {
    --theme-primary: #6c757d;
    --theme-secondary: #495057;
    --theme-bg: #fefefe;
    --theme-text: #636464;
    --theme-surface-token: #f8f9fa;
    --theme-border-token: #dee2e6;
    --theme-navbar-token: #f8f9fa;
    --theme-muted-token: #6c757d;
    --theme-link-token: #495057;
    --theme-link-hover-token: #343a40;
}

[data-theme="alert-dark"] {
    /* Dark UI — Bootstrap alert-dark grey palette on dark surfaces */
    --theme-primary: #adb5bd;
    --theme-secondary: #6c757d;
    --theme-bg: #212529;
    --theme-text: #f8f9fa;
    --theme-surface-token: #2b3035;
    --theme-border-token: #495057;
    --theme-navbar-token: #2b3035;
    --theme-muted-token: #adb5bd;
    --theme-link-token: #dee2e6;
    --theme-link-hover-token: #f8f9fa;
}
