/* ==========================================================
   NSK Mock Exam Portal - Professional Design System
   Netritva Sadhana Kendra Foundation | Evalon TechLabs
   ========================================================== */

/* --- Google Fonts: Inter + Noto Sans Devanagari (Hindi) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+Devanagari:wght@400;500;600;700;800&display=swap');

:root {
    /* === Brand Colors === */
    --primary: #5B21B6;
    --primary-light: #7C3AED;
    --primary-ultra-light: #EDE9FE;
    --primary-hover: #4C1D95;
    --primary-glow: rgba(91, 33, 182, 0.15);

    /* === Accent Colors === */
    --accent-gold: #D97706;
    --accent-gold-light: #FEF3C7;
    --accent-emerald: #059669;
    --accent-emerald-light: #D1FAE5;
    --accent-rose: #DC2626;
    --accent-rose-light: #FEE2E2;
    --accent-blue: #2563EB;
    --accent-blue-light: #DBEAFE;

    /* === Neutral Palette === */
    --bg: #F5F3FF;
    --bg-secondary: #FAFAFA;
    --surface: #FFFFFF;
    --surface-raised: #FDFDFD;
    --text-main: #1E1B4B;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --border: #E5E7EB;
    --border-light: #F3F4F6;

    /* === Layout === */
    --sidebar-width: 256px;
    --topbar-height: 68px;
    --footer-height: 72px;

    /* === Effects === */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-primary: 0 4px 14px rgba(91, 33, 182, 0.25);
    --radius: 0.75rem;
    --radius-sm: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;

    /* === Legacy Compatibility === */
    --secondary: var(--text-muted);
    --dark: var(--text-main);
    --light: var(--bg);
    --white: var(--surface);
    --error: var(--accent-rose);
    --danger: var(--accent-rose);
    --success: var(--accent-emerald);
    --warning: var(--accent-gold);
}

/* === Reset === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === Base === */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans Devanagari', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   BILINGUAL TEXT UTILITIES
   ============================================================ */
.text-hi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-weight: 600;
    display: block;
    line-height: 1.4;
}

.text-en {
    display: block;
    font-size: 0.78em;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.3;
    margin-top: 1px;
}

.label-hi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-weight: 600;
}

.label-en {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.85em;
}

.bilingual {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* ============================================================
   TOP NAVIGATION BAR
   ============================================================ */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Logo */
.logo {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-fast);
}

.logo:hover {
    opacity: 0.85;
}

.logo-icon-wrap {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-primary);
    flex-shrink: 0;
}

.logo-icon-wrap svg {
    stroke: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.3px;
}

