/* ── Base ── */
*, *::before, *::after { font-family: 'Inter', system-ui, sans-serif; box-sizing: border-box; }
html { background: #06091a !important; overflow-x: clip; width: 100%; }
body { background: #06091a !important; margin: 0; display: flex; flex-direction: column; min-height: 100vh; overflow-x: clip; width: 100%; max-width: 100%; }

/* ══ Bootstrap dark theme overrides ══ */
[data-bs-theme="dark"] {
    --bs-body-bg: #06091a;
    --bs-body-bg-rgb: 6,9,26;
    --bs-secondary-bg: rgba(255,255,255,0.06);
    --bs-tertiary-bg: rgba(255,255,255,0.04);
    --bs-body-color: rgba(255,255,255,0.88);
    --bs-body-color-rgb: 255,255,255;
    --bs-secondary-color: rgba(255,255,255,0.5);
    --bs-tertiary-color: rgba(255,255,255,0.35);
    --bs-border-color: rgba(255,255,255,0.15);
    --bs-border-color-translucent: rgba(255,255,255,0.12);
    --bs-link-color: #60a5fa;
    --bs-link-color-rgb: 96,165,250;
    --bs-link-hover-color: #93c5fd;
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37,99,235;
    --bs-card-bg: rgba(255,255,255,0.07);
    --bs-card-border-color: rgba(255,255,255,0.13);
    --bs-card-cap-bg: rgba(255,255,255,0.05);
    --bs-dropdown-bg: rgba(8,12,35,0.97);
    --bs-dropdown-border-color: rgba(255,255,255,0.14);
    --bs-dropdown-link-color: rgba(255,255,255,0.72);
    --bs-dropdown-link-hover-color: #fff;
    --bs-dropdown-link-hover-bg: rgba(255,255,255,0.09);
    --bs-dropdown-link-active-bg: #2563eb;
    --bs-dropdown-divider-bg: rgba(255,255,255,0.1);
    --bs-modal-bg: rgba(8,12,35,0.97);
    --bs-modal-border-color: rgba(255,255,255,0.14);
    --bs-modal-header-border-color: rgba(255,255,255,0.1);
    --bs-modal-footer-border-color: rgba(255,255,255,0.1);
    --bs-list-group-bg: transparent;
    --bs-list-group-border-color: rgba(255,255,255,0.11);
    --bs-list-group-hover-bg: rgba(255,255,255,0.06);
    --bs-list-group-action-hover-bg: rgba(255,255,255,0.06);
    --bs-list-group-active-bg: #2563eb;
    --bs-list-group-active-border-color: #2563eb;
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255,255,255,0.03);
    --bs-table-hover-bg: rgba(255,255,255,0.05);
    --bs-table-border-color: rgba(255,255,255,0.1);
    --bs-nav-tabs-border-color: rgba(255,255,255,0.15);
    --bs-nav-tabs-link-active-bg: rgba(255,255,255,0.08);
}

/* ══ Components (global) ══ */
.btn-primary { background: #2563eb; border-color: #2563eb; box-shadow: 0 4px 14px rgba(37,99,235,0.3); }
.btn-primary:hover, .btn-primary:active, .btn-primary:focus { background: #1d4ed8; border-color: #1d4ed8; }
::-webkit-scrollbar { width: 8px; height: 8px; }

/* ══ Components (dark-theme only) ══ */
[data-bs-theme="dark"] .modal-content { background: #0d1232; }
[data-bs-theme="dark"] .dropdown-menu {
    background-color: #0d1232 !important;
    border-color: rgba(255,255,255,0.12) !important;
    color: rgba(255,255,255,0.88);
}
[data-bs-theme="dark"] .dropdown-item {
    color: rgba(255,255,255,0.88) !important;
}
[data-bs-theme="dark"] .dropdown-item .text-muted,
[data-bs-theme="dark"] .dropdown-item small {
    color: rgba(255,255,255,0.45) !important;
}
[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
    background-color: rgba(255,255,255,0.07) !important;
    color: #fff !important;
}
[data-bs-theme="dark"] .dropdown-item:hover .text-muted,
[data-bs-theme="dark"] .dropdown-item:focus .text-muted {
    color: rgba(255,255,255,0.6) !important;
}

/* Buttons */
[data-bs-theme="dark"] .btn-outline-primary { border-color: rgba(99,149,255,0.55); color: #60a5fa; }
[data-bs-theme="dark"] .btn-outline-primary:hover { background: rgba(37,99,235,0.2); border-color: #60a5fa; color: #fff; }
[data-bs-theme="dark"] .btn-outline-secondary { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.6); }
[data-bs-theme="dark"] .btn-outline-secondary:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.35); }
[data-bs-theme="dark"] .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

/* Alerts */
[data-bs-theme="dark"] .alert-success { background: rgba(34,197,94,0.12);  border-color: rgba(34,197,94,0.3);  color: #86efac; }
[data-bs-theme="dark"] .alert-danger  { background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.3); color: #fca5a5; }
[data-bs-theme="dark"] .alert-warning { background: rgba(251,191,36,0.12); border-color: rgba(251,191,36,0.3);  color: #fde68a; }
[data-bs-theme="dark"] .alert-info    { background: rgba(56,189,248,0.12); border-color: rgba(56,189,248,0.3);  color: #7dd3fc; }
[data-bs-theme="dark"] .alert-primary { background: rgba(37,99,235,0.12);  border-color: rgba(37,99,235,0.35);  color: #93c5fd; }

/* Footer */
[data-bs-theme="dark"] footer.border-top { background: transparent !important; border-top-color: rgba(255,255,255,0.1) !important; }
[data-bs-theme="dark"] footer a, [data-bs-theme="dark"] footer span { color: rgba(255,255,255,0.4) !important; }
[data-bs-theme="dark"] footer a:hover { color: rgba(255,255,255,0.75) !important; }

/* Pagination */
[data-bs-theme="dark"] .page-link { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.13); color: rgba(255,255,255,0.7); }
[data-bs-theme="dark"] .page-link:hover { background: rgba(255,255,255,0.12); color: #fff; }
[data-bs-theme="dark"] .page-item.active .page-link { background: #2563eb; border-color: #2563eb; color: #fff; }
[data-bs-theme="dark"] .page-item.disabled .page-link { background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.3); }

/* Scrollbar */
[data-bs-theme="dark"] ::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
[data-bs-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 4px; }
[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.32); }

/* ══ Top Bar ══ */
.app-topbar {
    background: #0b0f28;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    height: 100px;
    position: sticky;
    top: 0;
    z-index: 1040;
    display: flex;
    align-items: center;
    padding: 0 1.25rem;
    gap: .75rem;
}
.topbar-brand { width: 220px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 0; margin-left: -1.25rem; }
.topbar-brand img { max-height: 90px; width: auto; display: block; }
.topbar-actions { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.app-topbar .nav-link {
    color: rgba(255,255,255,0.65) !important;
    font-size: .875rem;
    padding: .38rem .55rem !important;
    border-radius: 7px;
    transition: color .15s, background .15s;
}
.app-topbar .nav-link:hover { color: #fff !important; background: rgba(255,255,255,0.08); }
.app-topbar .dropdown-menu { background: #0d1232; box-shadow: 0 8px 32px rgba(0,0,0,0.5); border-radius: 10px; padding: .35rem; }
.app-topbar .dropdown-item { color: rgba(255,255,255,0.72); font-size: .875rem; border-radius: 6px; padding: .42rem .75rem; transition: background .12s, color .12s; }
.app-topbar .dropdown-item:hover { color: #fff; background: rgba(255,255,255,0.09); }
.app-topbar .dropdown-item.active, .app-topbar .dropdown-item:active { background: #2563eb; color: #fff; }
.app-topbar .dropdown-divider { border-color: rgba(255,255,255,0.1); margin: .3rem 0; }
.sidebar-toggle { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 1.3rem; padding: .2rem .4rem; border-radius: 6px; cursor: pointer; line-height: 1; position: relative; z-index: 2; flex-shrink: 0; }
.sidebar-toggle:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* ══ Layout ══ */
.app-layout { display: flex; flex: 1; }

/* ══ Sidebar ══ */
.app-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #080c20;
    border-right: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 100px;
    height: calc(100vh - 100px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: .75rem 0 2rem;
}
.sidebar-section {
    padding: .9rem .85rem .2rem;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,0.22);
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .46rem .9rem;
    margin: 1px .5rem;
    border-radius: 7px;
    color: rgba(255,255,255,0.62);
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color .13s, background .13s;
    white-space: nowrap;
}
.sidebar-link i { font-size: 1rem; flex-shrink: 0; width: 1.1rem; text-align: center; }
.sidebar-link:hover { color: #fff; background: #1e2244; }
.sidebar-link.active { color: #fff; background: #1e3a6e; }
.sidebar-divider { border-top: 1px solid rgba(255,255,255,0.07); margin: .5rem .75rem; }

/* Mobile sidebar */
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 1035; }
body.sidebar-open .sidebar-overlay { display: block; }
body.sidebar-open .app-sidebar { transform: translateX(0) !important; }
/* ── Mobile Topbar ── */
.topbar-mobile-bar {
    display: none;
    background: #0b0f28;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: .4rem 1rem;
}
[data-bs-theme="light"] .topbar-mobile-bar { background: #ffffff; border-bottom-color: rgba(0,0,0,0.1); }

.sidebar-logo { display: none; padding: .75rem 1rem .5rem; justify-content: center; }
.sidebar-logo img { max-height: 110px; width: auto; }

@media (max-width: 991.98px) {
    .app-sidebar { position: fixed; top: 142px; bottom: 0; left: 0; z-index: 1036; transform: translateX(-100%); transition: transform .22s; overflow-y: auto; -webkit-overflow-scrolling: touch; height: auto; }
    .topbar-brand { display: none; }
    .topbar-actions .nav-date-check-wrap { display: none; }
    .topbar-band-switch { display: none; }
    .topbar-mobile-bar { display: block; }
    .sidebar-logo { display: flex; }
    .app-topbar { overflow: visible; }
    /* Mobile: + Neu Button nur Icon, Text weg */
    .nav-btn-new .bi + span, .nav-btn-new { font-size: 0; padding: .35rem .55rem; }
    .nav-btn-new .bi { font-size: .875rem; }
}
@media (max-width: 575.98px) {
    /* Kleine Screens: Nur Badges mit Zähler, Benachrichtigungen, User-Avatar zeigen */
    .topbar-hide-xs { display: none !important; }
    .topbar-actions { gap: .25rem; }
    .topbar-actions .nav-link { padding: .3rem .4rem !important; font-size: .95rem; }
    .nav-btn-new { padding: .3rem .5rem !important; }
}
/* ── Mobile: Buttons kompakt, Icon-Buttons nur Icon ── */
@media (max-width: 767.98px) {
    /* Buttons: .btn-label immer ausblenden auf mobile */
    .btn-label { display: none !important; }
    /* Alle btn-sm die ein Icon enthalten: nur Icon zeigen */
    .btn-sm:has(> i, > .bi) { font-size: 0; padding: .35rem .6rem; }
    .btn-sm:has(> i, > .bi) > i,
    .btn-sm:has(> i, > .bi) > .bi { font-size: .875rem; }
    .btn-sm:has(> i, > .bi) > .badge { font-size: .7rem; }
    /* Normale Buttons: kompakter */
    .btn:not(.btn-sm):not(.btn-lg) { font-size: .82rem; padding: .4rem .75rem; }
    .btn:not(.btn-sm):not(.btn-lg) > i { margin-right: .25rem; }
    /* btn-sm generell kleiner */
    .btn-sm { font-size: .72rem; padding: .25rem .45rem; }
    /* Tabs: nur Icons, horizontal scrollbar */
    .nav-tabs-mobile {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
        max-width: 100%;
    }
    .nav-tabs-mobile::-webkit-scrollbar { display: none; }
    .nav-tabs-mobile .nav-item { flex-shrink: 0; }
    .nav-tabs-mobile .nav-link { padding: .5rem .7rem; font-size: 1rem; }
    .nav-tabs-mobile .tab-label { display: none; }
}

/* ══ Content ══ */
.app-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ── Participant Row (Gagenaufteilung) ── */
.participant-layout {
    display: grid;
    grid-template-columns: 1fr 1fr auto 105px;
    gap: 6px;
    align-items: start;
    padding-right: 2rem;
}
/* Einheitliche Höhe: alle interaktiven Elemente 31px */
.participant-layout select.form-select-sm,
.participant-layout .input-group-sm > .form-control,
.participant-layout .input-group-sm > .input-group-text {
    height: 31px;
    font-size: .82rem;
}
.participant-layout .badge {
    height: 31px;
    display: inline-flex;
    align-items: center;
    font-size: .75rem;
}
/* Instrumente: vertikal gestapelt, +Button am Ende */
.participant-col-instr .instrument-rows { display: flex; flex-direction: column; gap: 3px; }
.participant-col-instr .instrument-rows .d-flex { margin-bottom: 0 !important; }
.participant-col-instr .instrument-rows > .btn { align-self: flex-start; height: 31px; }
/* Delete-Button auf Grid-Höhe */
.participant-row .remove-participant { top: 10px !important; right: 8px !important; transform: none !important; margin: 0 !important; }
/* Status: kein Umbruch */
.participant-col-status { white-space: nowrap; }
@media (max-width: 767.98px) {
    .participant-layout {
        grid-template-columns: 1fr 105px;
    }
    .participant-col-user { grid-column: 1 / -1; }
    .participant-col-instr { grid-column: 1 / -1; }
    .participant-col-status { grid-column: 1; }
    .participant-col-fee { grid-row: 3; grid-column: 2; }
    .participant-row .remove-participant { top: 4px !important; transform: none !important; }
}

/* ── Quick Date Check ── */
.nav-date-check-wrap { position: relative; }
.nav-date-check-inner {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    overflow: hidden;
}
.nav-date-label {
    padding: .28rem .6rem;
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,0.15);
    user-select: none;
}
.nav-date-input {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.75);
    font-size: .8rem;
    padding: .28rem .55rem;
    width: 130px;
    cursor: pointer;
}
.nav-date-input::placeholder { color: rgba(255,255,255,0.35); }
.nav-date-input:focus { outline: none; }
.nav-date-check-inner:focus-within { border-color: rgba(99,179,255,0.6); background: rgba(255,255,255,0.13); }

/* Flatpickr dark theme */
.flatpickr-calendar {
    background: #0d1232 !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5) !important;
    border-radius: 10px !important;
    font-family: 'Inter', system-ui, sans-serif !important;
}
.flatpickr-calendar::before, .flatpickr-calendar::after { display: none !important; }
.flatpickr-months { padding: .4rem .4rem 0; }
.flatpickr-month { color: rgba(255,255,255,0.85) !important; }
.flatpickr-current-month { color: rgba(255,255,255,0.85) !important; font-size: .9rem !important; }
.flatpickr-current-month .flatpickr-monthDropdown-months { background: transparent !important; color: rgba(255,255,255,0.85) !important; }
.flatpickr-current-month input.cur-year { color: rgba(255,255,255,0.85) !important; }
.flatpickr-prev-month, .flatpickr-next-month { color: rgba(255,255,255,0.55) !important; fill: rgba(255,255,255,0.55) !important; }
.flatpickr-prev-month:hover, .flatpickr-next-month:hover { color: #fff !important; fill: #fff !important; }
.flatpickr-weekday { color: rgba(255,255,255,0.3) !important; font-size: .72rem !important; }
.flatpickr-day { color: rgba(255,255,255,0.72) !important; border-radius: 6px !important; font-size: .83rem !important; }
.flatpickr-day:hover { background: rgba(255,255,255,0.09) !important; border-color: transparent !important; color: #fff !important; }
.flatpickr-day.today { border-color: rgba(37,99,235,0.6) !important; }
.flatpickr-day.today:hover { background: rgba(37,99,235,0.2) !important; }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: #2563eb !important; border-color: #2563eb !important; color: #fff !important; }
.flatpickr-day.flatpickr-disabled { color: rgba(255,255,255,0.18) !important; }
.numInputWrapper:hover { background: rgba(255,255,255,0.06) !important; }
.nav-check-result {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    background: #0d1232;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    padding: .6rem .85rem;
    z-index: 1050;
    font-size: .82rem;
}
.nav-check-free  { color: #86efac; font-weight: 600; }
.nav-check-busy  { color: #fca5a5; font-weight: 600; display: block; margin-bottom: .3rem; }
.nav-check-event { color: rgba(255,255,255,0.75); padding: .1rem 0; }
.nav-check-time  { color: rgba(255,255,255,0.45); font-size: .75rem; margin-right: .35rem; }
.nav-check-loading, .nav-check-error { color: rgba(255,255,255,0.4); font-style: italic; }

/* ── Badge Icons ── */
.nav-badge-icon { position: relative; padding: .38rem .5rem !important; }
.nav-badge {
    position: absolute; top: 2px; right: 2px;
    background: #ef4444; color: #fff;
    font-size: .6rem; font-weight: 700;
    min-width: 16px; height: 16px;
    border-radius: 99px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 3px; line-height: 1;
}
.nav-badge-dropdown { min-width: 260px; max-height: 320px; overflow-y: auto; }

/* ── + Neu Button ── */
.nav-btn-new { font-size: .82rem; font-weight: 600; padding: .3rem .85rem; }
.topbar-username { font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.75); }
[data-bs-theme="light"] .topbar-username { color: rgba(0,0,0,.65); }

/* ══ Light Theme Overrides ══ */
[data-bs-theme="light"] {
    --bs-body-bg: #f4f6fb;
    --bs-body-color: #1a1d2e;
    --bs-secondary-bg: rgba(0,0,0,0.04);
    --bs-tertiary-bg: rgba(0,0,0,0.03);
    --bs-body-color-rgb: 26,29,46;
    --bs-secondary-color: rgba(0,0,0,0.5);
    --bs-tertiary-color: rgba(0,0,0,0.35);
    --bs-border-color: rgba(0,0,0,0.12);
    --bs-border-color-translucent: rgba(0,0,0,0.1);
    --bs-link-color: #1d4ed8;
    --bs-link-color-rgb: 29,78,216;
    --bs-link-hover-color: #1e40af;
    --bs-card-bg: #ffffff;
    --bs-card-border-color: rgba(0,0,0,0.1);
    --bs-card-cap-bg: rgba(0,0,0,0.03);
    --bs-dropdown-bg: #ffffff;
    --bs-dropdown-border-color: rgba(0,0,0,0.12);
    --bs-dropdown-link-color: #1a1d2e;
    --bs-dropdown-link-hover-color: #000;
    --bs-dropdown-link-hover-bg: rgba(0,0,0,0.06);
    --bs-dropdown-link-active-bg: #2563eb;
    --bs-dropdown-divider-bg: rgba(0,0,0,0.1);
    --bs-modal-bg: #ffffff;
    --bs-modal-border-color: rgba(0,0,0,0.12);
    --bs-list-group-bg: #ffffff;
    --bs-list-group-border-color: rgba(0,0,0,0.1);
    --bs-list-group-hover-bg: rgba(0,0,0,0.05);
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(0,0,0,0.02);
    --bs-table-hover-bg: rgba(0,0,0,0.04);
    --bs-table-border-color: rgba(0,0,0,0.1);
}
[data-bs-theme="light"] body { background: #f4f6fb !important; }

/* Topbar */
[data-bs-theme="light"] .app-topbar {
    background: #ffffff;
    border-bottom-color: rgba(0,0,0,0.1);
}
[data-bs-theme="light"] .app-topbar .nav-link { color: rgba(0,0,0,0.6) !important; }
[data-bs-theme="light"] .app-topbar .nav-link:hover { color: #000 !important; background: rgba(0,0,0,0.06); }
[data-bs-theme="light"] .app-topbar .dropdown-menu { background: #ffffff; box-shadow: 0 8px 32px rgba(0,0,0,0.15); }
[data-bs-theme="light"] .app-topbar .dropdown-item { color: rgba(0,0,0,0.72); }
[data-bs-theme="light"] .app-topbar .dropdown-item:hover { color: #000; background: rgba(0,0,0,0.07); }
[data-bs-theme="light"] .sidebar-toggle { color: rgba(0,0,0,0.6); }
[data-bs-theme="light"] .sidebar-toggle:hover { color: #000; background: rgba(0,0,0,0.07); }

/* Sidebar */
[data-bs-theme="dark"] .app-sidebar { background: #080c20 !important; }
[data-bs-theme="light"] .app-sidebar {
    background: #eef1f8 !important;
    border-right-color: rgba(0,0,0,0.08);
}
[data-bs-theme="light"] .sidebar-section { color: rgba(0,0,0,0.35); }
[data-bs-theme="light"] .sidebar-link { color: rgba(0,0,0,0.65); }
[data-bs-theme="light"] .sidebar-link:hover { color: #000; background: rgba(0,0,0,0.07); }
[data-bs-theme="light"] .sidebar-link.active { color: #1d4ed8; background: rgba(37,99,235,0.1); }
[data-bs-theme="light"] .sidebar-divider { border-top-color: rgba(0,0,0,0.08); }

/* Date Check */
[data-bs-theme="light"] .nav-date-check-inner {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.18);
}
[data-bs-theme="light"] .nav-date-check-inner:focus-within {
    border-color: rgba(37,99,235,0.5);
    background: rgba(0,0,0,0.09);
}
[data-bs-theme="light"] .nav-date-label {
    color: rgba(0,0,0,0.5);
    border-right-color: rgba(0,0,0,0.12);
}
[data-bs-theme="light"] .nav-date-input { color: rgba(0,0,0,0.75); }
[data-bs-theme="light"] .nav-date-input::placeholder { color: rgba(0,0,0,0.3); }
[data-bs-theme="light"] .nav-check-result {
    background: #ffffff;
    border-color: rgba(0,0,0,0.12);
}

/* Flatpickr */
[data-bs-theme="light"] .flatpickr-calendar {
    background: #ffffff !important;
    border-color: rgba(0,0,0,0.12) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}
[data-bs-theme="light"] .flatpickr-month,
[data-bs-theme="light"] .flatpickr-current-month,
[data-bs-theme="light"] .flatpickr-current-month .flatpickr-monthDropdown-months,
[data-bs-theme="light"] .flatpickr-current-month input.cur-year { color: rgba(0,0,0,0.8) !important; }
[data-bs-theme="light"] .flatpickr-prev-month,
[data-bs-theme="light"] .flatpickr-next-month { color: rgba(0,0,0,0.5) !important; fill: rgba(0,0,0,0.5) !important; }
[data-bs-theme="light"] .flatpickr-weekday { color: rgba(0,0,0,0.4) !important; }
[data-bs-theme="light"] .flatpickr-day { color: rgba(0,0,0,0.75) !important; }
[data-bs-theme="light"] .flatpickr-day:hover { background: rgba(0,0,0,0.07) !important; border-color: transparent !important; color: #000 !important; }
[data-bs-theme="light"] .flatpickr-day.today { border-color: rgba(37,99,235,0.5) !important; }
[data-bs-theme="light"] .flatpickr-day.selected,
[data-bs-theme="light"] .flatpickr-day.selected:hover { background: #2563eb !important; border-color: #2563eb !important; color: #fff !important; }

/* Modal + Scrollbar */
[data-bs-theme="light"] .modal-content { background: #ffffff; }
[data-bs-theme="light"] .dropdown-menu { background: #ffffff; }
[data-bs-theme="light"] ::-webkit-scrollbar-track { background: rgba(0,0,0,0.03); }
[data-bs-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); }
[data-bs-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.35); }

/* ── Presence Sidebar ── */
.presence-sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: calc(100vh - 100px);
    overflow-y: auto;
    border-left: 1px solid rgba(255,255,255,0.08);
    padding: 1rem 0.75rem;
    align-self: flex-start;
}
[data-bs-theme="light"] .presence-sidebar {
    border-left-color: rgba(0,0,0,0.1);
}

/* ── Public Wiki Content ── */
.wiki-public-content {
    background: rgba(6, 9, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ── Mobile Badge Override (muss nach .nav-badge stehen) ── */
@media (max-width: 575.98px) {
    .nav-badge-icon { padding: .35rem .55rem !important; }
    .nav-badge-icon i { font-size: 1.15rem; }
    .nav-badge {
        top: -1px; right: -2px;
        font-size: .5rem;
        min-width: 13px; height: 13px;
        padding: 0 2px;
    }
}
