/* ==========================================================================
   SUPERIOR ACADEMIC MANAGEMENT SUITE - MODERN DESIGN SYSTEM
   Inspired by ReactBits, Dark Bento UI Kit, Shadcn UI, Blank 2.7, Tailark, 
   Zeus, Finstack, Motion.dev, Anime.js & Driver.js
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & CSS VARIABLES (LIGHT & DARK THEMES)
   -------------------------------------------------------------------------- */
:root {
    /* Brand Color Palette */
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #e0e7ff;
    --primary-glow: rgba(79, 70, 229, 0.22);

    --secondary-color: #7c3aed;
    --secondary-hover: #6d28d9;
    --secondary-light: #ede9fe;
    --secondary-glow: rgba(124, 58, 237, 0.22);

    --superior-purple: #80146c;
    --superior-purple-light: #fdf2f8;
    --superior-purple-glow: rgba(128, 20, 108, 0.2);

    --accent-color: #f59e0b;
    --accent-hover: #d97706;
    --accent-light: #fef3c7;

    --success-color: #10b981;
    --success-hover: #059669;
    --success-light: #d1fae5;

    --danger-color: #ef4444;
    --danger-hover: #dc2626;
    --danger-light: #fee2e2;

    --info-color: #0284c7;
    --info-hover: #0369a1;
    --info-light: #e0f2fe;

    /* Light Theme (Blank 2.7 / Tailark / Shadcn UI / Enterprise UI Kit) */
    --bg-main: #f8fafc;
    --bg-ambient-gradient: radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
                           radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.05) 0px, transparent 50%),
                           radial-gradient(at 50% 100%, rgba(59, 130, 246, 0.04) 0px, transparent 50%);
    --bg-card: #ffffff;
    --bg-card-glass: rgba(255, 255, 255, 0.9);
    --bg-card-header: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --bg-input: #ffffff;
    --bg-hover: #f1f5f9;
    --bg-active: #e2e8f0;
    --bg-surface-elevated: #ffffff;
    --bg-pill: #f1f5f9;

    --border-color: #e2e8f0;
    --border-card: rgba(226, 232, 240, 0.9);
    --border-input: #cbd5e1;
    --border-glow: rgba(99, 102, 241, 0.25);

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    --table-header-bg: #f8fafc;
    --table-header-text: #475569;
    --table-row-bg: #ffffff;
    --table-row-hover: #f8fafc;
    --table-border: #e2e8f0;

    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 10px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -4px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 20px 35px -6px rgba(15, 23, 42, 0.1), 0 8px 16px -6px rgba(15, 23, 42, 0.05);
    --shadow-glow: 0 0 30px -5px rgba(79, 70, 229, 0.2);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-pill: 9999px;
}

/* Dark Theme (Dark Bento UI Kit / Zeus / Obsidian Glass) */
[data-bs-theme="dark"] {
    --primary-color: #6366f1;
    --primary-hover: #818cf8;
    --primary-light: rgba(99, 102, 241, 0.15);
    --primary-glow: rgba(99, 102, 241, 0.35);

    --secondary-color: #8b5cf6;
    --secondary-hover: #a78bfa;
    --secondary-light: rgba(139, 92, 246, 0.15);
    --secondary-glow: rgba(139, 92, 246, 0.35);

    --superior-purple: #c084fc;
    --superior-purple-light: rgba(192, 132, 252, 0.15);
    --superior-purple-glow: rgba(192, 132, 252, 0.25);

    --accent-color: #fbbf24;
    --accent-hover: #f59e0b;
    --accent-light: rgba(251, 191, 36, 0.15);

    --success-color: #34d399;
    --success-hover: #10b981;
    --success-light: rgba(52, 211, 153, 0.15);

    --danger-color: #f87171;
    --danger-hover: #ef4444;
    --danger-light: rgba(248, 113, 113, 0.15);

    --info-color: #38bdf8;
    --info-hover: #0ea5e9;
    --info-light: rgba(56, 189, 248, 0.15);

    --bg-main: #090d16;
    --bg-ambient-gradient: radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
                           radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.12) 0px, transparent 50%),
                           radial-gradient(at 50% 100%, rgba(14, 165, 233, 0.08) 0px, transparent 50%);
    --bg-card: #101726;
    --bg-card-glass: rgba(16, 23, 38, 0.85);
    --bg-card-header: linear-gradient(135deg, rgba(24, 34, 53, 0.8) 0%, rgba(16, 23, 38, 0.9) 100%);
    --bg-input: #151d2e;
    --bg-hover: rgba(255, 255, 255, 0.06);
    --bg-active: rgba(255, 255, 255, 0.1);
    --bg-surface-elevated: #162032;
    --bg-pill: rgba(255, 255, 255, 0.07);

    --border-color: rgba(255, 255, 255, 0.09);
    --border-card: rgba(255, 255, 255, 0.08);
    --border-input: rgba(255, 255, 255, 0.14);
    --border-glow: rgba(129, 140, 248, 0.35);

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-inverse: #090d16;

    --table-header-bg: #151d2e;
    --table-header-text: #e2e8f0;
    --table-row-bg: #101726;
    --table-row-hover: rgba(99, 102, 241, 0.09);
    --table-border: rgba(255, 255, 255, 0.07);

    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 25px -4px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 40px -6px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 35px -5px rgba(99, 102, 241, 0.35);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESETS & TYPOGRAPHY
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-main);
    background-image: var(--bg-ambient-gradient);
    background-attachment: fixed;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ==========================================================================
   CUSTOM ULTRA-MODERN SCROLLBAR (Cross-Browser: Chromium, WebKit & Firefox)
   ========================================================================== */

/* Standard CSS Scrollbar (Firefox & Modern Standards) */
html, body, * {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.35) transparent;
}
[data-bs-theme="dark"] html, 
[data-bs-theme="dark"] body, 
[data-bs-theme="dark"] * {
    scrollbar-color: rgba(148, 163, 184, 0.28) transparent;
}

/* Webkit Scrollbar (Chrome, Edge, Safari, Opera, Brave) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 9999px;
    margin: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.38);
    border-radius: 9999px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.25s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #4f46e5 0%, #6366f1 100%);
    border: 1px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

::-webkit-scrollbar-thumb:active {
    background: #4338ca;
}

/* Completely remove the ugly Windows/browser up/down arrow buttons */
::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Dark Mode Scrollbar Overrides */
[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.24);
    border: 2px solid transparent;
    background-clip: padding-box;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6366f1 0%, #a855f7 100%);
    border: 1px solid transparent;
    background-clip: padding-box;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:active {
    background: #6366f1;
}

/* Inner Scrollable Elements (Tables, Dropdowns, Cards Grid) */
.table-responsive,
.sidebar-menu,
.teacher-cards-grid,
.select2-results__options,
.hero-search-dropdown,
pre, code {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.table-responsive::-webkit-scrollbar,
.sidebar-menu::-webkit-scrollbar,
.teacher-cards-grid::-webkit-scrollbar,
.select2-results__options::-webkit-scrollbar,
.hero-search-dropdown::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

/* --------------------------------------------------------------------------
   3. SIDEBAR NAVIGATION
   -------------------------------------------------------------------------- */
.sidebar {
    position: fixed;
    top: 0;
    left: -290px;
    width: 290px;
    height: 100vh;
    background: linear-gradient(180deg, #0e1320 0%, #080c14 100%);
    transition: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1050;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 26px 22px;
    background: rgba(0, 0, 0, 0.22);
    color: #ffffff;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo {
    max-height: 48px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}
.sidebar-logo:hover {
    transform: scale(1.04);
}

.sidebar-header h4 {
    font-weight: 800;
    font-size: 1.22rem;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.sidebar-header small {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0 20px 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu a, .sidebar-menu .nav-link {
    display: flex;
    align-items: center;
    padding: 13px 22px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: all 0.22s ease;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    margin-right: 14px;
    font-weight: 500;
    font-size: 0.92rem;
}

.sidebar-menu a:hover, .sidebar-menu .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(4px);
    text-decoration: none;
}

.sidebar-menu a.active, .sidebar-menu .nav-link.active {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff;
    font-weight: 600;
    transform: translateX(4px);
    box-shadow: 0 4px 18px rgba(79, 70, 229, 0.4);
    text-decoration: none;
}

.sidebar-menu i {
    margin-right: 14px;
    width: 20px;
    text-align: center;
    font-size: 1.05rem;
    opacity: 0.9;
}

/* Sidebar Footer - Dark Bento Developer Box */
.sidebar-footer {
    padding: 16px 14px 18px;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dev-bento-card {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.dev-bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #38bdf8, #818cf8);
    opacity: 0.9;
}

.dev-bento-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.dev-bento-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
}

.dev-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #94a3b8;
}

.dev-pulse-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 6px #38bdf8;
    animation: devPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes devPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.dev-name {
    font-size: 0.96rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.dev-brand-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.dev-built-label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
}

.dev-agnific-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.24);
    border-radius: 9999px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.78rem;
    font-weight: 700;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.dev-agnific-img {
    height: 13px;
    width: auto;
    object-fit: contain;
}

.dev-agnific-title {
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dev-external-icon {
    font-size: 0.6rem;
    color: #818cf8;
    transition: transform 0.2s ease;
}

.dev-agnific-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.32) 0%, rgba(56, 189, 248, 0.32) 100%);
    border-color: #38bdf8;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
    color: #ffffff !important;
}

.dev-agnific-btn:hover .dev-external-icon {
    transform: translate(1px, -1px);
    color: #38bdf8;
}

/* Social section wrapper — two labelled groups */
.dev-social-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 2px;
}

.dev-social-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dev-social-label {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #475569;
    padding-left: 2px;
}

.dev-social-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 0 2px;
}

.dev-social-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dev-social-tile {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.82rem;
    text-decoration: none !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.dev-social-tile.tile-linkedin:hover {
    background: rgba(10, 102, 194, 0.22);
    border-color: #0a66c2;
    color: #38bdf8;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(10, 102, 194, 0.32);
}

.dev-social-tile.tile-github:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

.dev-social-tile.tile-portfolio:hover {
    background: rgba(16, 185, 129, 0.18);
    border-color: #10b981;
    color: #34d399;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
}

.dev-social-tile.tile-web:hover {
    background: rgba(129, 140, 248, 0.22);
    border-color: #818cf8;
    color: #a5b4fc;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(129, 140, 248, 0.32);
}

/* Light Theme Sidebar Developer Box */
[data-bs-theme="light"] .sidebar-footer {
    border-top: 1px solid #e2e8f0;
}

[data-bs-theme="light"] .dev-bento-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

[data-bs-theme="light"] .dev-name {
    color: #0f172a;
}

[data-bs-theme="light"] .dev-agnific-title {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-bs-theme="light"] .dev-social-tile {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

[data-bs-theme="light"] .dev-social-label {
    color: #94a3b8;
}

[data-bs-theme="light"] .dev-social-divider {
    background: #e2e8f0;
}



/* Topbar Developer Pill */
.developer-topbar-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 9999px;
    font-size: 0.78rem;
    color: #94a3b8;
    transition: all 0.22s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.topbar-dev-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
}

.dev-name-highlight {
    color: #f1f5f9;
    font-weight: 700;
}

.topbar-dev-divider {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.12);
}

.topbar-agnific-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    padding: 2px 7px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}

