
/* ── Medixa brand primary: #00d4e8 teal ───────────────────────────── */
:root {
    --bs-primary:                 #00d4e8;
    --bs-primary-rgb:             0,212,232;
    --bs-primary-text-emphasis:   #005960;
    --bs-primary-bg-subtle:       #ccf7fb;
    --bs-primary-border-subtle:   #99eff7;
    --bs-link-color:              #00d4e8;
    --bs-link-color-rgb:          0,212,232;
    --bs-link-hover-color:        #00bed1;
    --bs-link-hover-color-rgb:    0,190,209;
}

/* btn-primary: navy text on teal (matches landing CTA style) */
.btn-primary {
    --bs-btn-color:              #0b1d35;
    --bs-btn-bg:                 #00d4e8;
    --bs-btn-border-color:       #00d4e8;
    --bs-btn-hover-color:        #0b1d35;
    --bs-btn-hover-bg:           #2ee8f5;
    --bs-btn-hover-border-color: #2ee8f5;
    --bs-btn-active-color:       #0b1d35;
    --bs-btn-active-bg:          #00bcd0;
    --bs-btn-active-border-color:#00bcd0;
    --bs-btn-focus-shadow-rgb:   0,212,232;
    --bs-btn-disabled-bg:        #00d4e8;
    --bs-btn-disabled-border-color: #00d4e8;
    --bs-btn-disabled-color:     #0b1d35;
}

/* btn-outline-primary */
.btn-outline-primary {
    --bs-btn-color:              #00d4e8;
    --bs-btn-border-color:       #00d4e8;
    --bs-btn-hover-color:        #0b1d35;
    --bs-btn-hover-bg:           #00d4e8;
    --bs-btn-hover-border-color: #00d4e8;
    --bs-btn-active-color:       #0b1d35;
    --bs-btn-active-bg:          #00d4e8;
    --bs-btn-active-border-color:#00d4e8;
    --bs-btn-focus-shadow-rgb:   0,212,232;
}

.theme-dark{
    display: none;
}

[data-bs-theme=dark] .theme-dark{
    display: block;
}

.theme-light{
    display: block;
}

[data-bs-theme=dark] .theme-light{
    display: none;
}

.btn-secondary,
.btn-warning,
.btn-success {
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-disabled-color: #eee;
}

@media (min-width: 1200px) {
    :root[data-bs-navigation-position=sidenav][data-bs-sidenav-sizing=base] .aside:has(.navbar-expand-xl)~.main, 
    :root[data-bs-navigation-position=sidenav][data-bs-sidenav-sizing=base] .aside:has(.navbar-expand-xl)~.navbar {
        margin-left: 17rem;
    }
}

.fc-daygrid-day-frame {
    padding: 0.5rem;
}

.fc-daygrid-day-number{
    color: var(--bs-body-color);
    font-weight: 600;
}

.fc-col-header-cell-cushion {
    color: var(--bs-body-color);
}

.fc-daygrid-event{
    border: none;
    color: var(--bs-body-color);
    /* display: block; */
    margin-bottom: 0.25rem;
}