.logo-title-hi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.logo-subtitle {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
    margin-left: -0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.hamburger:hover {
    background: var(--bg);
}

/* Nav Right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.user-info-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 0.35rem 0.875rem 0.35rem 0.5rem;
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.user-email {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.8125rem;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8125rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition-fast);
}

.logout-btn:hover {
    color: var(--accent-rose);
    border-color: var(--accent-rose);
    background: var(--accent-rose-light);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    z-index: 900;
    transition: var(--transition);
    overflow-y: auto;
}

.sidebar-section-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 0 0.75rem;
    margin: 1rem 0 0.375rem;
}

.sidebar-section-label:first-child {
    margin-top: 0;
}

.sidebar-divider {
    height: 1px;
    background: var(--border-light);
    margin: 0.75rem 0.75rem;
}

.sidebar-nav {
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition-fast);
    position: relative;
}

.nav-item a:hover {
    background: var(--bg);
    color: var(--primary);
}

.nav-item.active a {
    background: var(--primary-ultra-light);
    color: var(--primary);
    font-weight: 700;
}

.nav-item.active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
}

.nav-label {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1;
}

.nav-label .hi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}

.nav-label .en {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-light);
    line-height: 1.2;
}

.nav-item.active a .nav-label .en {
    color: var(--primary);
    opacity: 0.7;
}

/* Sidebar Footer */
.sidebar-footer {
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

/* Icon Styles */
.icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 850;
    display: none;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
main {
    margin-top: var(--topbar-height);
    padding: 2rem;
    min-height: calc(100vh - var(--topbar-height) - var(--footer-height));
    transition: var(--transition);
}

main.with-sidebar {
    margin-left: var(--sidebar-width);
}

/* ============================================================
   EXAM MODE — Reset all base layout styles
   Applied when body.exam-mode is set (show_sidebar=False)
   ============================================================ */
body.exam-mode {
    overflow: hidden !important;
    background: #0F172A !important;
}

body.exam-mode main,
body.exam-mode main.exam-main,
body.exam-mode #main-content {
    margin: 0 !important;
    padding: 0 !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    min-height: unset !important;
    height: 100vh !important;
    width: 100vw !important;
    max-width: none !important;
    overflow: hidden !important;
    background: transparent !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.page-footer {
    padding: 1.25rem 2rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
    transition: var(--transition);
}

.page-footer.with-sidebar {
    margin-left: var(--sidebar-width);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}

.footer-main {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-main-hi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.footer-sub {
    font-size: 0.7rem;
    color: var(--text-light);
}

.footer-brand {
    color: var(--primary);
    font-weight: 700;
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-container {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
}

.flash-message {
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 4px solid transparent;
    box-shadow: var(--shadow-xs);
}

.flash-success {
    background: var(--accent-emerald-light);
    color: #065F46;
    border-left-color: var(--accent-emerald);
}

.flash-error {
    background: var(--accent-rose-light);
    color: #7F1D1D;
    border-left-color: var(--accent-rose);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.card-interactive:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
    color: var(--text-main);
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    gap: 0.5rem;
    text-align: center;
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(91, 33, 182, 0.35);
}

.btn-outline {
    background: var(--surface);
    border: 1.5px solid var(--border);
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-ultra-light);
}

.btn-full {
    width: 100%;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-indigo {
    background: var(--primary-ultra-light);
    color: var(--primary);
}

.badge-emerald {
    background: var(--accent-emerald-light);
    color: #065F46;
}

.badge-slate {
    background: #F1F5F9;
    color: #475569;
}

.badge-gold {
    background: var(--accent-gold-light);
    color: #92400E;
}

.badge-rose {
    background: var(--accent-rose-light);
    color: #991B1B;
}

/* ============================================================
   STATUS BADGES (for result pages)
   ============================================================ */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-pill-in-progress {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
}

.status-pill-completed {
    background: var(--accent-emerald-light);
    color: #065F46;
    border: 1px solid #6EE7B7;
}

.status-pill-failed {
    background: var(--accent-rose-light);
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot-in-progress {
    background: #F59E0B;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.status-dot-completed {
    background: var(--accent-emerald);
}

.status-dot-failed {
    background: var(--accent-rose);
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* ============================================================
   PENDING ALERT COMPONENT
   ============================================================ */
.pending-alert {
    background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
    border: 1px solid #FCD34D;
    border-left: 4px solid #F59E0B;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}

.pending-alert-icon {
    width: 36px;
    height: 36px;
    background: #FEF3C7;
    border: 1px solid #FCD34D;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.pending-alert-body {
    flex: 1;
}

.pending-alert-title {
    font-weight: 700;
    color: #92400E;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.pending-alert-title .hi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    display: block;
}

.pending-alert-title .en {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.8;
}

.pending-alert-text {
    font-size: 0.8125rem;
    color: #92400E;
    opacity: 0.85;
}

.pending-alert-text .hi {
    font-family: 'Noto Sans Devanagari', sans-serif;
    display: block;
    margin-bottom: 2px;
}

.pending-alert-text .en {
    display: block;
}

.pending-alert-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.8125rem;
}

.pending-alert-link:hover {
    text-decoration: underline;
}

/* ============================================================
   TEST ENVIRONMENT
   ============================================================ */
.test-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

.question-pane {
    position: relative;
    min-height: 600px;
}

.nav-pane {
    position: sticky;
    top: 5rem;
}

.timer-box {
    background: var(--text-main);
    color: var(--surface);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
}

.option-btn {
    width: 100%;
    text-align: left;
    padding: 1.25rem;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    background: var(--surface);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    font-family: inherit;
}

.option-btn:hover {
    border-color: var(--primary);
    background: var(--primary-ultra-light);
}

.option-btn.selected {
    border-color: var(--primary);
    background: var(--primary-ultra-light);
    box-shadow: 0 0 0 1px var(--primary);
}

.opt-label {
    min-width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
}

.option-btn.selected .opt-label {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Question Map */
.q-map-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.q-map-btn {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    font-weight: 700;
    font-size: 0.8125rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.q-map-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.q-map-btn.current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.q-map-btn.answered {
    background: var(--accent-emerald);
    color: white;
    border-color: var(--accent-emerald);
}

.textarea-workspace {
    width: 100%;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    font-size: 1.0625rem;
    color: var(--text-main);
    line-height: 1.7;
    transition: var(--transition);
    background: var(--bg);
    resize: vertical;
    min-height: 300px;
    font-family: inherit;
}

.textarea-workspace:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 4px var(--primary-ultra-light);
}

.info-box {
    padding: 1.25rem;
    border-radius: var(--radius);
    background: var(--primary-ultra-light);
    border: 1px solid var(--primary);
    color: var(--primary);
}

.info-box-success {
    background: var(--accent-emerald-light);
    border-color: var(--accent-emerald);
    color: #065F46;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.hidden {
    display: none !important;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.text-center {
    text-align: center;
}

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

.font-bold {
    font-weight: 700;
}

.font-black {
    font-weight: 900;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 1rem;
}

.w-full {
    width: 100%;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-4 {
    gap: 1rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-2 {
    gap: 0.5rem;
}

.flex-col {
    flex-direction: column;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.leading-relaxed {
    line-height: 1.625;
}

.block {
    display: block;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.uppercase {
    text-transform: uppercase;
}

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

.text-dark {
    color: var(--text-main);
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.italic {
    font-style: italic;
}

.divide-y>*+* {
    border-top: 1px solid var(--border-light);
}

.divide-slate-100>*+* {
    border-top: 1px solid #F1F5F9;
}

.overflow-x-auto {
    overflow-x: auto;
}

.min-w-\[200px\] {
    min-width: 200px;
}

.max-w-xs {
    max-width: 20rem;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tailwind-ish color utilities used in result pages */
.bg-white {
    background-color: white;
}

.bg-slate-50 {
    background-color: #F8FAFC;
}

.bg-amber-50 {
    background-color: #FFFBEB;
}

.bg-indigo-50 {
    background-color: #EEF2FF;
}

.border-slate-200 {
    border-color: #E2E8F0;
}

.border-amber-400 {
    border-color: #FBBF24;
}

.border-indigo-100 {
    border-color: #E0E7FF;
}

.text-amber-800 {
    color: #92400E;
}

.text-amber-700 {
    color: #B45309;
}

.text-amber-400 {
    color: #FBBF24;
}

.text-indigo-900 {
    color: #312E81;
}

.text-indigo-400 {
    color: #818CF8;
}

.text-indigo-600 {
    color: #4F46E5;
}

.text-indigo-800 {
    color: #3730A3;
}

.text-emerald-500 {
    color: #10B981;
}

.text-emerald-900 {
    color: #064E3B;
}

.text-emerald-600 {
    color: #059669;
}

.text-rose-600 {
    color: #DC2626;
}

.text-slate-400 {
    color: #94A3B8;
}

.text-slate-700 {
    color: #334155;
}

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

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-r-lg {
    border-radius: 0 0.5rem 0.5rem 0;
}

.shadow-sm {
    box-shadow: var(--shadow-sm);
}

.overflow-hidden {
    overflow: hidden;
}

.w-full {
    width: 100%;
}

.text-left {
    text-align: left;
}

.border-collapse {
    border-collapse: collapse;
}

.border-b {
    border-bottom: 1px solid var(--border);
}

.border {
    border: 1px solid var(--border);
}

.p-4 {
    padding: 1rem;
}

.p-3 {
    padding: 0.75rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mt-12 {
    margin-top: 3rem;
}

.ml-3 {
    margin-left: 0.75rem;
}

.ml-auto {
    margin-left: auto;
}

.gap-x-4 {
    column-gap: 1rem;
}

.gap-y-2 {
    row-gap: 0.5rem;
}

.gap-5 {
    gap: 1.25rem;
}

.flex-wrap {
    flex-wrap: wrap;
}

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

.flex-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1;
}

.h-6 {
    height: 1.5rem;
}

.w-6 {
    width: 1.5rem;
}

.pt-3 {
    padding-top: 0.75rem;
}

.border-t {
    border-top: 1px solid var(--border);
}

.items-start {
    align-items: flex-start;
}

.last\:mb-0:last-child {
    margin-bottom: 0;
}

.hover\:bg-slate-50\/50:hover {
    background-color: rgba(248, 250, 252, 0.5);
}

.transition-colors {
    transition: background-color 0.15s ease;
}

.align-top {
    vertical-align: top;
}

.font-black {
    font-weight: 900;
}

.text-base {
    font-size: 1rem;
}

.leading-snug {
    line-height: 1.375;
}

.text-\[10px\] {
    font-size: 10px;
}

.text-\[11px\] {
    font-size: 11px;
}

.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.bg-red-50 {
    background: #FEF2F2;
}

.text-red-500 {
    color: #EF4444;
}

.bg-indigo-50\/50 {
    background: rgba(238, 242, 255, 0.5);
}

.border-indigo-100\/50 {
    border-color: rgba(224, 231, 255, 0.5);
}

.cursor-zoom-in {
    cursor: zoom-in;
}

.h-auto {
    height: auto;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.border-dashed {
    border-style: dashed;
}

.border-2 {
    border-width: 2px;
}

.border-slate-200 {
    border-color: #E2E8F0;
}

.opacity-50 {
    opacity: 0.5;
}

.font-bold {
    font-weight: 700;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--surface);
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-ultra-light);
}

/* ============================================================
   RESPONSIVE - MOBILE (< 992px)
   ============================================================ */
@media (max-width: 991px) {
    .hamburger {
        display: block;
    }

    .sidebar {
        top: 0;
        transform: translateX(-100%);
        height: 100vh;
        width: 280px;
        box-shadow: var(--shadow-lg);
        padding-top: calc(var(--topbar-height) + 1rem);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar.open+.sidebar-overlay {
        display: block;
    }

    main.with-sidebar {
        margin-left: 0;
    }

    .page-footer.with-sidebar {
        margin-left: 0;
    }

    main {
        padding: 1.25rem 1rem;
    }

    .user-info-pill {
        display: none;
    }

    .user-email {
        display: none;
    }

    .logo-title-hi {
        display: none;
    }
}

@media (max-width: 640px) {
    .top-navbar {
        padding: 0 1rem;
    }

    main {
        padding: 1rem 0.875rem;
    }
}