.topbar-agnific-link:hover {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.4);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.25);
}

.topbar-agnific-logo {
    height: 12px;
    width: auto;
    object-fit: contain;
}

.topbar-agnific-brand {
    color: #ffffff;
    font-weight: 700;
}

.topbar-link-icon {
    font-size: 0.58rem;
    color: #818cf8;
}

/* Topbar Rasikh Ali name link */
.topbar-devname-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: inherit;
    text-decoration: none !important;
    transition: color 0.18s ease;
}

.topbar-devname-link:hover .dev-name-highlight {
    color: #38bdf8;
}

.topbar-devname-link:hover .topbar-link-icon {
    color: #38bdf8;
    transform: translate(1px, -1px);
}

[data-bs-theme="light"] .developer-topbar-pill {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: #64748b;
}

[data-bs-theme="light"] .dev-name-highlight {
    color: #0f172a;
}

[data-bs-theme="light"] .topbar-dev-divider {
    background: #e2e8f0;
}

[data-bs-theme="light"] .topbar-agnific-link {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155 !important;
}

[data-bs-theme="light"] .topbar-agnific-brand {
    color: #0f172a;
}

/* Backdrop Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1040;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.overlay.active {
    display: block;
    opacity: 1;
}

/* Global Form Select & Option Styling for Dark / Light Modes */
select, .form-select, .si-select {
    color-scheme: dark;
}

select option, .form-select option, .si-select option {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

[data-bs-theme="light"] select,
[data-bs-theme="light"] .form-select,
[data-bs-theme="light"] .si-select {
    color-scheme: light;
}

[data-bs-theme="light"] select option,
[data-bs-theme="light"] .form-select option,
[data-bs-theme="light"] .si-select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

/* --------------------------------------------------------------------------
   4. MAIN CONTENT & HEADER GAP FIX
   -------------------------------------------------------------------------- */
.main-content {
    margin-left: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Sticky Floating Top Navbar with Generous Spacing */
.top-nav {
    background: var(--bg-card-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    margin-bottom: 28px; /* ESSENTIAL GAP TO PREVENT HEADER COLLISION */
    transition: background 0.3s ease, border-color 0.3s ease;
}

[data-bs-theme="dark"] .top-nav {
    background: rgba(16, 23, 38, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.burger-btn {
    background: var(--bg-pill);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all 0.22s ease;
}
.burger-btn:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.university-nav-logo {
    height: 38px;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
}

.university-nav-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
}
.session-badge {
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid rgba(79, 70, 229, 0.2);
}
.update-badge {
    background: var(--bg-pill);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* Tour Guide Button */
.tour-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.86rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    transition: all 0.22s ease;
}
.tour-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
}




/* Theme Toggle Button */
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-pill);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-toggle:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: rotate(18deg) scale(1.05);
}

/* Global Content Container Width & Padding */
.container-fluid {
    padding: 0 32px 64px 32px;
    max-width: 1560px;
    margin: 0 auto;
    width: 100%;
}

.content-section {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.content-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.content-container {
    background: var(--bg-card-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-card);
    margin: 0 auto 32px auto;
    width: 100%;
}

.page-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   5. BENTO GRID SYSTEM (REACTBITS & DARK BENTO UI KIT)
   -------------------------------------------------------------------------- */
.bento-status-pill {
    padding: 6px 14px;
    background: var(--success-light);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    gap: 8px;
}
.live-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
    box-shadow: 0 0 10px var(--success-color);
    animation: livePulse 2s infinite;
}
@keyframes livePulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.25); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Bento Card Primitive */
.bento-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    height: 100%;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
}

/* Dynamic Spotlight Mouse Glow */
.bento-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99, 102, 241, 0.09), transparent 45%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}
.bento-card:hover::before {
    opacity: 1;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-glow);
}

.bento-content {
    position: relative;
    z-index: 2;
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Bento Hero Hub - Supercharged Omni Hub */
.bento-hero-card {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(124, 58, 237, 0.07) 100%), var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 30px;
}
[data-bs-theme="dark"] .bento-hero-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%), #101726;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bento-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.bento-chip-primary {
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid rgba(79, 70, 229, 0.25);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
}

.bento-chip-ghost {
    background: var(--bg-pill);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.bento-hero-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}
.bento-hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 20px;
}

/* Hero Omni Search Bar */
.hero-omni-search-wrap {
    position: relative;
    margin-bottom: 22px;
}
.hero-omni-search {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 6px 16px;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}
.hero-omni-search:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-glow);
}
.hero-omni-search i {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-right: 12px;
}
.hero-omni-search input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    width: 100%;
    padding: 8px 0;
}
.hero-omni-search input::placeholder {
    color: var(--text-muted);
}
.kbd-shortcut {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: 6px;
}

.hero-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    max-height: 320px;
    overflow-y: auto;
    padding: 8px 0;
}
.hero-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.18s ease;
    border-bottom: 1px solid var(--border-color);
}
.hero-search-item:last-child {
    border-bottom: none;
}
.hero-search-item:hover {
    background: var(--bg-hover);
}
.hero-search-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.hero-search-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.hero-search-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-primary);
}
.hero-search-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.hero-search-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: var(--bg-pill);
    color: var(--text-muted);
}

/* Fast Action Matrix Grid */
.hero-action-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
@media (max-width: 1200px) {
    .hero-action-matrix {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 576px) {
    .hero-action-matrix {
        grid-template-columns: 1fr;
    }
}

.hero-action-tile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-action-tile:hover {
    transform: translateY(-2px);
    background: var(--bg-hover);
}

.tile-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.tile-icon-wrap.icon-teacher { background: rgba(56, 189, 248, 0.15); color: #0284c7; }
.tile-icon-wrap.icon-faculty { background: var(--primary-light); color: var(--primary-color); }
.tile-icon-wrap.icon-cohort { background: var(--info-light); color: var(--info-color); }
.tile-icon-wrap.icon-room { background: var(--superior-purple-light); color: var(--superior-purple); }
.tile-icon-wrap.icon-schedule { background: rgba(245, 158, 11, 0.15); color: #d97706; }
.tile-icon-wrap.icon-calc { background: var(--success-light); color: var(--success-color); }

[data-bs-theme="dark"] .hero-action-tile {
    background: #151d30;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .hero-action-tile:hover {
    background: #1c263f;
}
[data-bs-theme="dark"] .tile-icon-wrap.icon-teacher { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
[data-bs-theme="dark"] .tile-icon-wrap.icon-faculty { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }
[data-bs-theme="dark"] .tile-icon-wrap.icon-cohort { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
[data-bs-theme="dark"] .tile-icon-wrap.icon-room { background: rgba(192, 132, 252, 0.2); color: #c084fc; }
[data-bs-theme="dark"] .tile-icon-wrap.icon-schedule { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
[data-bs-theme="dark"] .tile-icon-wrap.icon-calc { background: rgba(52, 211, 153, 0.2); color: #34d399; }

.hero-action-tile.tile-theme-blue:hover {
    border-color: #38bdf8 !important;
    box-shadow: 0 8px 22px rgba(56, 189, 248, 0.32) !important;
}
.hero-action-tile.tile-theme-indigo:hover {
    border-color: #6366f1 !important;
    box-shadow: 0 8px 22px rgba(99, 102, 241, 0.32) !important;
}
.hero-action-tile.tile-theme-cyan:hover {
    border-color: #38bdf8 !important;
    box-shadow: 0 8px 22px rgba(56, 189, 248, 0.32) !important;
}
.hero-action-tile.tile-theme-purple:hover {
    border-color: #c084fc !important;
    box-shadow: 0 8px 22px rgba(192, 132, 252, 0.32) !important;
}
.hero-action-tile.tile-theme-amber:hover {
    border-color: #f59e0b !important;
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.32) !important;
}
.hero-action-tile.tile-theme-emerald:hover {
    border-color: #10b981 !important;
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.32) !important;
}

.tile-meta {
    flex: 1;
    min-width: 0;
}
.tile-title {
    display: block;
    font-weight: 700;
    font-size: 0.84rem;
    color: var(--text-primary);
    line-height: 1.25;
}
.tile-desc {
    display: block;
    font-size: 0.73rem;
    color: var(--text-muted);
    line-height: 1.2;
    margin-top: 2px;
}

/* Bento Metrics Card */
.bento-metrics-card {
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.03) 0%, rgba(16, 185, 129, 0.04) 100%), var(--bg-card);
}
[data-bs-theme="dark"] .bento-metrics-card {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, rgba(16, 185, 129, 0.06) 100%), #101726;
}

.bento-chip-accent {
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid rgba(79, 70, 229, 0.25);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

.bento-stat-item {
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
[data-bs-theme="dark"] .bento-stat-item {
    background: #151d30;
    border-color: rgba(255, 255, 255, 0.08);
}
.bento-stat-item:hover {
    background: var(--bg-card);
    transform: translateX(4px);
}
[data-bs-theme="dark"] .bento-stat-item:hover {
    background: #1c263f;
}
.bento-stat-item.stat-theme-blue:hover {
    border-color: #3b82f6 !important;
    box-shadow: 0 8px 22px rgba(59, 130, 246, 0.28) !important;
}
.bento-stat-item.stat-theme-cyan:hover {
    border-color: #06b6d4 !important;
    box-shadow: 0 8px 22px rgba(6, 182, 212, 0.28) !important;
}
.bento-stat-item.stat-theme-purple:hover {
    border-color: #a855f7 !important;
    box-shadow: 0 8px 22px rgba(168, 85, 247, 0.28) !important;
}

.stat-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #ffffff;
    flex-shrink: 0;
}
.stat-icon-box.bg-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}
.stat-icon-box.bg-cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.35);
}
.stat-icon-box.bg-purple {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.35);
}

.stat-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
}
.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.02em;
}

