/* 
   revU - Performance Intelligence Platform
   Premium Enterprise SaaS Design System & Theme Engine
*/

/* =========================================================================
   1. CORE STYLE SYSTEM VARIABLES & TOKENS
   ========================================================================= */

:root {
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 24px;
    --spacing-xxl: 32px;
    
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 12px var(--color-primary-glow);
    
    --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --sidebar-width-expanded: 260px;
    --sidebar-width-collapsed: 72px;
}

/* --- bhusku family themes (same tokens as schedU / revU HPC) ---
   Ink for text, lavender for things you touch, gold only for the knob and
   rare highlights. "standard" is kept as an alias of light for saved prefs. */
body.theme-light, body.theme-standard {
    --bg-main: #F5F3FF;
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #FAFAFE;
    --bg-input: #ffffff;
    --border-color: #ECEAFB;
    --border-color-focus: rgba(124, 111, 224, 0.45);

    --text-primary: #13111E;
    --text-muted: #4B5275;
    --text-subtle: #6B7079;

    --color-primary: #685DBC;   /* bhusku lavender (--brand) */
    --color-primary-glow: rgba(124, 111, 224, 0.22);
    --color-secondary: #0e8a7a; /* paired data hue */
    --color-accent: #4B41C4;
    --color-gold: #D4920E;      /* the knob - rationed */
    --color-success: #15803d;
    --color-warning: #b45309;
    --color-danger: #dc2626;
}

body.theme-dark {
    --bg-main: #0F0E17;
    --bg-sidebar: #16141F;
    --bg-card: #1B1926;
    --bg-card-hover: #232031;
    --bg-input: #13111E;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-focus: rgba(155, 142, 245, 0.55);

    --text-primary: #EEEDF7;
    --text-muted: #B9B6CF;
    --text-subtle: #8C88A6;

    --color-primary: #9B8EF5;
    --color-primary-glow: rgba(155, 142, 245, 0.25);
    --color-secondary: #1f9e8c;
    --color-accent: #C4B5FD;
    --color-gold: #E3A53A;
    --color-success: #4ade80;
    --color-warning: #fbbf24;
    --color-danger: #f87171;
}

/* =========================================================================
   2. CORE SYSTEM & LAYOUT SETTINGS
   ========================================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/* Smooth system changes */
a, button, select, input, textarea, div {
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* Shell Framework */
.app-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

.app-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
    height: calc(100vh - 70px);
}

/* App Header */
.app-header {
    height: 70px;
    background-color: var(--bg-sidebar);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

body.theme-light .app-header {
    background-color: #ffffff;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ecosystem-tag {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0;
    color: var(--text-muted);
}

.logo-text {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: 8px;
    line-height: 1;
}

.logo-text .brand-u { color: var(--color-primary); }

.logo-text .tagline {
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--text-subtle);
    letter-spacing: 0;
}

/* The family mark: Fader U on its lavender tile, gold knob */
.bm-tile {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 30px; height: 30px; border-radius: 8px;
    background: linear-gradient(145deg, color-mix(in oklab, #685DBC 86%, white) 0%, #685DBC 55%, color-mix(in oklab, #685DBC 84%, black) 100%);
    box-shadow: 0 1px 2px rgba(19, 17, 30, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.bm-tile svg { display: block; overflow: visible; }
.bm-knob { transform-box: fill-box; transform-origin: center; transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1); }
.logo-area:hover .bm-knob { transform: translateY(4px); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tenant-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(0, 0, 0, 0.15);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

body.theme-light .tenant-selector {
    background-color: rgba(0, 0, 0, 0.03);
}

.tenant-selector svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

.persona-switcher-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.persona-switcher-wrapper label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.persona-select {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
}

.persona-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary-glow);
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

body.theme-light .user-badge {
    background: rgba(0, 0, 0, 0.02);
}

.user-badge .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--color-primary);
}

.user-badge .user-info {
    display: flex;
    flex-direction: column;
}

.user-badge .user-name {
    font-size: 12px;
    font-weight: 600;
}

.user-badge .user-role-badge {
    font-size: 9px;
    color: var(--color-primary);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.05em;
}

/* =========================================================================
   3. SIDEBAR NAVIGATION SYSTEM
   ========================================================================= */

.app-sidebar {
    width: var(--sidebar-width-expanded);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 24px 12px 14px 12px;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

body.theme-light .app-sidebar {
    background-color: #ffffff;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    flex: 1;
    margin-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}
.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

.nav-section-title {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-subtle);
    margin: 16px 8px 8px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    width: 100%;
    position: relative;
}

.nav-item svg {
    width: 18px;
    height: 18px;
    opacity: 0.65;
    flex-shrink: 0;
}

.nav-item span {
    white-space: nowrap;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

body.theme-light .nav-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.nav-item:hover svg {
    opacity: 1;
    color: var(--color-primary);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--color-primary-glow) 0%, rgba(255, 255, 255, 0) 100%);
    color: var(--text-primary);
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    border-radius: var(--radius-full);
    background-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.nav-item.active svg {
    opacity: 1;
    color: var(--color-primary);
}

/* Sidebar Collapsed overrides */
.app-sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
    align-items: center;
}

.app-sidebar.collapsed .nav-section-title {
    opacity: 0;
    pointer-events: none;
}

