/* <style> */
    :root {
      --bg: #06060f;
      --bg2: #0a0a1a;
      --bg3: #0f0f24;
      --panel: rgba(255, 255, 255, 0.04);
      --panel2: rgba(255, 255, 255, 0.07);
      --border: rgba(255, 255, 255, 0.09);
      --border-v: rgba(124, 58, 237, 0.28);
      --v1: #7c3aed;
      --v2: #a78bfa;
      --v3: #c4b5fd;
      --b1: #3b82f6;
      --b2: #93c5fd;
      --c1: #06b6d4;
      --c2: #67e8f9;
      --am: #f59e0b;
      --gr: #10b981;
      --ro: #f43f5e;
      --txt: rgba(255, 255, 255, 0.88);
      --muted: rgba(255, 255, 255, 0.52);
      --dim: rgba(255, 255, 255, 0.24);
      --sidebar: 200px;
    }

    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { background: var(--bg); color: var(--txt); font-family: 'Inter', sans-serif; overflow-x: hidden; min-height: 100vh; }
    h1, h2, h3, h4, h5 { font-family: 'Poppins', sans-serif; }

    /* ─── SCROLLBAR ─── */
    ::-webkit-scrollbar { width: 5px; height: 5px; }
    ::-webkit-scrollbar-track { background: var(--bg2); }
    ::-webkit-scrollbar-thumb { background: var(--v1); border-radius: 4px; }

    /* ─── PAGE SYSTEM ─── */
    .page { display: none; }
    .page.active { display: block; }
    .full-page { display: none; min-height: 100vh; }
    .full-page.active { display: flex; }

    /* ─── BG ELEMENTS ─── */
    .bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
    .bg-orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .18; }
    .bo1 { width: 600px; height: 600px; background: var(--v1); top: -200px; left: -200px; animation: orbAnim 20s ease-in-out infinite alternate; }
    .bo2 { width: 400px; height: 400px; background: var(--b1); bottom: -100px; right: -100px; animation: orbAnim 15s ease-in-out infinite alternate-reverse; }
    .bo3 { width: 300px; height: 300px; background: var(--c1); top: 40%; left: 60%; animation: orbAnim 18s ease-in-out infinite alternate; }

    @keyframes orbAnim {
      from { transform: translate(0, 0) scale(1); }
      to { transform: translate(60px, 40px) scale(1.15); }
    }

    /* ─── BUTTONS ─── */
    .btn { font-family: 'Poppins', sans-serif; font-weight: 600; border: none; cursor: pointer; transition: all .25s; display: inline-flex; align-items: center; gap: 7px; border-radius: 8px; }
    .btn-v { background: linear-gradient(135deg, var(--v1), var(--b1)); color: white; padding: 10px 20px; font-size: .85rem; box-shadow: 0 4px 18px rgba(124, 58, 237, .35); }
    .btn-v:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(124, 58, 237, .5); }
    .btn-sm { padding: 7px 14px; font-size: .76rem; }
    .btn-out { background: transparent; color: var(--v2); border: 1px solid var(--border-v); padding: 8px 16px; font-size: .8rem; }
    .btn-out:hover { background: rgba(124, 58, 237, .1); }
    .btn-danger { background: rgba(244, 63, 94, .15); color: #fda4af; border: 1px solid rgba(244, 63, 94, .3); padding: 7px 14px; font-size: .76rem; }
    .btn-danger:hover { background: rgba(244, 63, 94, .25); }
    .btn-success { background: rgba(16, 185, 129, .15); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, .3); padding: 7px 14px; font-size: .76rem; }
    .btn-success:hover { background: rgba(16, 185, 129, .25); }
    .btn-full { width: 100%; justify-content: center; padding: 13px; }
    .btn-icon { width: 34px; height: 34px; padding: 0; justify-content: center; align-items: center; font-size: .9rem; }

    /* ─── FORMS ─── */
    .form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
    .form-label { font-size: .75rem; font-weight: 600; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
    .form-input { background: rgba(255, 255, 255, .05); border: 1px solid var(--border); border-radius: 9px; padding: 11px 14px; color: var(--txt); font-family: 'Inter', sans-serif; font-size: .9rem; outline: none; transition: all .25s; width: 100%; }
    .form-input:focus { border-color: rgba(124, 58, 237, .6); background: rgba(124, 58, 237, .07); }
    .form-input::placeholder { color: var(--dim); }
    select.form-input option { background: #0f0f24; color: white; }

    /* ─── CARDS ─── */
    .card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
    .card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
    .card-title { font-family: 'Poppins', sans-serif; font-size: .95rem; font-weight: 700; color: white; }
    .card-sub { font-size: .75rem; color: var(--muted); margin-top: 3px; }

    /* ─── BADGES ─── */
    .badge { display: inline-flex; align-items: center; gap: 4px; font-size: .63rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; border: 1px solid; }
    .badge-v { border-color: var(--border-v); color: var(--v2); background: rgba(124, 58, 237, .1); }
    .badge-b { border-color: rgba(59, 130, 246, .3); color: var(--b2); background: rgba(59, 130, 246, .08); }
    .badge-g { border-color: rgba(16, 185, 129, .3); color: #6ee7b7; background: rgba(16, 185, 129, .08); }
    .badge-r { border-color: rgba(244, 63, 94, .3); color: #fda4af; background: rgba(244, 63, 94, .08); }
    .badge-a { border-color: rgba(245, 158, 11, .3); color: #fde68a; background: rgba(245, 158, 11, .08); }
    .badge-c { border-color: rgba(6, 182, 212, .3); color: var(--c2); background: rgba(6, 182, 212, .08); }

    /* ─── PROGRESS BAR ─── */
    .progress-wrap { background: rgba(255, 255, 255, .08); border-radius: 20px; height: 7px; overflow: hidden; }
    .progress-fill { height: 100%; border-radius: 20px; transition: width .6s ease; }

    /* ─── STAT CARD ─── */
    .stat-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; transition: all .3s; }
    .stat-card:hover { border-color: rgba(124, 58, 237, .3); transform: translateY(-3px); }
    .stat-num { font-family: 'Poppins', sans-serif; font-size: 1.9rem; font-weight: 800; line-height: 1; }
    .stat-lbl { font-size: .72rem; font-weight: 500; color: var(--muted); margin-top: 4px; letter-spacing: .04em; }

    /* ─── TABLE ─── */
    .tbl { width: 100%; border-collapse: collapse; }
    .tbl th, .tbl td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
    .tbl th { font-family: 'Poppins', sans-serif; font-size: .68rem; font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
    .tbl td { font-size: .82rem; color: var(--txt); }
    .tbl tbody tr:hover { background: var(--panel); }
    .tbl tbody tr:last-child td { border-bottom: none; }

    /* ─── TABS ─── */
    .tabs { display: flex; gap: 4px; background: rgba(255, 255, 255, .04); border-radius: 10px; padding: 4px; max-width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
    .tab { padding: 8px 16px; border-radius: 8px; font-size: .8rem; font-weight: 600; cursor: pointer; transition: all .22s; color: var(--muted); flex: 0 0 auto; white-space: nowrap; }
    .tab.active { background: var(--v1); color: white; }
    .tab:hover:not(.active) { background: rgba(255, 255, 255, .06); color: var(--txt); }

    /* ═══════════════════════════════════════
    LOGIN PAGE
  ═══════════════════════════════════════ */
    #login-page { background: var(--bg); align-items: center; justify-content: center; padding: 20px; }
    .login-wrap { width: 100%; max-width: 440px; position: relative; z-index: 2; }
    .login-logo { text-align: center; margin-bottom: 32px; }
    .login-logo-text { font-family: 'Poppins', sans-serif; font-size: 1.8rem; font-weight: 800; background: linear-gradient(135deg, #fff, var(--v3), var(--c2)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
    .login-logo-sub { font-size: .75rem; color: var(--muted); margin-top: 4px; letter-spacing: .06em; text-transform: uppercase; }
    .login-card { background: rgba(255, 255, 255, .05); border: 1px solid var(--border-v); border-radius: 20px; padding: 40px; position: relative; overflow: hidden; box-shadow: 0 32px 80px rgba(124, 58, 237, .15); }
    .login-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--v1), var(--c1), var(--v2), var(--b1)); background-size: 200% 100%; animation: shimmer 4s linear infinite; }

    @keyframes shimmer { to { background-position: 200% center; } }

    .login-title { font-size: 1.3rem; font-weight: 700; color: white; margin-bottom: 6px; }
    .login-sub { font-size: .82rem; color: var(--muted); margin-bottom: 28px; }
    .otp-row { display: flex; gap: 8px; }
    .otp-input { width: 46px; height: 46px; text-align: center; font-size: 1.2rem; font-weight: 700; background: rgba(255, 255, 255, .06); border: 1px solid var(--border); border-radius: 9px; color: white; outline: none; transition: all .25s; }
    .otp-input:focus { border-color: rgba(124, 58, 237, .6); background: rgba(124, 58, 237, .08); }
    .login-msg { font-size: .78rem; color: rgba(144, 202, 249, .8); background: rgba(59, 130, 246, .08); border: 1px solid rgba(59, 130, 246, .2); border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; display: none; }
    .login-msg.show { display: block; }
    .login-msg.error { color: #fda4af; background: rgba(244, 63, 94, .08); border-color: rgba(244, 63, 94, .2); }

    /* ═══════════════════════════════════════
    APP SHELL (sidebar + content)
  ═══════════════════════════════════════ */
    #app-shell { display: none; min-height: 100vh; }
    #app-shell.active { display: flex; }
    .sidebar { width: var(--sidebar); background: rgba(0, 0, 0, .4); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 50; backdrop-filter: blur(20px); }
    .sidebar-logo { padding: 20px 18px; border-bottom: 1px solid var(--border); }
    .sb-logo-text { font-family: 'Poppins', sans-serif; font-size: .95rem; font-weight: 800; background: linear-gradient(135deg, #fff, var(--v3)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
    .sb-logo-sub { font-size: .58rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
    .sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
    .sb-section { font-size: .58rem; font-weight: 700; color: var(--dim); letter-spacing: .12em; text-transform: uppercase; padding: 8px 18px; margin-top: 8px; }
    .sb-item { display: flex; align-items: center; gap: 9px; padding: 9px 18px; cursor: pointer; transition: all .2s; color: var(--muted); font-size: .8rem; font-weight: 500; border-right: 2px solid transparent; }
    .sb-item:hover { background: rgba(255, 255, 255, .04); color: var(--txt); }
    .sb-item.active { background: rgba(124, 58, 237, .12); color: var(--v2); border-right-color: var(--v1); }
    .sb-item-icon { font-size: 1rem; width: 20px; text-align: center; }
    .sidebar-footer { padding: 12px 14px; border-top: 1px solid var(--border); }
    .sb-user { display: flex; align-items: center; gap: 9px; }
    .sb-avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: .85rem; color: white; flex-shrink: 0; }
    .sb-name { font-size: .78rem; font-weight: 600; color: var(--txt); line-height: 1.3; }
    .sb-role { font-size: .62rem; color: var(--muted); }
    .sb-logout { margin-left: auto; background: none; border: none; color: var(--dim); cursor: pointer; font-size: 1rem; transition: color .2s; padding: 4px; }
    .sb-logout:hover { color: var(--ro); }
    .main-content { margin-left: var(--sidebar); flex: 1; padding: 24px 28px; overflow-y: auto; }
    .mobile-menu-btn { display: none; }
    .sidebar-overlay { display: none; }
    .page-header { margin-bottom: 24px; }
    .page-title { font-size: 1.4rem; font-weight: 800; color: white; letter-spacing: -.02em; }
    .page-subtitle { font-size: .82rem; color: var(--muted); margin-top: 4px; }

    /* ─── TOPBAR ─── */
    .topbar { display: flex; align-items: center; justify-content: space-between; background: rgba(0, 0, 0, .3); border: 1px solid var(--border); border-radius: 12px; padding: 12px 18px; margin-bottom: 24px; backdrop-filter: blur(16px); }
    .topbar-left { display: flex; align-items: center; gap: 12px; }
    .topbar-right { display: flex; align-items: center; gap: 10px; }
    .topbar-title { font-family: 'Poppins', sans-serif; font-size: .95rem; font-weight: 700; color: white; }
    .topbar-sub { font-size: .72rem; color: var(--muted); }
    .notif-bell { background: rgba(255, 255, 255, .06); border: 1px solid var(--border); border-radius: 8px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1rem; position: relative; }
    .notif-dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; background: var(--ro); border-radius: 50%; border: 1.5px solid var(--bg); }

    /* ─── GRID LAYOUTS ─── */
    .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
    .grid-auto > * { min-width: 0; }

    @media(max-width:1100px) {
      .grid-4 { grid-template-columns: repeat(2, 1fr); }
      .grid-3 { grid-template-columns: 1fr 1fr; }
    }

    @media(max-width:800px) {
      .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    }

    /* ─── MODULE CARD ─── */
    .module-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: all .3s; cursor: pointer; }
    .module-card:hover { border-color: rgba(124, 58, 237, .3); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(124, 58, 237, .12); }
    .mc-top { padding: 18px; border-bottom: 1px solid var(--border); }
    .mc-num { font-size: .6rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
    .mc-title { font-family: 'Poppins', sans-serif; font-size: .92rem; font-weight: 700; color: white; margin-bottom: 6px; }
    .mc-bottom { padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; }
    .mc-topics { font-size: .72rem; color: var(--muted); }
    .mc-status-dot { width: 8px; height: 8px; border-radius: 50%; }

    /* ─── DAY CARD (recordings) ─── */
    .day-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; transition: all .3s; }
    .day-card:hover { border-color: rgba(124, 58, 237, .25); }
    .dc-day { font-size: .62rem; font-weight: 700; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; margin-bottom: 5px; }
    .dc-title { font-size: .88rem; font-weight: 600; color: white; margin-bottom: 8px; }
    .dc-meta { display: flex; align-items: center; gap: 8px; }
    .dc-dur { font-size: .72rem; color: var(--muted); }

    /* ─── CERTIFICATE ─── */
    .cert-preview { background: linear-gradient(135deg, #1a0a2e, #2d1060, #1877f2); border-radius: 14px; padding: 28px; text-align: center; border: 1px solid rgba(196, 168, 240, .2); position: relative; overflow: hidden; }
    .cert-preview::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--v1), var(--c1), var(--am), var(--c1), var(--v1)); background-size: 200% 100%; animation: shimmer 4s linear infinite; }
    .cert-name { font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 800; color: white; margin-bottom: 4px; }
    .cert-course { font-size: .75rem; color: rgba(196, 168, 240, .8); margin-bottom: 12px; }
    .cert-badge { display: inline-block; background: rgba(240, 192, 64, .15); border: 1px solid rgba(240, 192, 64, .3); color: #fde68a; font-size: .65rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; }

    /* ─── ATTENDANCE ─── */
    .att-bar { display: flex; height: 10px; border-radius: 20px; overflow: hidden; background: rgba(255, 255, 255, .08); }
    .att-present { background: linear-gradient(90deg, var(--gr), #6ee7b7); }
    .att-absent { background: rgba(244, 63, 94, .4); }

    /* ─── ZOOM CARD ─── */
    .zoom-card { background: linear-gradient(135deg, rgba(59, 130, 246, .1), rgba(124, 58, 237, .08)); border: 1px solid rgba(59, 130, 246, .22); border-radius: 14px; padding: 20px; }
    .zoom-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: livePulse 1.5s infinite; display: inline-block; }

    @keyframes livePulse {
      0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .5); }
      50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    }

    /* ─── MODAL ─── */
    .modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .65); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(6px); }
    .modal-overlay.open { display: flex; }
    .modal { background: #0f0f24; border: 1px solid var(--border-v); border-radius: 18px; padding: 32px; width: 100%; max-width: 520px; position: relative; max-height: 90vh; overflow-y: auto; }
    .modal-title { font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: 4px; }
    .modal-sub { font-size: .78rem; color: var(--muted); margin-bottom: 24px; }
    .modal-close { position: absolute; top: 14px; right: 14px; background: rgba(255, 255, 255, .08); border: none; color: var(--muted); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 1rem; transition: all .2s; display: flex; align-items: center; justify-content: center; }
    .modal-close:hover { background: rgba(244, 63, 94, .2); color: #fda4af; }

    /* ─── TOAST ─── */
    .toast { position: fixed; bottom: 24px; right: 24px; z-index: 500; background: #0f0f24; border: 1px solid var(--border-v); border-radius: 10px; padding: 14px 18px; font-size: .82rem; color: white; box-shadow: 0 12px 40px rgba(0, 0, 0, .5); transform: translateY(80px); opacity: 0; transition: all .35s cubic-bezier(.34, 1.56, .64, 1); }
    .toast.show { transform: translateY(0); opacity: 1; }
    .toast-icon { margin-right: 8px; }

    /* ─── CERT CANVAS ─── */
    #cert-canvas { display: none; }

    /* ─── ANIMATIONS ─── */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(16px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .anim-in { animation: fadeUp .5s ease both; }

    /* ─── RESPONSIVE ─── */
    @media(max-width:768px) {
            .sidebar { transform: translateX(-100%); transition: transform .3s; z-index: 320; }
            .sidebar.open { transform: translateX(0); }
            .sidebar-overlay { position: fixed; inset: 0; background: rgba(3, 6, 16, 0.62); backdrop-filter: blur(1px); z-index: 310; }
            .sidebar-overlay.show { display: block; }
            .mobile-menu-btn {
                position: fixed;
                top: 12px;
                left: 12px;
                width: 40px;
                height: 40px;
                border: 1px solid var(--border-v);
                border-radius: 10px;
                display: flex;
                align-items: center;
                justify-content: center;
                background: rgba(10, 10, 26, 0.92);
                color: var(--v2);
                font-size: 1.1rem;
                cursor: pointer;
                z-index: 330;
            }
            .main-content { margin-left: 0; padding: 64px 16px 18px; }
                .grid-auto { grid-template-columns: 1fr; }
                .docs-tabs { padding-bottom: 6px; }
                .docs-tabs .tab { padding: 8px 12px; font-size: .75rem; }
    }
    /* ─── ENHANCED COURSE DETAILS ─── */
.syllabus-container {
    position: relative;
    padding-left: 30px;
    margin-top: 20px;
}

/* The vertical line connector */
.syllabus-container::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(to bottom, var(--v1), var(--b1), transparent);
    opacity: 0.3;
}

.syllabus-item {
    position: relative;
    margin-bottom: 24px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.syllabus-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--v2);
    transform: translateX(5px);
}

/* The dot on the line */
.syllabus-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 22px;
    width: 10px;
    height: 10px;
    background: var(--v1);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--v1);
    z-index: 2;
}

.syllabus-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.syllabus-index {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--v2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.topic-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid var(--border-v);
    border-radius: 6px;
    font-size: 0.7rem;
    color: var(--v3);
    margin: 4px;
}

.btn-back {
    margin-bottom: 20px;
    background: var(--panel2);
    color: var(--txt);
    border: 1px solid var(--border);
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .grid-3 { grid-template-columns: 1fr; }
}



/* Ensure Deep Dive layout respects sidebar */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

/* Timeline specific styles from your style.css */
.syllabus-container {
    position: relative;
    padding-left: 30px;
}

.syllabus-item::before {
    content: '';
    position: absolute;
    left: -27px;
    top: 22px;
    width: 10px;
    height: 10px;
    background: var(--v1);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--v1);
    z-index: 2;
}

/* Icon button styles for the editor */
.btn-icon {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
    padding: 0;
    justify-content: center;
}

/* Deep Dive Layout */
.editor-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Modules get more space */
    gap: 24px;
    align-items: start;
}

/* Timeline specific styles */
.syllabus-container {
    position: relative;
    padding-left: 30px;
    margin-top: 20px;
}

.syllabus-container::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(to bottom, var(--v1), var(--b1), transparent);
    opacity: 0.3;
}