.stat-progress-track {
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}
.stat-progress-bar {
    height: 100%;
    border-radius: 2px;
    transition: width 1s ease;
}
.stat-progress-bar.bar-blue { background: linear-gradient(90deg, #3b82f6, #60a5fa); width: 100%; }
.stat-progress-bar.bar-cyan { background: linear-gradient(90deg, #06b6d4, #38bdf8); width: 85%; }
.stat-progress-bar.bar-purple { background: linear-gradient(90deg, #a855f7, #c084fc); width: 92%; }

/* Bento Feature Cards */
.bento-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
[data-bs-theme="dark"] .bento-feature-card {
    background: #101726;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.bento-feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #ffffff;
    transition: transform 0.25s ease;
}
.bento-feature-card:hover .icon-circle {
    transform: scale(1.08) rotate(3deg);
}

.icon-circle.icon-teachers {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}
.icon-circle.icon-sections {
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}
.icon-circle.icon-cgpa {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
}
.icon-circle.icon-design {
    background: linear-gradient(135deg, #7c3aed 0%, #c084fc 100%);
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

.bento-mini-pill {
    background: var(--bg-pill);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.feature-desc {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 16px;
    flex-grow: 1;
}

.bento-card-footer {
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}
.arrow-transition {
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.bento-feature-card:hover .arrow-transition {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   CHROMATIC CARD HOVER THEMES (INDIGO, CYAN, EMERALD, PURPLE)
   -------------------------------------------------------------------------- */

/* 1. Teacher Schedules (Indigo) */
.bento-theme-indigo .card-link-text,
.bento-theme-indigo .card-link-arrow {
    color: var(--primary-color);
}
.bento-theme-indigo .bento-mini-pill {
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--primary-color);
}
.bento-theme-indigo:hover {
    border-color: #6366f1 !important;
    box-shadow: 0 16px 36px -6px rgba(99, 102, 241, 0.4), 0 0 25px -4px rgba(99, 102, 241, 0.28) !important;
}
.bento-theme-indigo::before {
    background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99, 102, 241, 0.18), transparent 45%) !important;
}

/* 2. Section Timetables (Cyan/Sky) */
.bento-theme-cyan .card-link-text,
.bento-theme-cyan .card-link-arrow {
    color: #0284c7;
}
[data-bs-theme="dark"] .bento-theme-cyan .card-link-text,
[data-bs-theme="dark"] .bento-theme-cyan .card-link-arrow {
    color: #38bdf8;
}
.bento-theme-cyan .bento-mini-pill {
    border-color: rgba(56, 189, 248, 0.3);
    color: #0284c7;
}
[data-bs-theme="dark"] .bento-theme-cyan .bento-mini-pill {
    color: #38bdf8;
}
.bento-theme-cyan:hover {
    border-color: #38bdf8 !important;
    box-shadow: 0 16px 36px -6px rgba(56, 189, 248, 0.4), 0 0 25px -4px rgba(56, 189, 248, 0.28) !important;
}
.bento-theme-cyan::before {
    background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(56, 189, 248, 0.18), transparent 45%) !important;
}

/* 3. CGPA Calculator (Emerald/Green) */
.bento-theme-emerald .card-link-text,
.bento-theme-emerald .card-link-arrow {
    color: #059669;
}
[data-bs-theme="dark"] .bento-theme-emerald .card-link-text,
[data-bs-theme="dark"] .bento-theme-emerald .card-link-arrow {
    color: #10b981;
}
.bento-theme-emerald .bento-mini-pill {
    border-color: rgba(16, 185, 129, 0.3);
    color: #059669;
}
[data-bs-theme="dark"] .bento-theme-emerald .bento-mini-pill {
    color: #10b981;
}
.bento-theme-emerald:hover {
    border-color: #10b981 !important;
    box-shadow: 0 16px 36px -6px rgba(16, 185, 129, 0.4), 0 0 25px -4px rgba(16, 185, 129, 0.28) !important;
}
.bento-theme-emerald::before {
    background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(16, 185, 129, 0.18), transparent 45%) !important;
}

/* 4. ShadowText Studio (Purple) */
.bento-theme-purple .card-link-text,
.bento-theme-purple .card-link-arrow {
    color: #7c3aed;
}
[data-bs-theme="dark"] .bento-theme-purple .card-link-text,
[data-bs-theme="dark"] .bento-theme-purple .card-link-arrow {
    color: #c084fc;
}
.bento-theme-purple .bento-mini-pill {
    border-color: rgba(192, 132, 252, 0.3);
    color: #7c3aed;
}
[data-bs-theme="dark"] .bento-theme-purple .bento-mini-pill {
    color: #c084fc;
}
.bento-theme-purple:hover {
    border-color: #c084fc !important;
    box-shadow: 0 16px 36px -6px rgba(192, 132, 252, 0.4), 0 0 25px -4px rgba(192, 132, 252, 0.28) !important;
}
.bento-theme-purple::before {
    background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(192, 132, 252, 0.18), transparent 45%) !important;
}

/* --------------------------------------------------------------------------
   9. TEACHER RECORD CARDS (FACULTY DIRECTORY) — IMMACULATE LAYOUT
   -------------------------------------------------------------------------- */
.teacher-card-wrapper {
    height: 100%;
}
.teacher-card-modern {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    position: relative;
    overflow: hidden;
}
.teacher-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-glow);
}

.teacher-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

/* STRICT BOUNDS ON TEACHER AVATARS TO PREVENT GIANT 3D POPUPS */
.teacher-avatar-container {
    position: relative;
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 4px 14px var(--primary-glow);
    border: 2.5px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}
.teacher-avatar {
    width: 100% !important;
    height: 100% !important;
    max-width: 64px !important;
    max-height: 64px !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 50% !important;
}
.teacher-avatar-overlay {
    display: none !important;
}

.teacher-basic-info {
    flex: 1;
    min-width: 0;
}
.teacher-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.teacher-designation {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--primary-light);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    display: inline-block;
    margin-bottom: 6px;
}
.teacher-stats {
    display: flex;
    gap: 12px;
}
.teacher-stats .stat-item {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.teacher-quick-info {
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: 14px;
}
.quick-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    gap: 10px;
}
.quick-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}
.quick-info-item i {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.quick-info-item .info-label {
    font-weight: 600;
    color: var(--text-muted);
}
.quick-info-item .info-value {
    font-weight: 700;
    color: var(--text-primary);
}

.teacher-details-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    flex: 1;
}
.detail-header {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.badge-subject {
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid rgba(79, 70, 229, 0.2);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 600;
}
.badge-section {
    background: var(--info-light);
    color: var(--info-color);
    border: 1px solid rgba(2, 132, 199, 0.2);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 600;
}
.teacher-card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}
.teacher-actions {
    display: flex;
    gap: 10px;
}
.action-btn {
    flex: 1;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.84rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}
.action-btn.primary {
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid rgba(79, 70, 229, 0.25);
}
.action-btn.primary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--primary-glow);
}
.action-btn.secondary {
    background: var(--bg-hover);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.action-btn.secondary:hover:not(:disabled) {
    background: var(--border-color);
    color: var(--text-primary);
}
.action-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   10. CGPA CALCULATOR (SHADCN / TAILARK / FINSTACK)
   -------------------------------------------------------------------------- */
.cgpa-results-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
@media (max-width: 768px) {
    .cgpa-results-summary {
        grid-template-columns: 1fr;
    }
}

.cgpa-metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.cgpa-metric-card.sgpa-box {
    border-left: 4px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(124, 58, 237, 0.07) 100%), var(--bg-card);
}
.cgpa-metric-card.cgpa-box {
    border-left: 4px solid var(--success-color);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.07) 100%), var(--bg-card);
}
.cgpa-metric-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}
.sgpa-box .cgpa-metric-icon {
    background: var(--primary-light);
    color: var(--primary-color);
}
.cgpa-box .cgpa-metric-icon {
    background: var(--success-light);
    color: var(--success-color);
}
.cgpa-metric-details {
    flex: 1;
}
.cgpa-metric-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.cgpa-metric-val {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 4px;
}
.cgpa-metric-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}
.badge-grade-a { background: var(--success-light); color: var(--success-color); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-grade-b { background: var(--info-light); color: var(--info-color); border: 1px solid rgba(2, 132, 199, 0.3); }
.badge-grade-c { background: var(--accent-light); color: var(--accent-hover); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-grade-f { background: var(--danger-light); color: var(--danger-color); border: 1px solid rgba(239, 68, 68, 0.3); }

/* --------------------------------------------------------------------------
   11. SHADOWTEXT 3D STUDIO (DARK BENTO & REACTBITS CREATIVE SUITE)
   -------------------------------------------------------------------------- */
.studio-header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: #101726;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-2xl);
    margin-bottom: 28px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}
[data-bs-theme="light"] .studio-header-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
@media (max-width: 768px) {
    .studio-header-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}
.studio-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.studio-header-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #c084fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}
.studio-header-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.4px;
}
[data-bs-theme="light"] .studio-header-title {
    color: #0f172a;
}
.studio-header-subtitle {
    font-size: 0.86rem;
    color: #94a3b8;
}
.studio-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.studio-status-pill {
    padding: 6px 14px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-studio-ghost {
    padding: 6px 14px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-studio-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Studio Bento Layout */
.studio-bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}
@media (max-width: 1024px) {
    .studio-bento-grid {
        grid-template-columns: 1fr;
    }
}

.studio-card {
    background: #101726;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-2xl);
    margin-bottom: 22px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.studio-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
}
[data-bs-theme="light"] .studio-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.studio-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.015);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}
.studio-card-header:hover {
    background: rgba(255, 255, 255, 0.035);
}
[data-bs-theme="light"] .studio-card-header {
    border-bottom: 1px solid #f1f5f9;
}
[data-bs-theme="light"] .studio-card-header:hover {
    background: #f8fafc;
}
.studio-card-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.studio-chevron-btn {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    pointer-events: none;
}
[data-bs-theme="light"] .studio-chevron-btn {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
}
.studio-collapse-chevron {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.studio-card.is-collapsed .studio-collapse-chevron {
    transform: rotate(180deg);
}
.studio-card.is-collapsed {
    margin-bottom: 14px;
}
.studio-card.is-collapsed .studio-card-header {
    border-bottom: none;
}
.studio-card.is-collapsed .studio-card-body {
    display: none;
}
.studio-collapsed-summary {
    display: none;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-family: var(--font-mono, monospace);
    letter-spacing: 0.2px;
}
[data-bs-theme="light"] .studio-collapsed-summary {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
}
.studio-card.is-collapsed .studio-collapsed-summary {
    display: inline-flex;
    align-items: center;
}
.studio-card-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.icon-theme-purple {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
}
.icon-theme-magenta {
    background: rgba(236, 72, 153, 0.15);
    border: 1px solid rgba(236, 72, 153, 0.3);
    color: #f472b6;
}
.icon-theme-cyan {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #22d3ee;
}
.studio-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.2px;
}
[data-bs-theme="light"] .studio-card-title {
    color: #0f172a;
}
.studio-card-subtitle {
    font-size: 0.78rem;
    color: #94a3b8;
}
.studio-card-body {
    padding: 22px 24px;
}

/* Fields & Inputs */
.studio-field-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 6px;
}
[data-bs-theme="light"] .studio-field-label {
    color: #334155;
}
.studio-char-count {
    font-size: 0.74rem;
    color: #94a3b8;
    font-weight: 600;
    font-family: var(--font-mono, monospace);
}
.studio-textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    background: #141c2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    resize: none;
    transition: all 0.2s ease;
}
.studio-textarea:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
}
[data-bs-theme="light"] .studio-textarea {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

.studio-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.studio-chip {
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
}
.studio-chip:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: #a855f7;
    color: #c084fc;
    transform: translateY(-1px);
}

.studio-select {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border-radius: var(--radius-lg);
    background: #141c2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
}
[data-bs-theme="light"] .studio-select {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

/* Sliders */
.studio-slider-box {
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: 14px 16px;
}
[data-bs-theme="light"] .studio-slider-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.studio-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.studio-slider-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #cbd5e1;
}
[data-bs-theme="light"] .studio-slider-label {
    color: #334155;
}
.studio-badge-val {
    font-size: 0.78rem;
    font-weight: 800;
    color: #a855f7;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 2px 8px;
    border-radius: 6px;
    font-family: var(--font-mono, monospace);
}
.studio-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #1e293b;
    border-radius: 9999px;
    outline: none;
    cursor: pointer;
}
.studio-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #a855f7;
    border: 2px solid #ffffff;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
    cursor: pointer;
    transition: transform 0.15s ease;
}
.studio-range::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