.app-sidebar.collapsed .nav-item span {
    opacity: 0;
    pointer-events: none;
    width: 0;
    margin: 0;
}

.app-sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 10px;
}

/* Collapsible trigger actions footer */
.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-toggle-btn {
    background: none;
    border: none;
    color: var(--text-subtle);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
}

.sidebar-toggle-btn:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.03);
}

.sidebar-toggle-btn svg {
    width: 16px;
    height: 16px;
    transition: var(--transition-smooth);
}

.app-sidebar.collapsed .sidebar-toggle-btn svg {
    transform: rotate(180deg);
}

.app-sidebar.collapsed .sidebar-toggle-btn span {
    display: none;
}

/* =========================================================================
   4. APPREARANCE MODES: PREMIUM SWITCHER TOGGLE
   ========================================================================= */

.theme-switcher-pill {
    display: flex;
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: var(--radius-full);
    position: relative;
}

body.theme-light .theme-switcher-pill {
    background-color: rgba(0, 0, 0, 0.05);
}

.theme-pill-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.theme-pill-btn svg {
    width: 13px;
    height: 13px;
}

.theme-pill-btn.active,
body.theme-light .theme-pill-btn.active {
    color: var(--color-primary);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

.theme-switcher-slider {
    display: none;
    position: absolute;
    top: 4px;
    left: 4px;
    bottom: 4px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    z-index: 1;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s ease;
}

/* =========================================================================
   5. PREMIUM DESIGN SYSTEM: ATOMS & COMPONENTS
   ========================================================================= */

/* Main content pane */
.app-content {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    background-color: var(--bg-main);
    position: relative;
}

/* View panel toggle system */
.view-panel {
    display: none;
    flex-direction: column;
    gap: 24px;
    min-height: 100%;
    width: 100%;
}

.view-panel.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.view-header {
    margin-bottom: 8px;
}

.view-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.view-header .subtitle {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

/* Nested navigation tabs */
.tab-container-nested {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.nested-tab {
    background: none;
    border: none;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.nested-tab:hover {
    color: var(--text-primary);
    background-color: var(--bg-card-hover);
}

.nested-tab.active {
    color: var(--color-primary);
    background-color: var(--color-primary-glow);
}

.nested-view {
    display: none;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.nested-view.active {
    display: flex;
}

/* Split Layouts system */
.split-layout {
    display: flex;
    gap: 24px;
    width: 100%;
}

.split-layout-three {
    display: flex;
    gap: 24px;
    width: 100%;
}

.sidebar-card {
    width: 320px;
    flex-shrink: 0;
}

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

.split-layout-three .col-left {
    width: 260px;
    flex-shrink: 0;
}

.split-layout-three .col-mid {
    flex: 2;
    min-width: 0;
}

.split-layout-three .col-right {
    width: 340px;
    flex-shrink: 0;
}

.flex-1 { flex: 1; min-width: 0; }
.flex-2 { flex: 2; min-width: 0; }

/* Metrics Grid styling */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.metric-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition-smooth);
}

.metric-card:hover {
    border-color: var(--border-color-focus);
    box-shadow: var(--shadow-md);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-header .lbl {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.metric-header .trend {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-subtle);
}

.metric-header .trend.positive {
    color: var(--color-success);
}

.metric-val {
    font-size: 28px;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1;
}

.metric-card .context {
    font-size: 12px;
    color: var(--text-subtle);
}

.card-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.4;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.metric-card:hover .card-glow {
    transform: scale(1.5);
    opacity: 0.7;
}

.content-row {
    display: flex;
    gap: 24px;
    width: 100%;
}

/* Navigation lists on side panels */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.list-navigation {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.list-navigation li {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-fast);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
}

.list-navigation li:hover {
    background-color: var(--bg-card-hover);
    color: var(--text-primary);
}

.list-navigation li.active {
    background-color: var(--color-primary-glow);
    color: var(--text-primary);
    border-color: rgba(var(--color-primary), 0.2);
    font-weight: 600;
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 20px;
    gap: 16px;
}

.title-input {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    width: 100%;
    outline: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 4px;
}

.title-input:focus {
    border-bottom-color: var(--color-primary);
}

.desc-input {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 13.5px;
    color: var(--text-muted);
    width: 100%;
    outline: none;
    margin-top: 4px;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.desc-input:focus {
    border-bottom-color: var(--border-color);
}

/* Rubrics framework customization */
.rubric-matrix-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background-color: var(--bg-main);
}

.rubric-matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.rubric-matrix-table th {
    padding: 12px 16px;
    background-color: var(--bg-sidebar);
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: left;
    font-weight: 600;
}

body.theme-light .rubric-matrix-table th {
    background-color: #f3f4f6;
}

.rubric-matrix-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    color: var(--text-muted);
    vertical-align: top;
    background-color: var(--bg-card);
}

.rubric-matrix-table tr:hover td {
    background-color: var(--bg-card-hover);
}

.rubric-matrix-table th:last-child, .rubric-matrix-table td:last-child {
    border-right: none;
}

.cell-textarea {
    width: 100%;
    height: 48px;
    resize: none;
    overflow: hidden;
    background: none;
    border: 1px solid transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 12.5px;
    outline: none;
    transition: height 0.15s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    padding: 6px;
    border-radius: var(--radius-sm);
    box-sizing: border-box;
}

.cell-textarea:hover {
    border-color: var(--border-color);
    background-color: var(--bg-input);
}

.cell-textarea:focus {
    border-color: var(--color-primary);
    background-color: var(--bg-input);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.delete-criteria-btn {
    background: none;
    border: none;
    color: var(--color-danger);
    font-size: 16px;
    cursor: pointer;
    margin-left: 6px;
    vertical-align: middle;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.delete-criteria-btn:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.delete-level-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--color-danger);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 5;
    padding: 0;
    line-height: 1;
}

body.theme-dark .delete-level-btn {
    background: var(--bg-sidebar);
}

.delete-level-btn:hover {
    background-color: var(--color-danger);
    color: #ffffff;
    border-color: var(--color-danger);
}


.rubric-actions-footer {
    display: flex;
    gap: 10px;
}

/* AI Insight panels */
.ai-insight-bullet-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.ai-bullet {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.bullet-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.bullet-dot.animate-glow {
    background-color: var(--color-success);
    box-shadow: 0 0 8px var(--color-success);
    animation: pulseGlow 1.5s ease-in-out infinite alternate;
}

.bullet-dot.warning-glow {
    background-color: var(--color-warning);
    box-shadow: 0 0 8px var(--color-warning);
    animation: pulseGlow 1.5s ease-in-out infinite alternate;
}

.bullet-dot.info-glow {
    background-color: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary);
    animation: pulseGlow 1.5s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { opacity: 0.6; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.1); }
}

.ai-bullet p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}

.ai-output-terminal {
    background-color: #0b0f19;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    font-family: monospace;
    font-size: 12.5px;
    line-height: 1.6;
    color: #e2e8f0;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

body.theme-light .ai-output-terminal {
    background-color: #0b0f19;
    color: #e2e8f0;
}

.ai-output-terminal .terminal-empty {
    color: #64748b !important;
}

.terminal-empty {
    color: var(--text-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 160px;
    text-align: center;
}

.gaps-summary-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.text-glow {
    color: var(--color-success);
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.text-orange {
    color: var(--color-warning);
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

/* Cards List lists */
.list-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-card {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list-card:hover {
    border-color: var(--color-primary);
    background-color: var(--bg-card-hover);
}

.list-card.active {
    border-color: var(--color-primary);
    background-color: var(--color-primary-glow);
}

.list-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-card-header h4 {
    font-size: 14px;
    font-weight: 600;
}

.list-card-body {
    font-size: 12.5px;
    color: var(--text-muted);
}

.list-card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-subtle);
}

/* AI Recommender / AI Panel styling */
.ai-recommender-panel {
    background: linear-gradient(135deg, rgba(124, 111, 224, 0.04) 0%, rgba(168, 85, 247, 0.04) 100%);
    border: 1px solid rgba(124, 111, 224, 0.12);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.ai-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ai-box-header h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-primary);
    flex-grow: 1;
    margin-left: 8px;
}

.ai-sparkle-btn {
    box-shadow: 0 2px 8px var(--color-primary-glow);
}

.ai-suggested-goals-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
}

/* Goals and Action list */
.goals-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.goal-item-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    background-color: var(--bg-card);
}

.goal-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.goal-item-title {
    font-size: 13.5px;
    font-weight: 600;
}

.goal-actions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 8px;
    border-left: 2px solid var(--border-color);
}