.fc-col-header-cell{
    background-color: var(--bs-light);
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.fc-theme-standard a{
    color: var(--bs-body-color);
}

.fc-list-day-text{
    font-weight: 600;
    margin-right: 0.5rem;
}


.planner-sort-placeholder {
    background-color: var(--bs-light);
    border: 1px dashed var(--bs-border-color);
    min-height: 36px;
}


.planner-reports-list .planner-report-item {
    display: block;
}

.planner-report-item.planner-selected {
    box-shadow: inset 0 0 0 2px rgba(0,212,232,0.35);
    background: rgba(0,212,232,0.05);
}

.planner-report-item.planner-multi-moving {
    opacity: 0.6;
}

.planner-multi-helper {
    padding: 4px 8px;
    background: rgba(0,212,232,0.1);
    border: 1px solid rgba(0,212,232,0.25);
    border-radius: 6px;
    font-size: 12px;
}

.sidebar-gradient {
    background:
        radial-gradient(ellipse 80% 40% at 50% 0%, rgba(0,212,232,0.12) 0%, transparent 70%),
        linear-gradient(180deg, #0b1d35 0%, #102244 40%, #0b1d35 100%) !important;
    border-right: 1px solid rgba(0,212,232,0.08) !important;
    box-shadow: 2px 0 24px rgba(0,0,0,0.35) !important;
}

.header-gradient {
    background:
        radial-gradient(ellipse 70% 250% at 50% -80%, rgba(0,212,232,0.18) 0%, transparent 70%),
        linear-gradient(90deg, #0b1d35 0%, #102244 50%, #0b1d35 100%) !important;
    border-bottom: 1px solid transparent !important;
    border-image: linear-gradient(90deg, transparent 0%, rgba(0,212,232,0.35) 30%, rgba(14,165,201,0.35) 70%, transparent 100%) 1 !important;
    box-shadow: 0 4px 32px rgba(0,0,0,0.5) !important;
}

.sidebar-gradient .separator {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,212,232,0.1) 20%, rgba(0,212,232,0.2) 50%, rgba(0,212,232,0.1) 80%, transparent);
}

/* ── Sidebar menu hover ──────────────────────────────────────────── */
.sidebar-gradient .menu-link:hover .menu-title,
.sidebar-gradient .menu-link:hover .menu-icon,
.sidebar-gradient .menu-link:hover .menu-icon span {
    color: #00d4e8 !important;
}

.sidebar-gradient .menu-item.show > .menu-link .menu-title,
.sidebar-gradient .menu-item.show > .menu-link .menu-icon span,
.sidebar-gradient .menu-item.here > .menu-link .menu-title,
.sidebar-gradient .menu-item.here > .menu-link .menu-icon span {
    color: #2ee8f5 !important;
}

/* ── Table horizontal gutters (mirrors Keen gs-4 = 1.25rem) ─────── */
.card .table td:first-child,
.card .table th:first-child {
    padding-left: 1.5rem !important;
}
.card .table td:last-child,
.card .table th:last-child {
    padding-right: 1.5rem !important;
}

/* ══════════════════════════════════════════════════════════════════
   BULK QUESTION EDITOR
   ══════════════════════════════════════════════════════════════════ */

/* Overlay backdrop */
.be-overlay {
    position: fixed;
    inset: 0;
    z-index: 1060;
    background: rgba(5, 16, 31, 0.72);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 24px;
    animation: beOverlayIn 0.2s ease;
}

@keyframes beOverlayIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Main panel */
.be-panel {
    background: #fff;
    border-radius: 18px;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.28);
    animation: bePanelIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bePanelIn {
    from { transform: scale(0.94) translateY(12px); opacity: 0; }
    to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

/* Sticky header */
.be-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #f0f2f7;
    background: #fff;
    flex-shrink: 0;
}

/* Search bar */
.be-search-bar {
    position: relative;
    padding: 12px 24px;
    background: #f8f9fc;
    border-bottom: 1px solid #f0f2f7;
    flex-shrink: 0;
}

.be-search-icon {
    position: absolute;
    left: 38px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 13px;
}

.be-search-input {
    width: 100%;
    border: 1.5px solid #e5e7eb;
    border-radius: 50px;
    padding: 8px 16px 8px 36px;
    font-size: 14px;
    background: #fff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.be-search-input:focus {
    border-color: rgba(0,212,232,0.5);
    box-shadow: 0 0 0 3px rgba(0,212,232,0.1);
}

/* Scrollable body */
.be-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px 24px;
    scroll-behavior: smooth;
}

.be-body::-webkit-scrollbar { width: 5px; }
.be-body::-webkit-scrollbar-track { background: transparent; }
.be-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 99px; }

/* Loading state */
.be-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 0;
    color: #9ca3af;
}

/* Question card */
.be-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border: 1.5px solid #f0f2f7;
    border-radius: 14px;
    margin-bottom: 10px;
    background: #fff;
    position: relative;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.be-card:hover {
    border-color: #dde1ec;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.be-card--dirty {
    border-color: rgba(234,179,8,0.4) !important;
    background: rgba(254,252,232,0.5) !important;
}

.be-card--dirty .be-card-dirty-dot {
    display: block;
}

/* Index number */
.be-card-num {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: #f4f6fb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    margin-top: 4px;
}

/* Dirty dot indicator */
.be-card-dirty-dot {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
}

/* Card body */
.be-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Field row */
.be-field-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.be-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.be-field--grow {
    flex: 1;
}

/* Labels */
.be-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
}

.be-hint {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #c4cad6;
}

/* Inputs */
.be-input,
.be-select,
.be-textarea {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 14px;
    font-family: inherit;
    color: #111827;
    background: #f9fafb;
    width: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    outline: none;
    resize: none;
}

.be-input:focus,
.be-select:focus,
.be-textarea:focus {
    border-color: rgba(0,212,232,0.5);
    box-shadow: 0 0 0 3px rgba(0,212,232,0.1);
    background: #fff;
}

.be-textarea {
    overflow-y: hidden;
    line-height: 1.55;
}

/* ── Option rows (Multiple Choice builder) ─────────────────── */
.be-answer-section {
    display: flex;
    flex-direction: column;
}

.be-opt-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 2px;
}

.be-opt-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.be-opt-row .be-input {
    flex: 1;
}

.be-opt-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s, background 0.15s;
    background: #f9fafb;
}

.be-opt-radio:checked {
    border-color: #1a66a6;
    background: #1a66a6;
}

.be-opt-radio:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}

.be-opt-remove {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    flex-shrink: 0;
}

/* ── Summernote inside be-card ─────────────────────────────── */
.be-explanation-field {
    margin-top: 4px;
}