/* Gradient Presets */
.gradient-presets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
@media (max-width: 576px) {
    .gradient-presets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.preset-pill {
    height: 38px;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}
.preset-pill span {
    font-size: 0.72rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}
.preset-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.preset-pill.active {
    border-color: #ffffff;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.5);
}

/* Custom Dual Color Cards */
.custom-color-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.custom-color-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #141c2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 14px;
    border-radius: var(--radius-xl);
}
[data-bs-theme="light"] .custom-color-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
}
.color-picker-wrapper {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.color-picker-wrapper input[type="color"] {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}
.color-swatch-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}
.color-info-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.color-tag {
    font-size: 0.68rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
}
.color-hex-field {
    background: none;
    border: none;
    color: #f8fafc;
    font-weight: 800;
    font-size: 0.88rem;
    font-family: var(--font-mono, monospace);
    width: 100%;
    padding: 0;
}
.color-hex-field:focus {
    outline: none;
}
[data-bs-theme="light"] .color-hex-field {
    color: #0f172a;
}
.gradient-connector-icon {
    color: #64748b;
    font-size: 0.9rem;
}

/* Direction Chips */
.direction-chips-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.dir-chip {
    padding: 8px 12px;
    border-radius: var(--radius-lg);
    background: #141c2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
[data-bs-theme="light"] .dir-chip {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
}
.dir-chip:hover {
    border-color: #22d3ee;
    color: #22d3ee;
}
.dir-chip.active {
    background: rgba(6, 182, 212, 0.15);
    border-color: #22d3ee;
    color: #22d3ee;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.2);
}

/* Studio Export Dock */
.studio-export-dock {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}
.btn-studio-action {
    height: 48px;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
}
.btn-studio-generate {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
}
.btn-studio-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.5);
}
.export-secondary-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.btn-studio-download {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.btn-studio-download:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
}
.btn-studio-crop {
    background: #0ea5e9;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}
.btn-studio-crop:hover:not(:disabled) {
    background: #0284c7;
    transform: translateY(-1px);
}
.btn-studio-action:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Right Artboard Deck */
.studio-artboard-card {
    background: #101726;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 24px;
}
[data-bs-theme="light"] .studio-artboard-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.studio-artboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.artboard-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }
.artboard-title-text {
    font-size: 0.86rem;
    font-weight: 700;
    color: #cbd5e1;
}
[data-bs-theme="light"] .artboard-title-text {
    color: #334155;
}
.artboard-meta-badge {
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.74rem;
    font-weight: 700;
    font-family: var(--font-mono, monospace);
}

.studio-artboard-viewport {
    padding: 32px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    position: relative;
    background: #090d16;
}
[data-bs-theme="light"] .studio-artboard-viewport {
    background: #f1f5f9;
}

/* Live Artboard Canvas Frame */
.live-css-artboard-frame {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 800 / 1200;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    overflow: hidden;
    position: relative;
    transition: aspect-ratio 0.3s ease, background 0.25s ease;
}
.live-artboard-text {
    color: #ffffff;
    font-weight: 900;
    text-align: center;
    line-height: 1.18;
    word-break: break-word;
    white-space: pre-line !important;
    user-select: none;
    transform: translateZ(0);
}

.shadowtext-rendered-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.studio-rendered-img {
    max-width: 320px;
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.studio-render-spinner {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

.studio-artboard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
    color: #94a3b8;
}
.btn-artboard-tool {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-artboard-tool:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   12. SETTINGS, AUTHENTICATION, DATASETS & SYSTEM INFO
   -------------------------------------------------------------------------- */
.settings-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}
.settings-page-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.settings-page-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
.settings-page-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
}
.settings-page-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.session-pill, .drive-status-pill {
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #141c2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    transition: all 0.25s ease;
}
[data-bs-theme="light"] .session-pill, [data-bs-theme="light"] .drive-status-pill {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
}
.session-pill.session-pill-admin {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}
.session-pill.session-pill-faculty, .session-pill.session-pill-user {
    background: rgba(99, 102, 241, 0.12);
    color: #818cf8;
    border-color: rgba(99, 102, 241, 0.35);
}
.session-pill.session-pill-offline {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.dot-offline { background: #64748b; }
.dot-checking { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.8); animation: livePulse 1.5s infinite; }
.dot-connected, .dot-online, .dot-admin { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.8); }
.dot-error { background: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.8); }

/* SCARD (Settings Card - Dark Bento Glassmorphic Container) */
.scard {
    background: #101726;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-2xl);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-bs-theme="light"] .scard {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.scard-header {
    padding: 20px 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%), #141c2e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
[data-bs-theme="light"] .scard-header {
    background: #f8fafc;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.scard-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.scard-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.icon-auth { background: rgba(99, 102, 241, 0.15); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }
.icon-drive { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.icon-dataset { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.icon-sysinfo { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.icon-audit { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

.scard-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}
.scard-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.scard-body {
    padding: 26px;
}

.login-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: center;
}
@media (max-width: 768px) {
    .login-form-grid {
        grid-template-columns: 1fr;
    }
}
.login-input-wrap {
    position: relative;
}
.login-field-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
}
.login-input {
    width: 100%;
    height: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #141c2e;
    color: #f1f5f9;
    padding: 10px 16px 10px 42px;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}
[data-bs-theme="light"] .login-input {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}
.login-input:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: #172138;
    outline: none;
}
.btn-login {
    height: 48px;
    padding: 0 28px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    border: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
    transition: all 0.2s ease;
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(99, 102, 241, 0.5);
}

/* System Info Metric Tiles (Bento Grid) */
.sysinfo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
@media (max-width: 1200px) {
    .sysinfo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .sysinfo-grid {
        grid-template-columns: 1fr;
    }
}
.sysinfo-tile {
    background: #141c2e;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-xl);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-bs-theme="light"] .sysinfo-tile {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.sysinfo-tile::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0.6;
    transition: opacity 0.25s ease;
}
.sysinfo-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.4);
}
.sysinfo-tile:hover::after {
    opacity: 1;
}
.tile-theme-indigo::after { background: #6366f1; }
.tile-theme-cyan::after { background: #38bdf8; }
.tile-theme-emerald::after { background: #10b981; }
.tile-theme-purple::after { background: #a855f7; }

.sysinfo-tile-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.sysinfo-tile-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.tile-theme-indigo .sysinfo-tile-icon-badge { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.tile-theme-cyan .sysinfo-tile-icon-badge { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.tile-theme-emerald .sysinfo-tile-icon-badge { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.tile-theme-purple .sysinfo-tile-icon-badge { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

.sysinfo-tile-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.sysinfo-tile-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f8fafc;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
}
[data-bs-theme="light"] .sysinfo-tile-value {
    color: #0f172a;
}

/* Dataset Management & Version Table */
.dataset-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    background: #141c2e;
    margin-top: 18px;
}
[data-bs-theme="light"] .dataset-table-wrap {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}
.dataset-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    color: #f1f5f9;
}
[data-bs-theme="light"] .dataset-tbl {
    color: #0f172a;
}
.dataset-tbl thead th {
    background: #0f172a;
    color: #94a3b8;
    padding: 14px 18px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
[data-bs-theme="light"] .dataset-tbl thead th {
    background: #f1f5f9;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}
.dataset-tbl tbody td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}
[data-bs-theme="light"] .dataset-tbl tbody td {
    border-bottom: 1px solid #f1f5f9;
}
.dataset-tbl tbody tr:last-child td {
    border-bottom: none;
}
.dataset-tbl tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.row-active-dataset {
    background: rgba(16, 185, 129, 0.06) !important;
}
.row-active-dataset td {
    border-top-color: rgba(16, 185, 129, 0.2) !important;
}
.active-dot-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.9);
    animation: livePulse 2s infinite;
}
.badge-version-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 6px;
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono, monospace);
}
.badge-version-pill.active {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.4);
}
.badge-dataset-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 700;
}
.badge-dataset-status.active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-dataset-status.inactive {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}
.btn-dataset-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1e293b;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 4px;
}
.btn-dataset-action:hover {
    background: #334155;
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-1px);
}
.btn-dataset-activate {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}
.btn-dataset-activate:hover {
    background: #10b981;
    color: #ffffff;
}
.btn-dataset-delete {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}
.btn-dataset-delete:hover {
    background: #ef4444;
    color: #ffffff;
}

.active-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.04) 100%);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: var(--radius-xl);
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.08);
}
.active-banner-icon {
    font-size: 1.6rem;
    color: #10b981;
}
.active-banner-label {
    font-size: 0.74rem;
    font-weight: 700;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.active-banner-detail {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
}
[data-bs-theme="light"] .active-banner-detail {
    color: #0f172a;
}
.active-banner-uploader {
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: normal;
    margin-left: 8px;
}

.upload-zone-v2 {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    padding: 28px;
    text-align: center;
    background: #141c2e;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-bottom: 20px;
}
[data-bs-theme="light"] .upload-zone-v2 {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.upload-zone-v2:hover {
    border-color: #818cf8;
    background: rgba(99, 102, 241, 0.08);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.15);
}
.upload-zone-v2-icon {
    font-size: 2.2rem;
    color: #818cf8;
    margin-bottom: 10px;
}
.upload-zone-v2-text strong {
    display: block;
    font-size: 1rem;
    color: #f1f5f9;
}
[data-bs-theme="light"] .upload-zone-v2-text strong {
    color: #0f172a;
}
.upload-zone-v2-text span {
    font-size: 0.82rem;
    color: #94a3b8;
}

/* Header Action Buttons (Refined Glass Bento Style) */
.btn-hdr-action {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-hdr-action:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: #818cf8;
    color: #818cf8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}
[data-bs-theme="light"] .btn-hdr-action {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
}
[data-bs-theme="light"] .btn-hdr-action:hover {
    background: #e2e8f0;
    color: var(--primary-color);
}

/* Login Error Alert Banner */
.login-error-msg {
    margin-top: 14px;
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.1);
    animation: fadeIn 0.2s ease-in-out;
}

/* Profile Card (After Login - Dark Bento Grid) */
.profile-card-v2 {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: #141c2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    position: relative;
}
[data-bs-theme="light"] .profile-card-v2 {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
@media (max-width: 991px) {
    .profile-card-v2 {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }
}
.profile-avatar-wrap {
    position: relative;
    width: 84px !important;
    height: 84px !important;
    min-width: 84px !important;
    max-width: 84px !important;
    max-height: 84px !important;
    flex-shrink: 0;
}
.profile-avatar {
    width: 84px !important;
    height: 84px !important;
    min-width: 84px !important;
    max-width: 84px !important;
    max-height: 84px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid rgba(99, 102, 241, 0.4) !important;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25) !important;
    display: block !important;
}
.role-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #6366f1;
    color: #ffffff;
    border: 2px solid #141c2e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.role-badge.role-admin {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.role-badge.role-faculty {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}
.profile-details-v2 {
    flex: 1;
}
.profile-name-v2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}
[data-bs-theme="light"] .profile-name-v2 {
    color: #0f172a;
}
.profile-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px 16px;
}
.profile-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: #94a3b8;
}
.profile-meta-item i {
    color: #818cf8;
    width: 16px;
    text-align: center;
}
.profile-meta-item span {
    color: #cbd5e1;
    font-weight: 500;
}
[data-bs-theme="light"] .profile-meta-item span {
    color: #334155;
}
.profile-side-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
}
@media (max-width: 991px) {
    .profile-side-actions {
        align-items: center;
        width: 100%;
    }
}
.session-timer-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8rem;
}
.session-timer-box i {
    color: #38bdf8;
}
.session-timer-label {
    color: #94a3b8;
    font-size: 0.72rem;
    text-transform: uppercase;
}
.session-timer-value {
    color: #38bdf8;
    font-weight: 700;
    font-family: var(--font-mono, monospace);
}
.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: var(--radius-lg);
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-logout:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

