/* ================================================================
   Notika-style Admin Layout
   ================================================================ */

:root {
    --sidebar-width: 260px;
    --sidebar-bg: #1e2a3a;
    --sidebar-hover-bg: rgba(255,255,255,0.07);
    --sidebar-active-bg: #4f46e5;
    --sidebar-text: #8b9ab0;
    --sidebar-heading: #4a5a70;
    --sidebar-icon-color: #6b7d95;
    --topbar-height: 60px;
    --topbar-bg: #ffffff;
    --content-bg: #f0f2f8;
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --accent-light: #e0e7ff;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
    --radius: 10px;
    /* Content theme vars */
    --card-bg: #ffffff;
    --card-header-bg: #f8f9fc;
    --card-header-text: #1e2a3a;
    --card-border: #e4e9f0;
    --text-primary: #1e2a3a;
    --text-muted: #8b9ab0;
    --input-bg: #ffffff;
    --input-border: #d1d9e6;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--content-bg);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ================================================================
   SIDEBAR
   ================================================================ */
.nk-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.25s ease, width 0.25s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.nk-sidebar::-webkit-scrollbar { width: 4px; }
.nk-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* Brand */
.nk-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
    height: var(--topbar-height);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}
.nk-sidebar-brand .brand-icon {
    width: 34px; height: 34px;
    background: var(--accent);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    color: #fff;
}
.nk-sidebar-brand .brand-text {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nk-sidebar-brand .brand-logo {
    max-height: calc(var(--topbar-height) - 16px);
    max-width: calc(var(--sidebar-width, 240px) - 40px);
    width: auto;
    object-fit: contain;
}

/* Nav sections */
.nk-sidebar-nav {
    flex: 1;
    padding: 16px 0;
}
.nk-nav-section {
    margin-bottom: 4px;
}
.nk-nav-heading {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sidebar-heading);
    padding: 14px 20px 6px;
}
.nk-nav-item {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nk-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
    transition: background 0.15s, color 0.15s;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
}
.nk-nav-link .nk-nav-icon {
    font-size: 17px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    color: var(--sidebar-icon-color);
    transition: color 0.15s;
}
.nk-nav-link:hover {
    background: var(--sidebar-hover-bg);
    color: #fff;
}
.nk-nav-link:hover .nk-nav-icon {
    color: #fff;
}
.nk-nav-link.active {
    background: var(--sidebar-active-bg);
    color: #fff;
}
.nk-nav-link.active .nk-nav-icon {
    color: #fff;
}
.nk-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: rgba(255,255,255,0.6);
    border-radius: 0 2px 2px 0;
}

/* Subject selector in sidebar footer */
.nk-sidebar-footer {
    padding: 12px 14px;
    border-top: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}
.nk-sidebar-subject {
    padding: 10px 14px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}