.action-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Appraisal Form Player styling */
.appraisal-form-player {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.player-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 4px;
}

.metadata-text {
    font-size: 12px;
    color: var(--text-subtle);
    margin-top: 4px;
}

.metadata-text strong {
    color: var(--text-muted);
}

.score-display {
    text-align: right;
    background-color: var(--color-primary-glow);
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(var(--color-primary), 0.1);
}

.score-lbl {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
}

.score-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
}

.player-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 200px;
}

.sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* Schema Explorer custom badges & table */
.schema-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 24px 0;
}

.schema-badge {
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-muted);
}

body.theme-light .schema-badge {
    background-color: #f3f4f6;
}

.schema-badge.rls {
    border-color: rgba(16, 185, 129, 0.3);
    background-color: rgba(16, 185, 129, 0.05);
    color: var(--color-success);
}

.interactive-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.interactive-table th {
    padding: 10px 14px;
    background-color: var(--bg-sidebar);
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    text-align: left;
}

body.theme-light .interactive-table th {
    background-color: #f3f4f6;
}

.interactive-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-muted);
}

.interactive-table tr:hover td {
    background-color: var(--bg-card-hover);
}

.schema-description {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Template sections builder cards */
.builder-section-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background-color: var(--bg-card);
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.section-title-input {
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    outline: none;
    width: 60%;
}

.section-weight-input {
    width: 60px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 4px 6px;
    font-size: 12px;
}

.builder-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.builder-form-item-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    background-color: var(--bg-main);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

body.theme-light .builder-form-item-row {
    background-color: #f9fafb;
}

.item-drag-handle {
    cursor: grab;
    color: var(--text-subtle);
    font-size: 16px;
    user-select: none;
}

.item-title-input {
    flex: 2 !important;
}

.item-type-select {
    flex: 1.2 !important;
}

.item-reference-select {
    flex: 1.5 !important;
}

.item-weight-input {
    width: 50px !important;
    text-align: center;
}

.empty-preview {
    color: var(--text-subtle);
    text-align: center;
    padding: 40px 20px;
}

/* Live preview box and simulator */
.live-preview-box {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    background-color: var(--bg-main);
    max-height: 500px;
    overflow-y: auto;
}

body.theme-light .live-preview-box {
    background-color: #f9fafb;
}

.preview-sect-block {
    margin-bottom: 20px;
}

.preview-sect-title {
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 6px;
    margin-bottom: 16px;
}

.preview-item-block {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 10px;
}

.preview-item-title {
    font-size: 13px;
    font-weight: 600;
}

.preview-item-desc {
    font-size: 11px;
    color: var(--text-subtle);
    margin-bottom: 8px;
}

.preview-rubric-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.preview-rubric-btn {
    font-size: 10.5px;
    padding: 4px 8px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.disabled-choices {
    opacity: 0.4 !important;
    pointer-events: none !important;
}

/* Modals System styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}

.modal-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-subtle);
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.02);
}

.file-drop-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.02);
    transition: var(--transition-smooth);
}

.file-drop-area:hover, .file-drop-area.drag-over {
    border-color: var(--color-primary);
    background-color: var(--color-primary-glow);
}

.file-drop-area svg {
    width: 36px;
    height: 36px;
    color: var(--color-primary);
}

.file-drop-area span {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.csv-template-snippet {
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-top: 16px;
}

body.theme-light .csv-template-snippet {
    background-color: #f3f4f6;
}

.csv-template-snippet h5 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.csv-template-snippet pre {
    font-family: monospace;
    font-size: 11.5px;
    color: var(--text-primary);
    overflow-x: auto;
}

.import-log-output {
    background-color: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-top: 16px;
    font-family: monospace;
    font-size: 12px;
    color: var(--color-danger);
    max-height: 120px;
    overflow-y: auto;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px;
    height: 100%;
    min-height: 300px;
}

/* Utilities & Helpers */
.hidden { display: none !important; }
.hidden-rbac { display: none !important; }
.w-full { width: 100% !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }

/* Premium Card Layout */
.content-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

body.theme-dark .content-card {
    backdrop-filter: var(--blur-glass);
    box-shadow: var(--shadow-xl);
}

.content-card:hover {
    border-color: var(--border-color-focus);
    box-shadow: var(--shadow-md);
}

/* Buttons Engine */
.action-btn, .secondary-btn, .small-btn {
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
}

.action-btn {
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 10px 20px;
    font-size: 13.5px;
    box-shadow: 0 4px 10px var(--color-primary-glow);
}

.action-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px var(--color-primary-glow);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.secondary-btn {
    background-color: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 9px 18px;
    font-size: 13px;
}

body.theme-dark .secondary-btn {
    background-color: rgba(255, 255, 255, 0.04);
}

.secondary-btn:hover {
    background-color: rgba(0, 0, 0, 0.06);
    border-color: var(--text-subtle);
}

body.theme-dark .secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.small-btn {
    padding: 6px 12px;
    font-size: 11px;
    background-color: var(--color-primary);
    color: #ffffff;
    border-radius: var(--radius-sm);
}

/* Combined class styling for small secondary buttons to prevent color conflicts */
.small-btn.secondary-btn {
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary) !important;
}

body.theme-dark .small-btn.secondary-btn {
    background-color: rgba(255, 255, 255, 0.06);
}

.small-btn.secondary-btn:hover {
    background-color: rgba(0, 0, 0, 0.12);
    border-color: var(--text-subtle);
    color: var(--text-primary) !important;
}

body.theme-dark .small-btn.secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
}