/* Google Drive Sync Controls */
.drive-url-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.drive-url-field {
    flex: 1;
    position: relative;
}
.drive-url-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.drive-url-input {
    width: 100%;
    height: 46px;
    padding: 10px 16px 10px 42px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #141c2e;
    color: #f1f5f9;
    font-size: 0.88rem;
}
[data-bs-theme="light"] .drive-url-input {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}
.btn-drive-save, .btn-drive-test {
    height: 46px;
    padding: 0 20px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    transition: all 0.2s ease;
}
.btn-drive-save {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.btn-drive-save:hover {
    background: #059669;
    transform: translateY(-1px);
}
.btn-drive-test {
    background: #1e293b;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-drive-test:hover {
    background: #334155;
    color: #ffffff;
    transform: translateY(-1px);
}

.drive-stats-row {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}
.drive-stat-chip {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #141c2e;
    padding: 12px 18px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
}
[data-bs-theme="light"] .drive-stat-chip {
    background: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.drive-stat-chip i {
    color: #10b981;
    font-size: 1.1rem;
}
.drive-stat-label {
    color: #94a3b8;
    font-weight: 600;
}
.drive-stat-val {
    color: #f1f5f9;
    font-weight: 700;
    margin-left: auto;
}
[data-bs-theme="light"] .drive-stat-val {
    color: #0f172a;
}
.drive-warning-box {
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Audit Log Scrollable Container with Sticky Headers */
.audit-table-scroll {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}
.audit-table-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.audit-table-scroll::-webkit-scrollbar-track {
    background: #0f172a;
}
.audit-table-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
}
.audit-table-scroll::-webkit-scrollbar-thumb:hover {
    background: #818cf8;
}

/* Audit Log Table */
.audit-tbl {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.86rem;
    color: #f1f5f9;
}
[data-bs-theme="light"] .audit-tbl {
    color: #0f172a;
}
.audit-tbl thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #0f172a !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #94a3b8;
    padding: 14px 18px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
[data-bs-theme="light"] .audit-tbl thead th {
    background: #f1f5f9 !important;
    color: #475569;
    border-bottom: 1px solid #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.audit-tbl tbody td {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}
[data-bs-theme="light"] .audit-tbl tbody td {
    border-bottom: 1px solid #f1f5f9;
}
.audit-tbl tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}
.audit-action-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-mono, monospace);
}
.audit-action-badge.action-login { background: rgba(99, 102, 241, 0.15); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }
.audit-action-badge.action-logout { background: rgba(148, 163, 184, 0.15); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); }
.audit-action-badge.action-upload { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.audit-action-badge.action-activate { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.audit-action-badge.action-delete { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.audit-action-badge.action-drive { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

/* --------------------------------------------------------------------------
   13. DRIVER.JS MODERN TOUR GUIDE THEME - DARK BENTO & SHADCN SYSTEM
   -------------------------------------------------------------------------- */
.driver-popover {
    background: #101726 !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.7), 0 0 35px rgba(99, 102, 241, 0.25) !important;
    padding: 24px 26px !important;
    max-width: min(440px, calc(100vw - 32px)) !important;
    max-height: calc(100vh - 48px) !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    color: #f8fafc !important;
    font-family: inherit !important;
    animation: driverPopoverEnter 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
    z-index: 1000000000 !important;
}

.driver-popover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #a855f7, #38bdf8);
    border-radius: 3px;
}

[data-bs-theme="light"] .driver-popover {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15), 0 0 25px rgba(99, 102, 241, 0.12) !important;
    color: #0f172a !important;
}

@keyframes driverPopoverEnter {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.driver-popover-title {
    font-size: 1.18rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 10px !important;
    display: flex !important;
    align-items: center !important;
    letter-spacing: -0.3px !important;
}

[data-bs-theme="light"] .driver-popover-title {
    color: #0f172a !important;
}

.driver-popover-description {
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
    color: #94a3b8 !important;
    margin-bottom: 20px !important;
    font-weight: 500 !important;
}

[data-bs-theme="light"] .driver-popover-description {
    color: #475569 !important;
}

.driver-popover-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: 16px !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    gap: 12px !important;
}

[data-bs-theme="light"] .driver-popover-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.driver-popover-progress-text {
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: #818cf8 !important;
    background: rgba(99, 102, 241, 0.12) !important;
    padding: 6px 14px !important;
    border-radius: 9999px !important;
    border: 1px solid rgba(99, 102, 241, 0.28) !important;
    letter-spacing: 0.2px !important;
}

[data-bs-theme="light"] .driver-popover-progress-text {
    background: #eef2ff !important;
    color: #4f46e5 !important;
    border-color: #c7d2fe !important;
}

.driver-popover-navigation-btns {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.driver-popover-btn {
    padding: 9px 18px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: 1px solid transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    outline: none !important;
}

.driver-popover-prev-btn {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.driver-popover-prev-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-1px) !important;
}

[data-bs-theme="light"] .driver-popover-prev-btn {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
}

[data-bs-theme="light"] .driver-popover-prev-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.driver-popover-next-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45) !important;
}

.driver-popover-next-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6) !important;
    filter: brightness(1.1) !important;
}

.driver-popover-close-btn {
    color: #94a3b8 !important;
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 1.1rem !important;
}

.driver-popover-close-btn:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    transform: scale(1.05) !important;
}

/* Active Highlight Stage Element with Pulse & Glow */
.driver-stage-active-element {
    outline: 2px solid #6366f1 !important;
    outline-offset: 6px !important;
    box-shadow: 0 0 35px rgba(99, 102, 241, 0.55), inset 0 0 20px rgba(99, 102, 241, 0.15) !important;
    border-radius: 16px !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    animation: driverActivePulse 2.2s infinite ease-in-out !important;
}

@keyframes driverActivePulse {
    0%, 100% {
        outline-color: #6366f1;
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.45);
    }
    50% {
        outline-color: #8b5cf6;
        box-shadow: 0 0 45px rgba(139, 92, 246, 0.7);
    }
}

/* Driver Popover Arrows */
.driver-popover-arrow {
    border-color: #101726 !important;
}
[data-bs-theme="light"] .driver-popover-arrow {
    border-color: #ffffff !important;
}

/* Tour Guide Launch Button */
.tour-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(99, 102, 241, 0.1);
    color: #cbd5e1;
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 9999px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

.tour-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #ffffff;
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

[data-bs-theme="light"] .tour-btn {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
}

[data-bs-theme="light"] .tour-btn:hover {
    background: #eef2ff;
    color: #4338ca;
    border-color: #a5b4fc;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

/* --------------------------------------------------------------------------
   14. GLOBAL TOP-RIGHT TOAST NOTIFICATIONS & CONFIRMATION DIALOGS
   -------------------------------------------------------------------------- */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    pointer-events: none;
}
.toast-notification, .toast-msg {
    pointer-events: auto;
    padding: 14px 20px;
    border-radius: var(--radius-xl);
    background: rgba(16, 23, 38, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #f8fafc;
    box-shadow: 0 12px 35px -8px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastEnterTop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.25s ease;
}
[data-bs-theme="light"] .toast-notification, [data-bs-theme="light"] .toast-msg {
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.08);
}
@keyframes toastEnterTop {
    from { transform: translateY(-20px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.toast-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}
.toast-success {
    border-left: 4px solid #10b981 !important;
}
.toast-success .toast-icon {
    color: #10b981;
}
.toast-error {
    border-left: 4px solid #ef4444 !important;
}
.toast-error .toast-icon {
    color: #ef4444;
}
.toast-warning {
    border-left: 4px solid #f59e0b !important;
}
.toast-warning .toast-icon {
    color: #f59e0b;
}
.toast-info {
    border-left: 4px solid #6366f1 !important;
}
.toast-info .toast-icon {
    color: #818cf8;
}

.confirm-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    z-index: 2050;
    display: flex;
    align-items: center;
    justify-content: center;
}
.confirm-box {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 28px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-xl);
}
.confirm-icon {
    font-size: 2.5rem;
    color: var(--warning-color);
    margin-bottom: 14px;
}
.confirm-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

/* --------------------------------------------------------------------------
   15. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .top-nav {
        padding: 14px 18px;
        margin-bottom: 18px;
    }
    .container-fluid {
        padding: 0 16px 40px 16px;
    }
    .content-container {
        padding: 20px 16px;
        border-radius: var(--radius-lg);
    }
    .page-title {
        font-size: 1.3rem;
    }
    .bento-hero-title {
        font-size: 1.35rem;
    }
}

/* ==========================================================================
   16. CGPA CALCULATOR & ACADEMIC ANALYTICS ENGINE (DARK BENTO / SHADCN)
   ========================================================================== */
.cgpa-container-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-2xl);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
[data-bs-theme="dark"] .cgpa-container-card {
    background: #101726;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cgpa-header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 22px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}
.cgpa-header-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.cgpa-header-title i {
    color: var(--success-color);
}
.cgpa-header-subtitle {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 4px;
    margin-bottom: 0;
}

/* Mode Selector (Segmented Pill) */
.cgpa-mode-selector {
    display: inline-flex;
    background: var(--bg-hover);
    padding: 4px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    gap: 4px;
}
[data-bs-theme="dark"] .cgpa-mode-selector {
    background: #090d16;
    border-color: rgba(255, 255, 255, 0.1);
}
.cgpa-mode-btn {
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    border: none;
    background: transparent;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.cgpa-mode-btn.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}
[data-bs-theme="dark"] .cgpa-mode-btn.active {
    background: #1e293b;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Prior Semesters Box */
.cgpa-prior-card {
    background: rgba(2, 132, 199, 0.04);
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 24px;
}
[data-bs-theme="dark"] .cgpa-prior-card {
    background: rgba(56, 189, 248, 0.05);
    border-color: rgba(56, 189, 248, 0.2);
}

.cgpa-field-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

/* Global Number Input Spinner Suppression */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
input[type="number"] {
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

/* Input Fields & Wraps */
.cgpa-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.cgpa-input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
}
.cgpa-input-addon {
    position: absolute;
    right: 8px;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    pointer-events: none;
    background: var(--bg-hover);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    line-height: 1.2;
}
[data-bs-theme="dark"] .cgpa-input-addon {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.12);
}

.cgpa-input {
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.88rem;
    height: 44px;
    padding: 8px 48px 8px 14px;
    transition: all 0.2s ease;
    width: 100%;
}
.cgpa-input.with-icon {
    padding-left: 38px;
    padding-right: 14px;
}
#previous_cgpa, #previous_credits {
    padding-right: 74px !important;
}
[data-bs-theme="dark"] .cgpa-input {
    background: #151d30;
    border-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}
.cgpa-input:focus {
    background: var(--bg-card);
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    color: var(--text-primary);
}
[data-bs-theme="dark"] .cgpa-input:focus {
    background: #1a233a;
    color: #ffffff;
}