/* Responsive Handling */
@media (max-width: 1000px) {
    .editor-layout {
        grid-template-columns: 1fr;
    }
}
/* Dual Panel Grid */
.editor-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: start;
    height: calc(100vh - 150px); /* Keeps it within view height */
}

/* Scrollable panels if content overflows */
.editor-layout > .card {
    height: 100%;
    overflow-y: auto;
}

/* Syllabus Timeline UI */
.syllabus-container {
    position: relative;
    padding-left: 30px;
    margin-top: 20px;
}

.syllabus-container::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(to bottom, var(--v1), var(--b1), transparent);
    opacity: 0.3;
}

/* Icon Buttons for Editor */
.btn-icon {
    width: 28px;
    height: 28px;
    padding: 0;
    justify-content: center;
    font-size: 0.75rem;
}

@media (max-width: 1000px) {
    .editor-layout { grid-template-columns: 1fr; height: auto; }
}
/* Enhanced Module UI */
.topic-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid var(--border-v);
    border-radius: 6px;
    font-size: 0.7rem;
    color: var(--v3);
}

.mod-details ul li {
    margin-bottom: 6px;
    position: relative;
}

/* Custom bullet for Bonus/Outcomes */
.mod-details ul li::marker {
    color: var(--gr);
    content: "✦ ";
}