.be-explanation-field .note-editor {
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.be-explanation-field .note-editor.note-frame .note-statusbar {
    display: none;
}

.be-explanation-field .note-toolbar {
    background: #f4f6fb;
    border-bottom: 1px solid #e5e7eb;
    padding: 6px 8px;
}

.be-explanation-field .note-editing-area .note-editable {
    min-height: 100px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.6;
    background: #f9fafb;
}

/* ── True / False pill selector ────────────────────────────── */
.be-tf-group {
    display: flex;
    gap: 10px;
}

.be-tf-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    background: #f9fafb;
    user-select: none;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.be-tf-option .be-tf-radio {
    display: none;
}

.be-tf-option:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
}

.be-tf-checked {
    border-color: #1a66a6 !important;
    background: rgba(26,102,166,0.07) !important;
    color: #1a66a6 !important;
}
/* ═══════════════════════════════════════════════════════════════════
   Question editor — subject filter rail + bulk assign
   Added with the subject split. The editor keeps ONE list of questions;
   the rail filters that list rather than navigating into folders, so a
   question is never "moved" and its ID never changes.
   ═══════════════════════════════════════════════════════════════════ */

.be-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.be-main {
    flex: 1;
    min-width: 0;
}

/* ── Subject rail ───────────────────────────────────────────────── */
.be-rail {
    width: 236px;
    flex-shrink: 0;
    position: sticky;
    top: 16px;
    background: #fff;
    border: 1.5px solid #f0f2f7;
    border-radius: 14px;
    padding: 8px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.be-rail::-webkit-scrollbar { width: 5px; }
.be-rail::-webkit-scrollbar-track { background: transparent; }
.be-rail::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 99px; }

.be-rail-loading { padding: 12px; }

.be-rail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    border: none;
    background: none;
    text-align: left;
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.be-rail-item:hover { background: #f4f6fb; }

.be-rail-item.active {
    background: rgba(0,212,232,0.1);
    color: #0b8ea3;
}

.be-rail-item-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.be-rail-count {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    background: #f4f6fb;
    border-radius: 99px;
    padding: 2px 8px;
}

.be-rail-item.active .be-rail-count {
    background: rgba(0,212,232,0.18);
    color: #0b8ea3;
}

/* Uncategorised — the admin's to-do list. Amber while it has anything
   in it, plain grey once the bank is fully tagged. */
.be-rail-item.be-rail-todo { color: #b45309; }
.be-rail-item.be-rail-todo .be-rail-count {
    background: rgba(245,158,11,0.15);
    color: #b45309;
}
.be-rail-item.be-rail-todo.be-rail-empty,
.be-rail-item.be-rail-todo.be-rail-empty .be-rail-count {
    color: #9ca3af;
    background: none;
}
.be-rail-item.be-rail-todo.be-rail-empty .be-rail-count { background: #f4f6fb; }

.be-rail-sep {
    height: 1px;
    background: #f0f2f7;
    margin: 6px 10px;
}

/* ── Bulk action bar ────────────────────────────────────────────── */
.be-bulkbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    position: sticky;
    top: 8px;
    z-index: 5;
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #0b1d35;
    color: #fff;
    box-shadow: 0 6px 20px rgba(11,29,53,0.22);
}

.be-bulkbar-count {
    font-size: 13px;
    font-weight: 700;
}

.be-bulkbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.be-bulkbar-select {
    min-width: 210px;
    padding: 6px 10px;
    font-size: 13px;
}

/* ── Per-card select checkbox ───────────────────────────────────── */
.be-card-pick {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 10px;
    cursor: pointer;
    accent-color: #00d4e8;
}

.be-card--picked {
    border-color: rgba(0,212,232,0.45) !important;
    background: rgba(0,212,232,0.04) !important;
}

/* Subject dropdown on the card — muted until it has a value, so
   untagged questions are visible at a glance while scrolling. */
.be-q-subject-empty {
    border-color: rgba(245,158,11,0.5) !important;
    background: rgba(254,252,232,0.6) !important;
}

.be-empty-state {
    text-align: center;
    color: #9ca3af;
    padding: 48px 0;
    font-size: 14px;
}

@media (max-width: 991px) {
    .be-layout { flex-direction: column; }
    .be-rail {
        width: 100%;
        position: static;
        max-height: none;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .be-rail-item { width: auto; }
    .be-rail-sep { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   Admin course switcher (navbar)
   Admin-only control for choosing which course the dashboard reports
   on. Sits against the dark header gradient, so it is styled light.
   ═══════════════════════════════════════════════════════════════════ */

.nav-course-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 99px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.16);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    max-width: 260px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-course-switch:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.28);
}

.nav-course-switch-icon { font-size: 14px; line-height: 1; }

.nav-course-switch-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-course-switch-caret {
    font-size: 9px;
    opacity: 0.7;
    flex-shrink: 0;
}

.nav-course-switch .dropdown-toggle::after { display: none; }

.dropdown-item.active,
.dropdown-item.active:hover {
    background: rgba(0,212,232,0.12);
    color: #0b8ea3;
    font-weight: 700;
}