.cgpa-select {
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 0.88rem;
    height: 44px;
    padding: 8px 14px;
    transition: all 0.2s ease;
    width: 100%;
    cursor: pointer;
}
[data-bs-theme="dark"] .cgpa-select {
    background: #151d30;
    border-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}
.cgpa-select:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Subject Row */
.cgpa-subject-grid-header {
    display: grid;
    grid-template-columns: 5fr 3fr 2.5fr 1fr;
    gap: 12px;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
@media (max-width: 768px) {
    .cgpa-subject-grid-header {
        display: none;
    }
}

.cgpa-subject-row {
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 12px 16px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: 5fr 3fr 2.5fr 1fr;
    gap: 12px;
    align-items: center;
    transition: all 0.2s ease;
}
[data-bs-theme="dark"] .cgpa-subject-row {
    background: #151d30;
    border-color: rgba(255, 255, 255, 0.08);
}
.cgpa-subject-row:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
@media (max-width: 768px) {
    .cgpa-subject-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

.cgpa-btn-remove {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cgpa-btn-remove:hover:not(:disabled) {
    background: #ef4444;
    color: #ffffff;
    transform: scale(1.05);
}
.cgpa-btn-remove:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* CGPA Buttons Toolbar */
.cgpa-actions-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    margin-bottom: 28px;
}
.btn-cgpa-primary {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-pill);
    padding: 10px 22px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
    transition: all 0.22s ease;
    display: inline-flex;
    align-items: center;
}
.btn-cgpa-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.45);
    color: #ffffff;
}

.btn-cgpa-secondary {
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}
.btn-cgpa-secondary:hover {
    background: var(--bg-card);
    border-color: var(--primary-color);
}

/* Results & KPI Bento */
.cgpa-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-hover);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-xl);
}
[data-bs-theme="dark"] .cgpa-empty-state {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
}
.cgpa-empty-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: rgba(16, 185, 129, 0.12);
    color: var(--success-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 16px;
}
.cgpa-empty-state h5 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.cgpa-empty-state p {
    font-size: 0.86rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

.cgpa-results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.cgpa-metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.24s ease;
    position: relative;
    overflow: hidden;
}
[data-bs-theme="dark"] .cgpa-metric-card {
    background: #151d30;
    border-color: rgba(255, 255, 255, 0.08);
}
.cgpa-metric-card.sgpa-box {
    border-left: 4px solid #10b981;
}
.cgpa-metric-card.cgpa-box {
    border-left: 4px solid #38bdf8;
}

.cgpa-metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}
.sgpa-box .cgpa-metric-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}
.cgpa-box .cgpa-metric-icon {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.cgpa-metric-details {
    flex: 1;
}
.cgpa-metric-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cgpa-metric-val {
    font-size: 1.85rem;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
    line-height: 1.1;
    margin: 4px 0 6px;
}
.cgpa-metric-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
}

/* Grade Badges */
.badge-grade-a {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-grade-b {
    background: rgba(56, 189, 248, 0.15);
    color: #0284c7;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
[data-bs-theme="dark"] .badge-grade-b {
    color: #38bdf8;
}
.badge-grade-c {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
[data-bs-theme="dark"] .badge-grade-c {
    color: #fbbf24;
}
.badge-grade-d {
    background: rgba(249, 115, 22, 0.15);
    color: #ea580c;
    border: 1px solid rgba(249, 115, 22, 0.3);
}
[data-bs-theme="dark"] .badge-grade-d {
    color: #fb923c;
}
.badge-grade-f {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   18. UNIVERSAL HIGH-CONTRAST DATA TABLES (DARK BENTO / SHADCN)
   ========================================================================== */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-top: 16px;
    box-shadow: var(--shadow-sm);
}
[data-bs-theme="dark"] .table-container {
    background: #101726;
    border-color: rgba(255, 255, 255, 0.08);
}

.table {
    width: 100%;
    margin-bottom: 0;
    color: var(--text-primary) !important;
    background-color: transparent !important;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: var(--bg-hover) !important;
    color: var(--text-primary) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    padding: 14px 18px !important;
    border-top: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    white-space: nowrap !important;
}
[data-bs-theme="dark"] .table thead th {
    background: #151d30 !important;
    color: #cbd5e1 !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

.table thead th i {
    color: var(--text-muted);
}
[data-bs-theme="dark"] .table thead th i {
    color: #94a3b8;
}

.table tbody td {
    padding: 14px 18px !important;
    font-size: 0.88rem !important;
    color: var(--text-primary) !important;
    border-top: 1px solid var(--border-color) !important;
    vertical-align: middle !important;
    background: transparent !important;
}
[data-bs-theme="dark"] .table tbody td {
    color: #f1f5f9 !important;
    border-top-color: rgba(255, 255, 255, 0.06) !important;
}

.table tbody td span,
.table tbody td strong {
    color: inherit !important;
}

.table tbody tr:hover td {
    background: var(--bg-hover) !important;
}
[data-bs-theme="dark"] .table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.04) !important;
}

.table tbody tr:last-child td {
    border-bottom: none !important;
}

/* --------------------------------------------------------------------------
   19. DYNAMIC CHROMATIC GRADE GLOW & ROW HIGHLIGHTING (100% VECTOR ICONS)
   -------------------------------------------------------------------------- */
.cgpa-row-grade-a {
    background: rgba(16, 185, 129, 0.05) !important;
}
.cgpa-row-grade-a td {
    border-top-color: rgba(16, 185, 129, 0.2) !important;
}
.cgpa-row-grade-a .cgpa-row-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
    margin-right: 10px;
    flex-shrink: 0;
}
.cgpa-row-grade-a:hover td {
    background: rgba(16, 185, 129, 0.12) !important;
}

.cgpa-row-grade-b {
    background: rgba(56, 189, 248, 0.05) !important;
}
.cgpa-row-grade-b td {
    border-top-color: rgba(56, 189, 248, 0.2) !important;
}
.cgpa-row-grade-b .cgpa-row-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
    margin-right: 10px;
    flex-shrink: 0;
}
.cgpa-row-grade-b:hover td {
    background: rgba(56, 189, 248, 0.12) !important;
}

.cgpa-row-grade-c {
    background: rgba(245, 158, 11, 0.05) !important;
}
.cgpa-row-grade-c td {
    border-top-color: rgba(245, 158, 11, 0.2) !important;
}
.cgpa-row-grade-c .cgpa-row-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
    margin-right: 10px;
    flex-shrink: 0;
}
.cgpa-row-grade-c:hover td {
    background: rgba(245, 158, 11, 0.12) !important;
}

.cgpa-row-grade-d {
    background: rgba(249, 115, 22, 0.05) !important;
}
.cgpa-row-grade-d td {
    border-top-color: rgba(249, 115, 22, 0.2) !important;
}
.cgpa-row-grade-d .cgpa-row-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ea580c;
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.8);
    margin-right: 10px;
    flex-shrink: 0;
}
.cgpa-row-grade-d:hover td {
    background: rgba(249, 115, 22, 0.12) !important;
}

.cgpa-row-grade-f {
    background: rgba(239, 68, 68, 0.05) !important;
}
.cgpa-row-grade-f td {
    border-top-color: rgba(239, 68, 68, 0.2) !important;
}
.cgpa-row-grade-f .cgpa-row-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
    margin-right: 10px;
    flex-shrink: 0;
}
.cgpa-row-grade-f:hover td {
    background: rgba(239, 68, 68, 0.12) !important;
}

/* Dynamic Live Glow on Input Subject Cards */
.cgpa-subject-row.glow-grade-a {
    border-color: rgba(16, 185, 129, 0.5) !important;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.14), inset 0 0 12px rgba(16, 185, 129, 0.04) !important;
}
.cgpa-subject-row.glow-grade-b {
    border-color: rgba(56, 189, 248, 0.5) !important;
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.14), inset 0 0 12px rgba(56, 189, 248, 0.04) !important;
}
.cgpa-subject-row.glow-grade-c {
    border-color: rgba(245, 158, 11, 0.5) !important;
    box-shadow: 0 4px 18px rgba(245, 158, 11, 0.14), inset 0 0 12px rgba(245, 158, 11, 0.04) !important;
}
.cgpa-subject-row.glow-grade-d {
    border-color: rgba(249, 115, 22, 0.5) !important;
    box-shadow: 0 4px 18px rgba(249, 115, 22, 0.14), inset 0 0 12px rgba(249, 115, 22, 0.04) !important;
}
.cgpa-subject-row.glow-grade-f {
    border-color: rgba(239, 68, 68, 0.5) !important;
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.14), inset 0 0 12px rgba(239, 68, 68, 0.04) !important;
}

/* ==========================================================================
   17. COMPREHENSIVE RESPONSIVE DESIGN (MOBILE, TABLET, LAPTOP, DESKTOP)
   ========================================================================== */