/* Form inputs styling */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.form-control-light {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 10px 14px;
    outline: none;
    font-family: var(--font-body);
    font-size: 13.5px;
    width: 100%;
}

.form-control-light:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.form-control-light::placeholder {
    color: var(--text-subtle);
}

/* Badges systems */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
}

.badge.active { background-color: rgba(16, 185, 129, 0.1); color: var(--color-success); border: 1px solid rgba(16, 185, 129, 0.2); }
.badge.inactive { background-color: rgba(239, 68, 68, 0.1); color: var(--color-danger); border: 1px solid rgba(239, 68, 68, 0.2); }
.badge.draft { background-color: rgba(124, 111, 224, 0.1); color: var(--color-primary); border: 1px solid rgba(124, 111, 224, 0.2); }
.badge.pending { background-color: rgba(245, 158, 11, 0.1); color: var(--color-warning); border: 1px solid rgba(245, 158, 11, 0.2); }
.badge.signed_off { background-color: rgba(139, 92, 246, 0.1); color: var(--color-secondary); border: 1px solid rgba(139, 92, 246, 0.2); }
.badge.published { background-color: rgba(16, 185, 129, 0.1); color: var(--color-success); border: 1px solid rgba(16, 185, 129, 0.2); }

.badge.academic { background-color: rgba(59, 130, 246, 0.1); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.2); }
.badge.teaching { background-color: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge.administrative { background-color: rgba(139, 92, 246, 0.1); color: #8b5cf6; border: 1px solid rgba(139, 92, 246, 0.2); }
.badge.support { background-color: rgba(245, 158, 11, 0.1); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }

/* Progress parameters */
.progress-bar-track {
    height: 8px;
    background-color: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
    width: 0;
    transition: width 0.4s ease-out;
}

/* =========================================================================
   6. ENTERPRISE-GRADE TABLES (REFRACTORED ARCHITECTURE)
   ========================================================================= */

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 280px;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-search-wrapper {
    position: relative;
    flex: 1;
    max-width: 320px;
}

.table-search-wrapper input {
    padding-left: 36px;
}

.table-search-wrapper svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-subtle);
}