/* Hover effect for expandable items */
.syllabus-item.expandable:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--v1);
}
/* Enrollment Management UI */
.enrollment-scroll-container {
    max-height: 400px; /* Fixed height for vertical scroll */
    overflow-y: auto;
    padding-right: 8px;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.enroll-item {
    background: var(--panel2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.enroll-item:hover {
    border-color: var(--v2);
    background: rgba(124, 58, 237, 0.05);
}

.enroll-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.enroll-name {
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.enroll-meta {
    display: flex;
    flex-direction: column; /* Vertical info stack */
    font-size: 0.72rem;
    color: var(--muted);
    gap: 2px;
}
/* Ensure Batch cards have a consistent height and clean layout */
.batch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
    align-items: start;
}

/* Fix for the Zoom live dot and status */
.zoom-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    display: inline-block;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

/* Horizontal line for progress */
.progress-wrap {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
    margin: 15px 0;
}

/* Student name tags in the Batch view */
.student-tag {
    display: inline-block;
    background: var(--panel2);
    border: 1px solid var(--border);
    color: var(--v2);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    margin: 2px;
}
/* High-Performance Batch Grid */
.batch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
    align-items: start;
    margin-top: 10px;
}

/* Custom Scroll for Left Panel */
.editor-layout > .card::-webkit-scrollbar {
    width: 4px;
}

.editor-layout > .card::-webkit-scrollbar-thumb {
    background: var(--border-v);
    border-radius: 10px;
}

/* Student Tag UI */
.student-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.68rem;
    margin: 2px;
    transition: all 0.2s;
}

.student-tag:hover {
    border-color: var(--v2);
    color: white;
}

/* ═══════════════════════════════════════
   MOBILE POLISH + CONSOLIDATED OVERRIDES
═══════════════════════════════════════ */
@media (max-width: 900px) {
    .topbar {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px;
    }

    .topbar-left,
    .topbar-right {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

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

    .editor-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .editor-layout > .card {
        height: auto;
        max-height: none;
    }

    .tbl {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .login-wrap {
        max-width: 100%;
    }

    .login-card {
        padding: 24px 18px;
    }

    .otp-row {
        gap: 6px;
    }

    .otp-input {
        width: 40px;
        height: 42px;
        font-size: 1rem;
    }

    .main-content {
        padding: calc(64px + env(safe-area-inset-top)) 14px 18px;
    }

    .card {
        padding: 14px;
    }

    .modal {
        padding: 20px 14px;
        max-height: 88vh;
    }

    .btn {
        max-width: 100%;
    }

    .enroll-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .toast {
        right: 12px;
        left: 12px;
        bottom: 12px;
        width: auto;
    }

    .sidebar {
        width: min(84vw, 280px);
    }
}

@media (max-width: 480px) {
    .grid-auto {
        grid-template-columns: 1fr;
    }

    .topbar-title {
        font-size: .86rem;
    }

    .page-title {
        font-size: 1.15rem;
    }

    .mobile-menu-btn {
        width: 38px;
        height: 38px;
    }
}

/* Mobile and Medium screens (Default) */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr; /* Single column */
  gap: 20px;
  margin-bottom: 20px;
}

/* Large screens (e.g., Laptops/Desktops) */
@media (min-width: 1024px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr); /* Two columns */
  }
}

/* Extra Large screens (e.g., Wide Monitors) */
@media (min-width: 1440px) {
  .grid-2 {
    grid-template-columns: repeat(4, 1fr); /* Four columns */
  }
}
  /* </style> */