/* Tablet Portrait & Small Laptops (max-width: 991px) */
@media (max-width: 991px) {
    .container-fluid {
        padding: 0 20px 50px 20px;
    }
    .hero-action-matrix {
        grid-template-columns: repeat(2, 1fr);
    }
    .cgpa-results-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Devices & Phablets (max-width: 768px) */
@media (max-width: 768px) {
    /* Top Navbar */
    .top-nav {
        padding: 10px 14px;
        margin-bottom: 16px;
        border-radius: var(--radius-lg);
    }
    .university-nav-logo {
        height: 32px;
        margin-right: 8px !important;
    }
    .university-nav-name {
        font-size: 0.88rem;
        line-height: 1.25;
    }
    .header-badge {
        font-size: 0.72rem;
        padding: 2px 7px;
    }
    .burger-btn {
        width: 36px;
        height: 36px;
        margin-right: 8px !important;
    }
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    /* Container & Content Sections */
    .container-fluid {
        padding: 0 12px 48px 12px;
    }
    .content-container {
        padding: 18px 14px;
        border-radius: var(--radius-lg);
        margin-bottom: 20px;
    }
    .page-title {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }

    /* Bento Hero Card */
    .bento-hero-card {
        padding: 18px 14px;
    }
    .bento-hero-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }
    .bento-hero-title {
        font-size: 1.28rem;
        margin: 10px 0 6px;
    }
    .bento-hero-subtitle {
        font-size: 0.82rem;
        margin-bottom: 14px;
    }
    .hero-omni-search {
        padding: 8px 12px;
    }
    .hero-omni-search input {
        font-size: 0.82rem;
    }
    .hero-omni-search .kbd-shortcut {
        display: none;
    }

    /* Fast Action Matrix */
    .hero-action-matrix {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .hero-action-tile {
        padding: 10px 12px;
    }
    .hero-action-tile .tile-title {
        font-size: 0.84rem;
    }
    .hero-action-tile .tile-desc {
        font-size: 0.72rem;
    }

    /* Live Metrics Card */
    .bento-metrics-card {
        padding: 18px 14px;
    }
    .bento-stat-item {
        padding: 12px 14px;
    }
    .stat-label {
        font-size: 0.86rem;
    }
    .stat-value {
        font-size: 1.35rem;
    }

    /* Feature Cards */
    .bento-feature-card {
        padding: 18px 14px;
    }
    .feature-title {
        font-size: 1.05rem;
    }
    .feature-desc {
        font-size: 0.82rem;
    }

    /* Teacher Records Directory */
    .teacher-records-controls {
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px;
    }
    .teacher-search-box {
        width: 100% !important;
    }
    .teacher-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .teacher-card-wrapper {
        padding: 16px 14px;
    }
    .teacher-avatar-circle {
        width: 54px;
        height: 54px;
    }
    .teacher-name-title {
        font-size: 0.98rem;
    }
    .teacher-actions-wrap {
        flex-direction: column;
        gap: 8px;
    }
    .btn-view-schedule {
        width: 100%;
        justify-content: center;
    }

    /* Timetable Tables */
    .table-container {
        margin-left: -6px;
        margin-right: -6px;
        border-radius: var(--radius-md);
    }
    .table th, .table td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }
    .table-badge-day, .table-badge-subject, .table-badge-time {
        font-size: 0.72rem;
        padding: 3px 6px;
    }
    .quick-filter-container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .quick-filter-container .form-control {
        width: 100% !important;
    }

    /* CGPA Calculator */
    .cgpa-container-card {
        padding: 18px 14px;
    }
    .cgpa-header-wrap {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }
    .cgpa-header-title {
        font-size: 1.22rem;
    }
    .cgpa-mode-selector {
        width: 100%;
        display: flex;
    }
    .cgpa-mode-btn {
        flex: 1;
        padding: 7px 8px;
        font-size: 0.76rem;
        text-align: center;
    }
    .cgpa-subject-grid-header {
        display: none;
    }
    .cgpa-subject-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 14px 12px;
    }
    .cgpa-subject-row > div {
        width: 100%;
    }
    .cgpa-actions-bar {
        flex-direction: column;
        gap: 8px;
    }
    .btn-cgpa-primary, .btn-cgpa-secondary {
        width: 100%;
        justify-content: center;
    }
    .cgpa-results-summary {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .cgpa-metric-card {
        padding: 14px 16px;
    }
    .cgpa-metric-val {
        font-size: 1.55rem;
    }

    /* ShadowText Studio */
    .shadowtext-container {
        flex-direction: column;
        gap: 20px;
    }
    .shadowtext-controls, .shadowtext-preview {
        width: 100% !important;
    }
    .shadowtext-preview-canvas {
        max-width: 100%;
        height: auto;
    }
    .color-row {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* Compact Mobile Screens (max-width: 480px) */
@media (max-width: 480px) {
    .university-nav-name span {
        display: none;
    }
    .update-badge {
        display: none;
    }
    .session-badge {
        font-size: 0.68rem;
        padding: 2px 6px;
    }
    .bento-hero-title {
        font-size: 1.18rem;
    }
}

/* --------------------------------------------------------------------------
   14. MASTER TIMETABLE SUITE (SECTIONS, ROOMS, TEACHERS) — DARK BENTO DESIGN
   -------------------------------------------------------------------------- */
.tt-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}
.tt-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.tt-header-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.tt-icon-teacher {
    background: rgba(99, 102, 241, 0.14);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}
.tt-icon-section {
    background: rgba(56, 189, 248, 0.14);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.tt-icon-room {
    background: rgba(245, 158, 11, 0.14);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.tt-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}
.tt-page-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    margin-right: 12px;
    letter-spacing: -0.3px;
}
.tt-counter-badge {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
}
[data-bs-theme="light"] .tt-counter-badge {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
}
.tt-page-subtitle {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin: 4px 0 0 0;
}

.btn-tt-action {
    background: #141c2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}
[data-bs-theme="light"] .btn-tt-action {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}
.btn-tt-action:hover {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}
[data-bs-theme="light"] .btn-tt-action:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

/* Toolbar Bento Card */
.tt-toolbar-bento {
    background: #101726;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-2xl);
    padding: 16px 20px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
    transition: border-color 0.25s ease;
}
[data-bs-theme="light"] .tt-toolbar-bento {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}
.tt-toolbar-bento:hover {
    border-color: rgba(255, 255, 255, 0.16);
}
[data-bs-theme="light"] .tt-toolbar-bento:hover {
    border-color: rgba(0, 0, 0, 0.16);
}

.tt-toolbar-row {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}
.tt-search-wrap {
    min-width: 260px;
}
.tt-search-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tt-input-box {
    position: relative;
    width: 100%;
}
.tt-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 10;
}
.tt-select {
    width: 100%;
    height: 48px;
    background: #141c2e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    color: #f1f5f9;
    padding: 8px 16px 8px 44px;
    font-size: 0.92rem;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
}
[data-bs-theme="light"] .tt-select {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}
.tt-select:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    background: #172138;
}
[data-bs-theme="light"] .tt-select:focus {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn-tt-clear {
    height: 48px;
    padding: 0 20px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
[data-bs-theme="light"] .btn-tt-clear {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
}
.btn-tt-clear:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #f87171;
}

/* --------------------------------------------------------------------------
   SELECT2 DARK BENTO / SHADCN LUXURY THEME
   -------------------------------------------------------------------------- */
.tt-input-box .select2-container {
    width: 100% !important;
}

.tt-input-box .select2-container--default .select2-selection--single {
    height: 48px !important;
    background: #141c2e !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: var(--radius-lg) !important;
    display: flex !important;
    align-items: center !important;
    padding-left: 42px !important;
    padding-right: 14px !important;
    transition: all 0.2s ease !important;
}

[data-bs-theme="light"] .tt-input-box .select2-container--default .select2-selection--single {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
}

.tt-input-box .select2-container--default.select2-container--open .select2-selection--single,
.tt-input-box .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25) !important;
    background: #172138 !important;
}

[data-bs-theme="light"] .tt-input-box .select2-container--default.select2-container--open .select2-selection--single,
[data-bs-theme="light"] .tt-input-box .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
    background: #ffffff !important;
}

.tt-input-box .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #f8fafc !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    line-height: 46px !important;
    padding-left: 0 !important;
}

[data-bs-theme="light"] .tt-input-box .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #0f172a !important;
}

.tt-input-box .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

.tt-input-box .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px !important;
    right: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.tt-input-box .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #94a3b8 transparent transparent transparent !important;
    border-width: 5px 4px 0 4px !important;
}

.tt-input-box .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #818cf8 transparent !important;
    border-width: 0 4px 5px 4px !important;
}

.tt-input-box .select2-container--default .select2-selection--single .select2-selection__clear,
.select2-selection__clear {
    display: none !important;
}

/* Select2 Dropdown Menu */
.select2-dropdown {
    background: #141c2e !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.65) !important;
    z-index: 1060 !important;
    overflow: hidden !important;
}

[data-bs-theme="light"] .select2-dropdown {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.12) !important;
}

.select2-search--dropdown {
    padding: 10px 12px !important;
    background: #101726 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="light"] .select2-search--dropdown {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.select2-search--dropdown .select2-search__field {
    background: #172138 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    color: #f8fafc !important;
    padding: 8px 14px !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    outline: none !important;
}

[data-bs-theme="light"] .select2-search--dropdown .select2-search__field {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3) !important;
}

.select2-results__options {
    max-height: 260px !important;
    padding: 6px 0 !important;
}

.select2-results__option {
    padding: 9px 16px !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    color: #cbd5e1 !important;
    transition: all 0.15s ease !important;
}

[data-bs-theme="light"] .select2-results__option {
    color: #334155 !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: #ffffff !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background: rgba(99, 102, 241, 0.15) !important;
    color: #818cf8 !important;
    font-weight: 700 !important;
}

[data-bs-theme="light"] .select2-container--default .select2-results__option[aria-selected=true] {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #2563eb !important;
}


/* --------------------------------------------------------------------------
   TIMETABLE CARD & TABLE SYSTEM
   -------------------------------------------------------------------------- */
.tt-card {
    background: #101726;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-2xl);
    box-shadow: 0 12px 36px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    margin-bottom: 24px;
    transition: border-color 0.28s ease, box-shadow 0.28s ease;
}
[data-bs-theme="light"] .tt-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}
.tt-card:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 16px 42px -10px rgba(0, 0, 0, 0.6);
}
[data-bs-theme="light"] .tt-card:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

.tt-card-header {
    padding: 18px 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%), #141c2e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
[data-bs-theme="light"] .tt-card-header {
    background: #f8fafc;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.tt-card-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.tt-card-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.tt-icon-theme-teacher { background: rgba(99, 102, 241, 0.15); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }
.tt-icon-theme-section { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.tt-icon-theme-room { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

.tt-card-entity-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.2px;
}
.tt-card-meta-chips {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}
.tt-meta-pill {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
}

/* Day Filter Tabs */
.tt-day-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    padding: 3px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    gap: 2px;
    overflow-x: auto;
    max-width: 100%;
}
[data-bs-theme="light"] .tt-day-tabs {
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
}
.tt-day-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 7px;
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.tt-day-tab:hover {
    color: var(--text-primary);
}
.tt-day-tab.active {
    background: #6366f1;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

/* Timetable Table Styles (Zero Background Bleed) */
.tt-table-container {
    width: 100%;
    overflow: hidden;
    background: transparent;
}
.tt-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: transparent !important;
}
.tt-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    background: transparent !important;
}
.tt-table thead {
    background: #141c2e !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
[data-bs-theme="light"] .tt-table thead {
    background: #f1f5f9 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.tt-table th {
    padding: 14px 18px;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border: none;
    white-space: nowrap;
    background: transparent !important;
}
.tt-table tbody {
    background: transparent !important;
}
.tt-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.18s ease;
    background: transparent !important;
}
[data-bs-theme="light"] .tt-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.tt-table tbody tr:last-child {
    border-bottom: none;
}
.tt-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}
[data-bs-theme="light"] .tt-table tbody tr:hover {
    background: rgba(0, 0, 0, 0.02) !important;
}
.tt-table td {
    padding: 15px 18px;
    font-size: 0.88rem;
    color: var(--text-primary);
    vertical-align: middle;
    border: none;
    background: transparent !important;
}
.tt-table td:not(:nth-child(4)) {
    white-space: nowrap;
}