.grid-table-card {
    padding: 0 !important;
    overflow: hidden;
}

.table-scroll-container {
    overflow-x: auto;
    width: 100%;
}

.enterprise-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.enterprise-table th {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: var(--bg-sidebar);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 18px;
    border-bottom: 2px solid var(--border-color);
    user-select: none;
}

body.theme-light .enterprise-table th {
    background-color: #f3f4f6;
}

.enterprise-table th.sortable {
    cursor: pointer;
}

.enterprise-table th.sortable:hover {
    color: var(--text-primary);
}

.sort-indicator {
    display: inline-block;
    margin-left: 4px;
    font-size: 9px;
    color: var(--text-subtle);
}

.enterprise-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 13.5px;
}

.enterprise-table tbody tr {
    transition: var(--transition-fast);
}

.enterprise-table tbody tr.row-selected {
    background-color: rgba(var(--color-primary-rgb), 0.05);
}

.enterprise-table tbody tr:hover {
    background-color: var(--bg-card-hover);
}

.enterprise-table td .checkbox-cell, .enterprise-table th .checkbox-cell {
    display: flex;
    align-items: center;
}

.enterprise-table input[type="checkbox"] {
    accent-color: var(--color-primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Pagination Footer */
.table-pagination-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    gap: 12px;
}

body.theme-light .table-pagination-footer {
    background-color: #f9fafb;
}

.pagination-info {
    font-size: 12.5px;
    color: var(--text-muted);
}

.pagination-btn-group {
    display: flex;
    gap: 6px;
}

.page-btn {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.page-btn:hover {
    border-color: var(--color-primary);
    background-color: var(--bg-card-hover);
}

.page-btn.active {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Column Visibility Box Dropdown */
.column-toggle-wrapper {
    position: relative;
}

.dropdown-popover {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    z-index: 110;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.theme-light .dropdown-popover {
    background-color: #ffffff;
}

.dropdown-popover label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    cursor: pointer;
    color: var(--text-muted);
}

.dropdown-popover label:hover {
    color: var(--text-primary);
}

/* =========================================================================
   7. WIZARD-BASED MULTI-STEP FORMS (APPRAISAL PLAYER)
   ========================================================================= */

.form-wizard-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.wizard-step-node {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.wizard-step-node.active {
    opacity: 1;
}

.wizard-step-node.active .step-num {
    background-color: var(--color-primary);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.wizard-step-node.completed .step-num {
    background-color: var(--color-success);
    color: #ffffff;
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-title {
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

/* Autosave feedback elements */
.autosave-status-tag {
    font-size: 11px;
    color: var(--text-subtle);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-success);
}

.pulse-dot.saving {
    background-color: var(--color-warning);
    animation: flashSaving 0.8s ease infinite alternate;
}

@keyframes flashSaving {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* =========================================================================
   8. SKELETON LOADERS SYSTEM & PROGRESSIVE RENDERS
   ========================================================================= */

@keyframes pulse-skeleton {
    0% { background-position: 150% 50%; }
    100% { background-position: -50% 50%; }
}

.skeleton-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-main);
    z-index: 100;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.skeleton-header {
    height: 48px;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, var(--border-color) 25%, var(--bg-card-hover) 37%, var(--border-color) 63%);
    background-size: 400% 100%;
    animation: pulse-skeleton 1.4s ease infinite;
    width: 60%;
}

.skeleton-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.skeleton-card {
    height: 120px;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, var(--border-color) 25%, var(--bg-card-hover) 37%, var(--border-color) 63%);
    background-size: 400% 100%;
    animation: pulse-skeleton 1.4s ease infinite;
}

.skeleton-table-block {
    height: 300px;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, var(--border-color) 25%, var(--bg-card-hover) 37%, var(--border-color) 63%);
    background-size: 400% 100%;
    animation: pulse-skeleton 1.4s ease infinite;
    width: 100%;
}

/* =========================================================================
   9. NOTIFICATIONS & FLOATING TOASTER PANELS
   ========================================================================= */

.toaster-root-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 600;
    max-width: 360px;
    width: 100%;
}

.toast-message-card {
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInToast 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition-smooth);
}

body.theme-light .toast-message-card {
    background-color: #ffffff;
}

@keyframes slideInToast {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.toast-message-card.success-toast { border-left: 4px solid var(--color-success); }
.toast-message-card.error-toast { border-left: 4px solid var(--color-danger); }
.toast-message-card.warning-toast { border-left: 4px solid var(--color-warning); }
.toast-message-card.info-toast { border-left: 4px solid var(--color-primary); }

.toast-icon {
    flex-shrink: 0;
}

.success-toast .toast-icon { color: var(--color-success); }
.error-toast .toast-icon { color: var(--color-danger); }
.warning-toast .toast-icon { color: var(--color-warning); }
.info-toast .toast-icon { color: var(--color-primary); }

.toast-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    flex-grow: 1;
}

.toast-close-btn {
    background: none;
    border: none;
    color: var(--text-subtle);
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}

/* =========================================================================
   10. BEAUTIFUL MOCK ILLUSTRATIONS FOR EMPTY STATES
   ========================================================================= */

.empty-state-svg-wrapper {
    width: 140px;
    height: 140px;
    margin-bottom: 20px;
    color: var(--text-subtle);
    opacity: 0.8;
}

.empty-state-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px;
    max-width: 480px;
    margin: 40px auto;
}