.nk-subject-select {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #d0d8e8;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
}
.nk-subject-select:focus {
    border-color: var(--accent);
}
.nk-subject-select option {
    background: #1e2a3a;
    color: #d0d8e8;
}
.nk-subject-label {
    font-size: 11px;
    color: var(--sidebar-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nk-star-default { color: #f59e0b; }
.nk-star-set { color: rgba(255,255,255,0.3); text-decoration: none; }
.nk-star-set:hover { color: #f59e0b; }

/* ================================================================
   MAIN WRAPPER
   ================================================================ */
.nk-main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.25s ease;
}

/* ================================================================
   TOPBAR
   ================================================================ */
.nk-topbar {
    position: sticky;
    top: 0;
    height: var(--topbar-height);
    background: var(--topbar-bg);
    border-bottom: 1px solid #e4e9f0;
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 1030;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}
.nk-topbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 21px;
    color: #6b7d95;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    line-height: 1;
}
.nk-topbar-toggle:hover { background: #f0f2f8; color: #1e2a3a; }
.nk-topbar-breadcrumb {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #8b9ab0;
    min-width: 0;
}
.nk-topbar-breadcrumb a {
    color: #8b9ab0;
    text-decoration: none;
}
.nk-topbar-breadcrumb a:hover { color: var(--accent); }
.nk-topbar-breadcrumb .current {
    color: #1e2a3a;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nk-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.nk-topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 13px;
    transition: background 0.15s;
}
.nk-topbar-user:hover { background: #f0f2f8; }
.nk-topbar-user .avatar {
    width: 30px; height: 30px;
    background: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.nk-topbar-user .user-name { font-weight: 600; }
.nk-topbar-user .user-role {
    font-size: 11px;
    color: #8b9ab0;
    display: none;
}
.nk-lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nk-lang-btn {
    display: flex;
    align-items: center;
    padding: 4px 6px;
    border-radius: 6px;
    opacity: 0.6;
    transition: all 0.15s;
    text-decoration: none;
    border: 2px solid transparent;
}
.nk-lang-btn:hover { opacity: 1; background: #f0f2f8; }
.nk-lang-btn.active { opacity: 1; border-color: var(--accent); background: var(--accent-light); }
.nk-lang-btn svg { border-radius: 2px; }

/* ================================================================
   CONTENT AREA
   ================================================================ */
.nk-content {
    flex: 1;
    padding: 24px;
}
.nk-page-header {
    margin-bottom: 24px;
}
.nk-page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px;
}
.nk-page-subtitle {
    font-size: 13px;
    color: #8b9ab0;
    margin: 0;
}

/* ================================================================
   CARDS — unified appearance
   ================================================================ */
.card {
    border: none !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-sm) !important;
    background: var(--card-bg) !important;
}
.card-header {
    border-radius: var(--radius) var(--radius) 0 0 !important;
    border-bottom: 1px solid var(--card-border) !important;
    background: var(--card-header-bg) !important;
    color: var(--card-header-text) !important;
    font-weight: 600;
}
/* Normalize all coloured card-headers to the same neutral style */
.card-header[class*="bg-"] {
    background: var(--card-header-bg) !important;
    color: var(--card-header-text) !important;
    border-bottom: 1px solid var(--card-border) !important;
}
.card-footer {
    border-top: 1px solid var(--card-border) !important;
    background: var(--card-header-bg) !important;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-primary { background: var(--accent) !important; border-color: var(--accent) !important; }
.btn-primary:hover { background: var(--accent-hover) !important; border-color: var(--accent-hover) !important; }
.btn-outline-primary { color: var(--accent) !important; border-color: var(--accent) !important; }
.btn-outline-primary:hover { background: var(--accent) !important; color: #fff !important; }
/* Neutral button palette — all actions use accent or muted tones */
.btn-success { background: #3b9b74 !important; border-color: #3b9b74 !important; }
.btn-success:hover { background: #2f8060 !important; border-color: #2f8060 !important; }
.btn-warning { background: #64748b !important; border-color: #64748b !important; color: #fff !important; }
.btn-warning:hover { background: #576478 !important; border-color: #576478 !important; color: #fff !important; }
.btn-danger { background: #dc6060 !important; border-color: #dc6060 !important; }
.btn-danger:hover { background: #c74848 !important; border-color: #c74848 !important; }
.btn-info { background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
.btn-info:hover { background: var(--accent-hover) !important; border-color: var(--accent-hover) !important; color: #fff !important; }
.btn-outline-success { color: #3b9b74 !important; border-color: #3b9b74 !important; }
.btn-outline-success:hover { background: #3b9b74 !important; color: #fff !important; }
.btn-outline-warning { color: #64748b !important; border-color: #64748b !important; }
.btn-outline-warning:hover { background: #64748b !important; color: #fff !important; }
.btn-outline-danger { color: #dc6060 !important; border-color: #dc6060 !important; }
.btn-outline-danger:hover { background: #dc6060 !important; color: #fff !important; }
.btn-outline-info { color: var(--accent) !important; border-color: var(--accent) !important; }
.btn-outline-info:hover { background: var(--accent) !important; color: #fff !important; }
/* Badge neutralization */
.badge.bg-primary { background: var(--accent) !important; }
.badge.bg-success { background: #3b9b74 !important; }
.badge.bg-warning { background: #64748b !important; color: #fff !important; }
.badge.bg-danger  { background: #dc6060 !important; }
.badge.bg-info    { background: var(--accent) !important; }

/* ================================================================
   DASHBOARD STAT CARDS
   ================================================================ */
.nk-stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s, transform 0.15s;
}
.nk-stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: inherit;
}
.nk-stat-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.nk-stat-value { font-size: 26px; font-weight: 700; line-height: 1; color: var(--text-primary); }
.nk-stat-label { font-size: 12px; color: #8b9ab0; margin-top: 3px; }

/* ================================================================
   ALERTS — unified neutral Notika style
   ================================================================ */
.alert {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    color: var(--text-primary);
}
.alert-info,
.alert-primary,
.alert-success,
.alert-warning  { border-left-color: var(--accent); }
.alert-danger     { border-left-color: #ef4444; }
.alert h5, .alert h6, .alert strong { color: var(--text-primary); }

/* ================================================================
   FLASH MESSAGES
   ================================================================ */
.nk-flash-container {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    min-width: 320px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nk-flash-container .alert {
    border-radius: 10px;
    border: none;
    box-shadow: var(--shadow-md);
    animation: slideDown 0.25s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   TABLES
   ================================================================ */
.table { --bs-table-bg: transparent; }
.table thead th {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--card-header-bg);
    border-bottom: 2px solid var(--card-border);
    padding: 10px 12px;
}
/* Neutralize Bootstrap colored table headers */
.table thead.table-dark,
.table thead.table-light {
    --bs-table-bg: var(--card-header-bg);
    --bs-table-color: var(--text-muted);
}
.table tbody td { padding: 12px 12px; vertical-align: middle; }
.table-hover tbody tr:hover { background: rgba(79,70,229,0.04); }

/* ================================================================
   OVERLAY (mobile)
   ================================================================ */
.nk-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1039;
    backdrop-filter: blur(2px);
}
.nk-overlay.show { display: block; }

/* ================================================================
   SIDEBAR COLLAPSED (mobile)
   ================================================================ */
@media (max-width: 991px) {
    .nk-sidebar {
        transform: translateX(-100%);
    }
    .nk-sidebar.show {
        transform: translateX(0);
    }
    .nk-main {
        margin-left: 0;
    }
    .nk-topbar-toggle {
        display: block;
    }
    .nk-content {
        padding: 16px;
    }
}

/* ================================================================
   AUTH LAYOUT (login / signup pages)
   ================================================================ */
.nk-auth-body {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e2a3a 0%, #4f46e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
}
.nk-auth-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.nk-auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    padding: 40px;
    width: 100%;
    max-width: 440px;
    position: relative;
}
.nk-auth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
    justify-content: center;
}
.nk-auth-logo .logo-icon {
    width: 44px; height: 44px;
    background: var(--accent);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: #fff;
}
.nk-auth-logo .logo-text {
    font-size: 20px;
    font-weight: 800;
    color: #1e2a3a;
}
.nk-auth-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e2a3a;
    text-align: center;
    margin-bottom: 6px;
}
.nk-auth-subtitle {
    font-size: 13px;
    color: #8b9ab0;
    text-align: center;
    margin-bottom: 28px;
}
.nk-auth-lang {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 4px;
}

/* ================================================================
   Dashboard link cards
   ================================================================ */
.dashboard-link-card {
    transition: transform 0.15s, box-shadow 0.15s;
    cursor: pointer;
}
.dashboard-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.10) !important;
}

/* ================================================================
   PAGE WRAPPERS
   ================================================================ */
.nk-page {
    padding: 28px 28px 40px;
    width: 100%;
}
.nk-page.nk-page-narrow {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}
.nk-page.nk-page-flush {
    padding: 0 !important;
}
.nk-page.nk-page-flush .nk-page-header {
    padding: 20px 24px 0;
}
@media (max-width: 991px) {
    .nk-page { padding: 16px 16px 32px; }
}

/* ================================================================
   FRONT MODULE LAYOUT
   ================================================================ */
.front-topbar {
    background: var(--sidebar-bg);
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.front-topbar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}
.front-topbar .brand-icon {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.front-topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}
.front-main {
    max-width: 100%;
}

/* ================================================================
   THEME TOGGLE BUTTON
   ================================================================ */
.nk-theme-toggle {
    background: none;
    border: none;
    font-size: 18px;
    color: #6b7d95;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    line-height: 1;
    transition: background 0.15s, color 0.15s;
}
.nk-theme-toggle:hover { background: #f0f2f8; color: #1e2a3a; }
/* Show moon (light mode) or sun (dark mode) */
.nk-theme-toggle .bi-sun-fill { display: none; }
[data-theme="dark"] .nk-theme-toggle .bi-moon-fill { display: none; }
[data-theme="dark"] .nk-theme-toggle .bi-sun-fill { display: inline; }

/* ================================================================
   DARK MODE — CSS VARIABLES
   ================================================================ */
[data-theme="dark"] {
    --content-bg: #0f1923;
    --card-bg: #1a2535;
    --card-header-bg: #1e2a3a;
    --card-header-text: #e2e8f0;
    --card-border: rgba(255,255,255,0.08);
    --topbar-bg: #1a2535;
    --text-primary: #e2e8f0;
    --text-muted: #6b7d95;
    --input-bg: #1e2a3a;
    --input-border: rgba(255,255,255,0.12);
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.25);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
}

/* ================================================================
   DARK MODE — COMPONENT OVERRIDES
   ================================================================ */
[data-theme="dark"] body { color: var(--text-primary); }
[data-theme="dark"] .nk-topbar { border-bottom-color: var(--card-border); }
[data-theme="dark"] .nk-topbar-toggle:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }
[data-theme="dark"] .nk-topbar-user { color: var(--text-primary); }
[data-theme="dark"] .nk-topbar-user:hover { background: rgba(255,255,255,0.05); }
[data-theme="dark"] .nk-topbar-breadcrumb { color: var(--text-muted); }
[data-theme="dark"] .nk-topbar-breadcrumb a { color: var(--text-muted); }
[data-theme="dark"] .nk-topbar-breadcrumb .current { color: var(--text-primary); }
[data-theme="dark"] .nk-lang-btn:hover { background: rgba(255,255,255,0.08); }
[data-theme="dark"] .nk-lang-btn.active { background: rgba(79,70,229,0.2); border-color: var(--accent); }
[data-theme="dark"] .nk-theme-toggle { color: var(--text-muted); }
[data-theme="dark"] .nk-theme-toggle:hover { background: rgba(255,255,255,0.08); color: #fff; }
/* Typography */
[data-theme="dark"] h1,[data-theme="dark"] h2,[data-theme="dark"] h3,[data-theme="dark"] h4,[data-theme="dark"] h5,[data-theme="dark"] h6 { color: var(--text-primary); }
[data-theme="dark"] p:not(.nk-page-subtitle) { color: var(--text-primary); }
[data-theme="dark"] .text-muted { color: var(--text-muted) !important; }
[data-theme="dark"] .text-dark { color: var(--text-primary) !important; }
[data-theme="dark"] hr { border-color: var(--card-border); }
[data-theme="dark"] small { color: inherit; }
/* Forms */
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .form-control:disabled {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-primary);
}
[data-theme="dark"] .form-control:focus,[data-theme="dark"] .form-select:focus {
    background: var(--input-bg);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
}
[data-theme="dark"] .form-control::placeholder { color: var(--text-muted); }
[data-theme="dark"] .form-text { color: var(--text-muted); }
[data-theme="dark"] .form-label { color: var(--text-primary); }
[data-theme="dark"] .form-check-label { color: var(--text-primary); }
[data-theme="dark"] .input-group-text {
    background: var(--input-bg);
    border-color: var(--input-border);
    color: var(--text-muted);
}
/* Tables */
[data-theme="dark"] .table {
    --bs-table-color: var(--text-primary);
    --bs-table-striped-color: var(--text-primary);
    --bs-table-border-color: var(--card-border);
}
[data-theme="dark"] .table-hover tbody tr:hover { background-color: rgba(255,255,255,0.04) !important; }
[data-theme="dark"] .table-secondary { --bs-table-bg: rgba(255,255,255,0.04); }
[data-theme="dark"] .table-light { --bs-table-bg: rgba(255,255,255,0.04); --bs-table-color: var(--text-primary); }
/* Alerts — dark mode uses same neutral card bg, only left-border keeps accent */
[data-theme="dark"] .alert          { background: var(--card-bg); border-color: var(--card-border); color: var(--text-primary); }
[data-theme="dark"] .alert-info,
[data-theme="dark"] .alert-primary,
[data-theme="dark"] .alert-success,
[data-theme="dark"] .alert-warning  { border-left-color: var(--accent); }
[data-theme="dark"] .alert-danger   { border-left-color: #ef4444; }
/* Badges */
[data-theme="dark"] .badge.bg-secondary { background: #334155 !important; }
[data-theme="dark"] .badge.bg-light { background: rgba(255,255,255,0.1) !important; color: var(--text-primary) !important; }
/* Buttons */
[data-theme="dark"] .btn-secondary { background: #334155 !important; border-color: #334155 !important; color: #e2e8f0 !important; }
[data-theme="dark"] .btn-secondary:hover { background: #3d4f68 !important; border-color: #3d4f68 !important; }
[data-theme="dark"] .btn-outline-secondary { border-color: #4a5a70 !important; color: #8b9ab0 !important; }
[data-theme="dark"] .btn-outline-secondary:hover { background: rgba(255,255,255,0.08) !important; color: var(--text-primary) !important; }
[data-theme="dark"] .btn-outline-primary { color: var(--accent) !important; }
[data-theme="dark"] .btn-light { background: rgba(255,255,255,0.1) !important; border-color: transparent !important; color: var(--text-primary) !important; }
/* Lists */
[data-theme="dark"] .list-group-item { background: var(--card-bg); border-color: var(--card-border); color: var(--text-primary); }
[data-theme="dark"] .list-group-item-action:hover { background: rgba(255,255,255,0.05) !important; }
/* Nav tabs */
[data-theme="dark"] .nav-tabs { border-color: var(--card-border); }
[data-theme="dark"] .nav-tabs .nav-link { color: var(--text-muted); border-color: transparent; }
[data-theme="dark"] .nav-tabs .nav-link:hover { color: var(--text-primary); }
[data-theme="dark"] .nav-tabs .nav-link.active { background: var(--card-bg); border-color: var(--card-border); border-bottom-color: var(--card-bg); color: var(--text-primary); }
[data-theme="dark"] .nav-link { color: var(--text-muted); }
[data-theme="dark"] .nav-link:hover { color: var(--text-primary); }
/* Breadcrumb */
[data-theme="dark"] .breadcrumb-item a { color: var(--accent); }
[data-theme="dark"] .breadcrumb-item.active,[data-theme="dark"] .breadcrumb-item { color: var(--text-muted); }
[data-theme="dark"] .breadcrumb-item+.breadcrumb-item::before { color: var(--text-muted); }
/* bg-light inside dark mode */
[data-theme="dark"] .bg-light { background: rgba(255,255,255,0.05) !important; color: var(--text-primary); }
[data-theme="dark"] .bg-white { background: var(--card-bg) !important; }
/* Modals */
[data-theme="dark"] .modal-content { background: var(--card-bg); border-color: var(--card-border); color: var(--text-primary); }
[data-theme="dark"] .modal-header,[data-theme="dark"] .modal-footer { border-color: var(--card-border); }
/* Dropdowns */
[data-theme="dark"] .dropdown-menu { background: var(--card-bg); border-color: var(--card-border); }
[data-theme="dark"] .dropdown-item { color: var(--text-primary); }
[data-theme="dark"] .dropdown-item:hover { background: rgba(255,255,255,0.08); }
/* Misc Bootstrap */
[data-theme="dark"] .border-bottom { border-color: var(--card-border) !important; }
[data-theme="dark"] .border { border-color: var(--card-border) !important; }
[data-theme="dark"] .text-secondary { color: var(--text-muted) !important; }
[data-theme="dark"] code { color: #a5b4fc; background: rgba(79,70,229,0.1); padding: 1px 5px; border-radius: 3px; }

/* ==================================================
   WEEK VIEW IMPROVEMENTS
   ================================================== */

/* Time axis (hour labels) column — readable, clearly separated */
.fc .fc-timegrid-slot-label-cushion {
    font-size: 0.82rem;
    font-weight: 600;
    color: #495057;
    padding: 0 6px 0 4px !important;
}
[data-theme="dark"] .fc .fc-timegrid-slot-label-cushion { color: #adb5bd; }
.fc .fc-timegrid-axis {
    border-right: 2px solid rgba(0,0,0,0.1) !important;
}
.fc .fc-timegrid-slot-label {
    border-right: 2px solid rgba(0,0,0,0.1) !important;
}
[data-theme="dark"] .fc .fc-timegrid-axis,
[data-theme="dark"] .fc .fc-timegrid-slot-label {
    border-right-color: rgba(255,255,255,0.1) !important;
}

/* Zebra stripes – alternating 2-hour slot rows */
.fc-timegrid-slots tr:nth-child(odd)  .fc-timegrid-slot { background-color: transparent; }
.fc-timegrid-slots tr:nth-child(even) .fc-timegrid-slot { background-color: rgba(13, 110, 253, 0.04); }
[data-theme="dark"] .fc-timegrid-slots tr:nth-child(even) .fc-timegrid-slot { background-color: rgba(255,255,255,0.03); }

/* Keep label column readable */
.fc-timegrid-slots tr:nth-child(even) .fc-timegrid-slot-label { background-color: rgba(13, 110, 253, 0.06); }
[data-theme="dark"] .fc-timegrid-slots tr:nth-child(even) .fc-timegrid-slot-label { background-color: rgba(255,255,255,0.05); }

/* Expanded day column header */
.fc-col-header-cell.nk-day-expanded { background: rgba(13, 110, 253, 0.10) !important; }
.fc-col-header-cell.nk-day-expanded .fc-col-header-cell-cushion { font-weight: 700; color: var(--accent, #0d6efd); }
[data-theme="dark"] .fc-col-header-cell.nk-day-expanded { background: rgba(99, 153, 255, 0.15) !important; }
.fc-col-header-cell { transition: background 0.15s; }

/* Expanded day column body cells */
.fc-timegrid-col.nk-day-expanded { background: rgba(13, 110, 253, 0.03); }

/* +more link in week view */
.fc-timegrid-more-link { background: rgba(13,110,253,0.12) !important; color: #0d6efd !important; font-size: 0.7rem !important; font-weight: 600 !important; border-radius: 4px !important; padding: 1px 4px !important; }

/* Booking-group events in week view */
.fc-timegrid-slot { height: 60px !important; }
.fc-timegrid-event { min-height: 20px; }
.fc-timegrid-event .fc-event-main { padding: 0 !important; }
.fc-timegrid-event { box-shadow: none !important; }

/* Voucher emoji: dark in light theme, normal in dark */
.nk-voucher { filter: grayscale(1) brightness(0.35) contrast(1.2); }
[data-theme="dark"] .nk-voucher { filter: none; }