/* Day Badges */
.tt-day-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-align: center;
    min-width: 85px;
    white-space: nowrap !important;
}
.day-monday { background: rgba(99, 102, 241, 0.15); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }
.day-tuesday { background: rgba(6, 182, 212, 0.15); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.3); }
.day-wednesday { background: rgba(20, 184, 166, 0.15); color: #2dd4bf; border: 1px solid rgba(20, 184, 166, 0.3); }
.day-thursday { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.day-friday { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.day-saturday { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }
.day-sunday { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

/* Time Slot Pill */
.tt-timeslot-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--font-mono, monospace);
    color: var(--text-primary);
    white-space: nowrap !important;
    flex-shrink: 0;
}
[data-bs-theme="light"] .tt-timeslot-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

/* Interactive Clickable Pills */
.tt-pill-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap !important;
    flex-shrink: 0;
}
.tt-pill-room {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.25);
    white-space: nowrap !important;
}
.tt-pill-room:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fef08a;
    transform: translateY(-1px);
}
.tt-pill-teacher {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border-color: rgba(99, 102, 241, 0.25);
    white-space: nowrap !important;
}
.tt-pill-teacher:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    color: #c7d2fe;
    transform: translateY(-1px);
}
.tt-pill-groups {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.2);
    cursor: default;
    white-space: nowrap !important;
}
.tt-subject-title {
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

/* Empty & Loading States */
.tt-empty-card {
    background: #101726;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-2xl);
    padding: 60px 24px;
    text-align: center;
    margin: 20px 0;
}
[data-bs-theme="light"] .tt-empty-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.tt-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 18px;
}
.tt-empty-card h4 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.tt-empty-card p {
    max-width: 480px;
    margin: 0 auto;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.tt-loading-state {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

/* ==========================================================================
   TEACHER RECORDS DIRECTORY - DARK BENTO & SHADCN SYSTEM
   ========================================================================== */

.tr-toolbar-bento {
    background: #101726;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 16px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
[data-bs-theme="light"] .tr-toolbar-bento {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.tr-toolbar-grid {
    display: grid;
    grid-template-columns: 2fr 1.3fr 1.3fr 1.1fr auto;
    gap: 14px;
    align-items: flex-end;
}

@media (max-width: 1200px) {
    .tr-toolbar-grid {
        grid-template-columns: 1fr 1fr;
    }
    .tr-search-box {
        grid-column: span 2;
    }
    .tr-action-box {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .tr-toolbar-grid {
        grid-template-columns: 1fr;
    }
    .tr-search-box, .tr-action-box {
        grid-column: span 1;
    }
}

.tr-field-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tr-field-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    display: flex;
    align-items: center;
}

.tr-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.tr-input-icon {
    position: absolute;
    left: 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 2;
}

.tr-input,
.tr-select {
    width: 100%;
    height: 42px;
    background: #141c2e !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    color: #f8fafc !important;
    padding: 0 14px 0 38px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    outline: none !important;
    box-shadow: none !important;
}

[data-bs-theme="light"] .tr-input,
[data-bs-theme="light"] .tr-select {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

.tr-input:focus,
.tr-select:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
}

.tr-input::placeholder {
    color: #64748b !important;
    font-weight: 500;
}

.tr-action-box {
    display: flex;
    align-items: flex-end;
}

.btn-tr-clear {
    height: 42px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    width: 100%;
}

.btn-tr-clear:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

[data-bs-theme="light"] .btn-tr-clear {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

[data-bs-theme="light"] .btn-tr-clear:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

/* Faculty Bento Cards */
.tr-bento-card {
    --card-accent: var(--tr-theme-color, #6366f1);
    --card-glow: var(--tr-glow-color, rgba(99, 102, 241, 0.4));
    background: #101726;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.tr-bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent);
    opacity: 0.85;
    transition: all 0.28s ease;
}

.tr-bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--card-accent) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 28px var(--card-glow) !important;
}

.tr-bento-card:hover::before {
    height: 4px;
    box-shadow: 0 0 14px var(--card-accent);
}

[data-bs-theme="light"] .tr-bento-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-bs-theme="light"] .tr-bento-card:hover {
    border-color: var(--card-accent) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08), 0 0 24px var(--card-glow) !important;
}

/* Card Header */
.tr-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.tr-avatar-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.tr-avatar-initials {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.tr-header-meta {
    flex: 1;
    min-width: 0;
}

.tr-name-row {
    margin-bottom: 4px;
}

.tr-faculty-name {
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
}

.tr-designation-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.22);
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 9px;
    margin-bottom: 8px;
    white-space: nowrap;
}

[data-bs-theme="light"] .tr-designation-pill {
    background: #eef2ff;
    color: #4f46e5;
    border-color: #c7d2fe;
}

.tr-telemetry-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tr-telemetry-chip {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

[data-bs-theme="light"] .tr-telemetry-chip {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

/* Workload Telemetry Badges */
.tr-workload-chip {
    font-size: 0.72rem;
    font-weight: 800;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.2px;
}
.tr-workload-chip.workload-heavy {
    background: rgba(244, 63, 94, 0.18);
    color: #fda4af;
    border: 1px solid rgba(244, 63, 94, 0.45);
}
.tr-workload-chip.workload-moderate {
    background: rgba(129, 140, 248, 0.18);
    color: #c7d2fe;
    border: 1px solid rgba(129, 140, 248, 0.45);
}
.tr-workload-chip.workload-standard {
    background: rgba(56, 189, 248, 0.18);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.45);
}
.tr-workload-chip.workload-light {
    background: rgba(52, 211, 153, 0.18);
    color: #a7f3d0;
    border: 1px solid rgba(52, 211, 153, 0.45);
}
.tr-workload-chip.workload-visiting {
    background: rgba(168, 85, 247, 0.18);
    color: #e9d5ff;
    border: 1px solid rgba(168, 85, 247, 0.45);
}

/* Meta Grid */
.tr-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.tr-meta-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}

[data-bs-theme="light"] .tr-meta-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.tr-meta-val {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Section & Course Blocks */
.tr-section-block {
    margin-bottom: 12px;
}

.tr-block-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.tr-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tr-chip-course {
    background: rgba(56, 189, 248, 0.08);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    white-space: normal;
    word-break: break-word;
}

[data-bs-theme="light"] .tr-chip-course {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #bae6fd;
}

.tr-chip-section {
    background: rgba(16, 185, 129, 0.08);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.22);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    text-decoration: none;
}

.tr-chip-section:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: rgba(16, 185, 129, 0.55);
    color: #a7f3d0;
    transform: translateY(-1px);
}

[data-bs-theme="light"] .tr-chip-section {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

[data-bs-theme="light"] .tr-chip-section:hover {
    background: #d1fae5;
    color: #065f46;
}

/* Card Actions Footer */
.tr-card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

[data-bs-theme="light"] .tr-card-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.btn-tr-schedule {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-tr-schedule:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.45);
}

.btn-tr-contact {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-tr-contact:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

[data-bs-theme="light"] .btn-tr-contact {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155 !important;
}

[data-bs-theme="light"] .btn-tr-contact:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

/* ==========================================================================
   16. ACADEMIC SCHEDULE INTELLIGENCE & FREE SLOT ANALYZER (DARK BENTO SYSTEM)
   ========================================================================== */

.si-header-bento {
    background: linear-gradient(135deg, rgba(16, 23, 38, 0.95) 0%, rgba(15, 23, 42, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.si-header-bento::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8, #818cf8, #34d399);
}

[data-bs-theme="light"] .si-header-bento {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.si-header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.si-header-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.25);
    flex-shrink: 0;
}

.si-header-badge {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #38bdf8;
    margin-bottom: 4px;
}

.si-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.si-page-title {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    letter-spacing: -0.5px;
}

.si-counter-badge {
    background: rgba(56, 189, 248, 0.15);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.35);
    font-size: 0.76rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 9999px;
}

.si-page-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
}

.btn-si-export {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.25) 100%);
    color: #6ee7b7 !important;
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 10px 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}

.btn-si-export:hover {
    background: rgba(16, 185, 129, 0.3);
    color: #ffffff !important;
    border-color: rgba(16, 185, 129, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

[data-bs-theme="light"] .btn-si-export {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #047857 !important;
}

/* Telemetry Cards */
.si-telemetry-card {
    background: #101726;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.25s ease;
}

.si-telemetry-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="light"] .si-telemetry-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.si-telemetry-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.si-telemetry-icon.icon-gaps {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.si-telemetry-icon.icon-free {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.si-telemetry-icon.icon-busy {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.si-telemetry-icon.icon-total {
    background: rgba(129, 140, 248, 0.15);
    color: #818cf8;
    border: 1px solid rgba(129, 140, 248, 0.3);
}

.si-telemetry-val {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.1;
}

.si-telemetry-lbl {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Toolbar & Segmented Control */
.si-toolbar-bento {
    background: #101726;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 18px 22px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

[data-bs-theme="light"] .si-toolbar-bento {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.si-segment-control {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 16px;
    gap: 4px;
    flex-wrap: wrap;
}

[data-bs-theme="light"] .si-segment-control {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.si-segment-btn {
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.si-segment-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.si-segment-btn.active {
    background: #6366f1;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.si-filters-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.4fr 1.4fr auto;
    gap: 12px;
    align-items: flex-end;
}

@media (max-width: 1200px) {
    .si-filters-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .si-filters-grid {
        grid-template-columns: 1fr;
    }
}

.si-field-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.si-field-label {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    display: flex;
    align-items: center;
}

.si-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.si-input-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.si-input, .si-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 8px 12px 8px 34px;
    font-size: 0.84rem;
    font-weight: 600;
    outline: none;
    transition: all 0.2s ease;
    color-scheme: dark;
}

.si-select option {
    background-color: #1e293b !important;
    color: #f8fafc !important;
    padding: 8px 12px !important;
}

.si-input:focus, .si-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="light"] .si-input, [data-bs-theme="light"] .si-select {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    color-scheme: light;
}

[data-bs-theme="light"] .si-select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

.btn-si-reset {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-si-reset:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ffffff;
}

/* Bento Results Cards */
.si-bento-card {
    background: #101726;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.si-bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
}

.si-bento-card:hover {
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 24px rgba(99, 102, 241, 0.15);
}

[data-bs-theme="light"] .si-bento-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.si-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-bs-theme="light"] .si-card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.si-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.si-entity-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.si-tags-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.si-category-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
}

.si-gaps-pill {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
}

.si-workload-pill {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
}

[data-bs-theme="light"] .si-workload-pill {
    background: #fef3c7;
    border-color: #fde68a;
    color: #d97706;
}

.btn-si-quick-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-si-quick-link:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    border-color: rgba(99, 102, 241, 0.4);
    transform: scale(1.05);
}

/* Day Groups & Timeline Slots */
.si-day-group {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
}

[data-bs-theme="light"] .si-day-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.si-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.si-day-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-primary);
}

.si-day-telemetry {
    display: flex;
    align-items: center;
    gap: 6px;
}

.si-mini-tag {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
}

.si-mini-tag.tag-classes {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.si-mini-tag.tag-gaps {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.si-mini-tag.tag-status-free {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.si-mini-tag.tag-status-busy {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.si-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.si-slot-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    gap: 10px;
}

.si-slot-pill.slot-occupied {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

[data-bs-theme="light"] .si-slot-pill.slot-occupied {
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.si-slot-time {
    font-weight: 800;
    white-space: nowrap;
    color: var(--text-primary);
    font-size: 0.76rem;
}

.si-slot-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.si-slot-subject {
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.si-slot-details-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.si-slot-detail-item {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
}

.si-slot-dur {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

/* High-Contrast Neon In-Between Free Gap */
.si-slot-pill.slot-gap {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px dashed rgba(16, 185, 129, 0.45);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.12);
    animation: gapGlowPulse 3s infinite ease-in-out;
}

@keyframes gapGlowPulse {
    0%, 100% {
        border-color: rgba(16, 185, 129, 0.4);
        box-shadow: 0 0 12px rgba(16, 185, 129, 0.1);
    }
    50% {
        border-color: rgba(56, 189, 248, 0.7);
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
    }
}

[data-bs-theme="light"] .si-slot-pill.slot-gap {
    background: #ecfdf5;
    border-color: #6ee7b7;
}

.si-slot-gap-title {
    font-size: 0.72rem;
    font-weight: 800;
    color: #34d399;
    letter-spacing: 0.4px;
}

.si-slot-gap-sub {
    font-size: 0.7rem;
    color: #6ee7b7;
}

.si-gap-badge {
    background: #10b981;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

.si-slot-pill.slot-all-free {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    justify-content: flex-start;
}

[data-bs-theme="light"] .si-slot-pill.slot-all-free {
    background: #f8fafc;
    border-color: #e2e8f0;
}