.empty-state-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.empty-state-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* =========================================================================
   11. MOBILE EXPERIENCE ENHANCEMENTS & BOTTOM SHEETS
   ========================================================================= */

.mobile-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

.mobile-hamburger svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .mobile-hamburger {
        display: block;
    }
    
    .app-sidebar {
        position: fixed;
        left: -100%;
        top: 70px;
        bottom: 0;
        z-index: 200;
        transition: var(--transition-smooth);
        box-shadow: var(--shadow-xl);
    }
    
    .app-sidebar.mobile-open {
        left: 0;
    }

    .app-content {
        padding: 16px;
    }

    .split-layout, .split-layout-three {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        width: 100%;
    }

    .signatures-grid {
        grid-template-columns: 1fr;
    }
}

/* Danger Button styling for Roster deletes */
.danger-btn {
    background-color: var(--color-danger) !important;
    color: #ffffff !important;
    border-radius: var(--radius-sm);
}
.danger-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.disabled-choices {
    opacity: 0.5;
    pointer-events: none;
}

/* Color-coded choices based on score context */
.choice-score-high {
    border-color: rgba(34, 197, 94, 0.4) !important;
    background-color: rgba(34, 197, 94, 0.04) !important;
}
.choice-score-high:hover {
    background-color: rgba(34, 197, 94, 0.1) !important;
    border-color: rgb(34, 197, 94) !important;
}
.choice-score-high.active {
    background-color: rgb(34, 197, 94) !important;
    color: #ffffff !important;
    border-color: rgb(34, 197, 94) !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.choice-score-medium {
    border-color: rgba(245, 158, 11, 0.4) !important;
    background-color: rgba(245, 158, 11, 0.04) !important;
}
.choice-score-medium:hover {
    background-color: rgba(245, 158, 11, 0.1) !important;
    border-color: rgb(245, 158, 11) !important;
}
.choice-score-medium.active {
    background-color: rgb(245, 158, 11) !important;
    color: #ffffff !important;
    border-color: rgb(245, 158, 11) !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.choice-score-low {
    border-color: rgba(239, 68, 68, 0.4) !important;
    background-color: rgba(239, 68, 68, 0.04) !important;
}
.choice-score-low:hover {
    background-color: rgba(239, 68, 68, 0.1) !important;
    border-color: rgb(239, 68, 68) !important;
}
.choice-score-low.active {
    background-color: rgb(239, 68, 68) !important;
    color: #ffffff !important;
    border-color: rgb(239, 68, 68) !important;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* Star rating styles */
.star-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    margin-bottom: 6px;
}
.star-icon {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-subtle);
    transition: transform 0.15s ease, color 0.15s ease;
    user-select: none;
}
.star-icon:hover {
    transform: scale(1.2);
}
.star-icon.filled {
    color: #D4920E; /* Yellow 500 */
    text-shadow: 0 0 10px rgba(234, 179, 8, 0.4);
}
.star-label-preview {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 8px;
}

/* Evidence attachment styles */
.evidence-area-container {
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.01);
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.evidence-upload-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}
.evidence-upload-zone:hover {
    border-color: var(--color-primary);
    background-color: rgba(124, 111, 224, 0.05);
}
.evidence-media-preview-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}
.evidence-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}
.evidence-video-thumb {
    width: 60px;
    height: 60px;
    background-color: #000;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}
.evidence-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.evidence-meta .name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-all;
}
.evidence-meta .size {
    font-size: 10px;
    color: var(--text-muted);
}

/* bhusku attribution - typographic only (family rule: no second icon) */
.brand-footer {
    padding: 8px 10px 4px;
    border-top: 1px dashed var(--border-color);
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--text-subtle);
}
.brand-footer b { font-weight: 800; color: var(--text-primary); letter-spacing: -0.01em; }
.app-sidebar.collapsed .brand-footer { display: none; }

/* Star Rating styling */
.star-rating-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px 0;
}
.star-rating-row .star-icon {
    font-size: 24px;
    color: var(--border-color);
    cursor: pointer;
    transition: color 0.15s ease, transform 0.1s ease;
    user-select: none;
    display: inline-block;
    line-height: 1;
}
.star-rating-row .star-icon.filled {
    color: var(--color-warning) !important;
}
.star-rating-row .star-icon:not(.disabled-choices):hover {
    transform: scale(1.2);
}
.star-rating-row.disabled-choices .star-icon {
    cursor: not-allowed;
    opacity: 0.5;
}
.star-label-preview {
    font-size: 11.5px;
    color: var(--text-muted);
    font-style: italic;
}

/* Custom inline editable and split star rows */
.star-row-line {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
}

.editable-field {
    position: relative;
    cursor: pointer;
    border: 1px dashed transparent;
    border-radius: 6px;
    padding: 4px 8px !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}

.editable-field:hover {
    background-color: rgba(124, 111, 224, 0.08) !important;
    border-color: var(--color-primary) !important;
    padding-right: 28px !important;
    color: var(--text-primary);
}

.theme-light .editable-field:hover {
    background-color: rgba(124, 111, 224, 0.05) !important;
}

.editable-field::after {
    content: "✎";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    font-size: 11px;
    color: var(--color-primary);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.editable-field:hover::after {
    opacity: 1;
}

.preview-header-edit-zone .editable-field {
    display: block;
    width: 100%;
}
.preview-header-edit-zone h4.editable-field,
.preview-header-edit-zone span.editable-field {
    display: inline-block;
    width: auto;
}

/* Premium UX/UI enhancements for Observation & Evaluation Forms */

/* 1. Unified Card Container styles for preview blocks and active player cards */
.preview-item-block, 
.player-rubric-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin-bottom: 16px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.22s ease;
}

.preview-item-block:hover, 
.player-rubric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.02);
    border-color: rgba(124, 111, 224, 0.3) !important; /* subtle indigo accent tint */
}

/* Focus glow for inline input editors */
.editable-field input[type="text"],
.editable-field input[type="number"],
.editable-field textarea,
.editable-field select {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(124, 111, 224, 0.15) !important;
    background-color: var(--bg-input) !important;
    transition: box-shadow 0.2s ease;
}

/* 3. Rating Option Buttons (Modern Toggle Chips) */
.preview-rubric-btn {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.preview-rubric-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.preview-rubric-btn.active {
    transform: scale(1.03) translateY(-1px);
}

/* 4. Sliding Pill Toggle Switch for NA Options */
.player-na-checkbox {
    -webkit-appearance: none;
    appearance: none;
    width: 32px;
    height: 18px;
    background-color: var(--border-color);
    border-radius: 10px;
    position: relative;
    outline: none;
    cursor: pointer;
    transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
    vertical-align: middle;
    margin: 0;
}

.player-na-checkbox:checked {
    background-color: var(--color-warning) !important;
}

.player-na-checkbox::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #ffffff;
    top: 2px;
    left: 2px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.player-na-checkbox:checked::before {
    transform: translateX(14px);
}

/* 5. Premium Star Ratings */
.star-rating-row .star-icon {
    font-size: 26px !important;
    color: var(--border-color);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                color 0.2s ease, 
                text-shadow 0.2s ease;
}

.star-rating-row .star-icon.filled {
    color: #D4920E !important; /* Gold */
    text-shadow: 0 0 12px rgba(234, 179, 8, 0.5) !important;
}

.star-rating-row .star-icon:not(.disabled-choices):hover {
    transform: scale(1.28) rotate(6deg) !important;
}

/* 6. Drag & Drop Evidence Zone */
.evidence-upload-zone {
    background: linear-gradient(135deg, rgba(255,255,255,0.01), rgba(255,255,255,0.03));
    border: 1.5px dashed var(--border-color) !important;
    border-radius: 10px !important;
    padding: 16px !important;
    text-align: center;
    color: var(--text-muted);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 11.5px;
}

.evidence-upload-zone:hover {
    border-color: var(--color-primary) !important;
    background: linear-gradient(135deg, rgba(124, 111, 224, 0.02), rgba(124, 111, 224, 0.05));
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 111, 224, 0.06);
}

/* 7. Wizard Step Nodes Glowing Indicator */
.wizard-step-node {
    opacity: 0.65;
}

.wizard-step-node.active {
    opacity: 1;
}

.wizard-step-node .step-num {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid transparent;
}

.wizard-step-node.active .step-num {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 0 14px rgba(124, 111, 224, 0.4) !important;
    transform: scale(1.1);
}

.wizard-step-node.completed .step-num {
    background-color: var(--color-success) !important;
    color: #ffffff !important;
}

/* 8. Textareas and inputs premium styling */
.preview-item-block textarea,
.player-rubric-card textarea {
    border-radius: 8px !important;
    border: 1px solid var(--border-color) !important;
    padding: 10px 12px !important;
    transition: all 0.2s ease;
}

.preview-item-block textarea:focus,
.player-rubric-card textarea:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(124, 111, 224, 0.15) !important;
}

/* Standard Template Blueprints Grid */
.standard-blueprints-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 4px;
}

/* Template Filter Pills */
.template-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-pill {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-pill:hover {
    border-color: var(--color-primary);
    color: var(--text-primary);
    background-color: rgba(124, 111, 224, 0.04);
}

.filter-pill.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(124, 111, 224, 0.2);
}

.blueprint-card {
    --card-hue: 220; /* default fallback hue */
    background-color: hsl(var(--card-hue), 25%, 98.5%);
    border: 1px solid hsl(var(--card-hue), 20%, 88%);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
    overflow: hidden;
}

body.theme-dark .blueprint-card {
    background-color: hsl(var(--card-hue), 15%, 10%);
    border-color: hsl(var(--card-hue), 15%, 20%);
}

.blueprint-card:hover {
    transform: translateY(-2px);
    border-color: hsl(var(--card-hue), 45%, 72%);
    background-color: hsl(var(--card-hue), 30%, 97.5%);
    box-shadow: 0 8px 20px hsla(var(--card-hue), 30%, 50%, 0.08), var(--shadow-md);
}

body.theme-dark .blueprint-card:hover {
    border-color: hsl(var(--card-hue), 45%, 45%);
    background-color: hsl(var(--card-hue), 18%, 12.5%);
    box-shadow: 0 8px 24px hsla(var(--card-hue), 40%, 4%, 0.4), var(--shadow-lg);
}

.blueprint-card.active {
    border-color: hsl(var(--card-hue), 65%, 48%);
    background-color: hsl(var(--card-hue), 35%, 95.5%);
}

body.theme-dark .blueprint-card.active {
    border-color: hsl(var(--card-hue), 65%, 55%);
    background-color: hsl(var(--card-hue), 20%, 14%);
}

.blueprint-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.blueprint-card p {
    font-size: 12px;
    color: var(--text-subtle);
    flex-grow: 1;
    line-height: 1.4;
}

.blueprint-card .badge {
    align-self: flex-start;
    margin-top: 10px;
}

/* Template Distinct Visual separation styles */
.list-navigation li.list-section-header {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 14px 6px 4px 6px;
    background: none !important;
    border: none !important;
    cursor: default;
    pointer-events: none;
    user-select: none;
    margin-top: 10px;
}
.list-navigation li.list-section-header:first-child {
    margin-top: 0;
}

.blueprint-card.custom-card {
    border-style: dashed;
    border-color: hsla(var(--card-hue), 45%, 65%, 0.5);
    background-color: hsla(var(--card-hue), 30%, 98.5%, 0.4);
}
body.theme-dark .blueprint-card.custom-card {
    background-color: hsla(var(--card-hue), 20%, 10%, 0.4);
    border-color: hsla(var(--card-hue), 25%, 35%, 0.4);
}
.blueprint-card.custom-card:hover {
    border-style: dashed;
    border-color: hsl(var(--card-hue), 60%, 48%);
    background-color: hsla(var(--card-hue), 35%, 97.5%, 0.6);
}
body.theme-dark .blueprint-card.custom-card:hover {
    border-color: hsl(var(--card-hue), 60%, 55%);
    background-color: hsla(var(--card-hue), 25%, 12.5%, 0.6);
}

.readonly-preview .editable-field {
    cursor: default !important;
    border-color: transparent !important;
}
.readonly-preview .editable-field:hover {
    background: none !important;
    box-shadow: none !important;
}
.readonly-preview .editable-field::after {
    display: none !important;
}

/* Sidebar details accordion styles */
.collapsible-templates-container details summary::-webkit-details-marker {
    display: none;
}
.collapsible-templates-container details summary {
    list-style: none;
}
.collapsible-templates-container details[open] summary .arrow-indicator {
    transform: rotate(90deg);
}

/* Premium Assignment Dropdown Popovers */
.assignment-dropdown-container {
    position: relative;
    display: inline-block;
}

.assignment-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1050;
    min-width: 250px;
    max-height: 280px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.assignment-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
    margin-bottom: 4px;
}

.assignment-dropdown-header h5 {
    margin: 0;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
}

.assignment-dropdown-link {
    font-size: 10px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.assignment-dropdown-link:hover {
    text-decoration: underline;
}

.assignment-dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}

.assignment-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.assignment-dropdown-item input[type="checkbox"] {
    cursor: pointer;
    width: 14px;
    height: 14px;
}

.assignment-dropdown-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--border-color);
    padding-top: 6px;
    margin-top: 4px;
}

.wizard-question-view {
    animation: fadeInSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(16px);
}

.wizard-question-view .preview-rubric-btn {
    border-radius: 12px !important;
    border-width: 1.5px !important;
    padding: 18px 24px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-primary) !important;
}

.wizard-question-view .preview-rubric-btn:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

/* Green (High) choices */
.wizard-question-view .preview-rubric-btn.choice-score-high:hover {
    border-color: rgba(16, 185, 129, 0.4) !important;
}
.wizard-question-view .preview-rubric-btn.choice-score-high.active {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: #10b981 !important;
    color: #10b981 !important;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.25) !important;
    transform: translateY(-2px) scale(1.01) !important;
}

/* Amber (Medium) choices */
.wizard-question-view .preview-rubric-btn.choice-score-medium:hover {
    border-color: rgba(245, 158, 11, 0.4) !important;
}
.wizard-question-view .preview-rubric-btn.choice-score-medium.active {
    background: rgba(245, 158, 11, 0.12) !important;
    border-color: #f59e0b !important;
    color: #f59e0b !important;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.25) !important;
    transform: translateY(-2px) scale(1.01) !important;
}

/* Red (Low) choices */
.wizard-question-view .preview-rubric-btn.choice-score-low:hover {
    border-color: rgba(239, 68, 68, 0.4) !important;
}
.wizard-question-view .preview-rubric-btn.choice-score-low.active {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.25) !important;
    transform: translateY(-2px) scale(1.01) !important;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* =========================================================================
   Review switch - Staff | Students (shared with the students app)
   ========================================================================= */
.brand-home { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.review-switch { display: inline-flex; align-items: center; gap: 2px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-full); padding: 3px; flex-shrink: 0; }
.review-switch .rs-label { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-subtle); padding: 0 8px 0 9px; }
.review-switch a { font-size: 12.5px; font-weight: 700; color: var(--text-muted); text-decoration: none; padding: 5px 13px; border-radius: var(--radius-full); }
.review-switch a:hover { color: var(--color-primary); }
.review-switch a.on { background: var(--color-primary); color: #fff; }
@media (max-width: 900px) { .review-switch .rs-label { display: none; } .review-switch a { padding: 5px 10px; } }
