/* ═══════════════════════════════════════════════════
   IIT Madras — Live Classroom & Academic Dashboard
   Unified Design System
   ═══════════════════════════════════════════════════ */

/* --- CSS Custom Properties --- */
:root {
    /* IIT Madras Brand Colors */
    --iitm-maroon: #7B1113;
    --iitm-maroon-dark: #5a0c0e;
    --maroon-800: #4A1111;
    --maroon-700: #6B1D1D;
    --maroon-600: #8B2525;
    --maroon-500: #A33030;
    --maroon-400: #C04848;

    /* Gold Accent */
    --gold-600: #A37B2C;
    --gold-500: #C5975B;
    --gold-400: #D4A843;
    --gold-300: #E5C88A;
    --gold-200: #F0DDB0;
    --iitm-gold: #D4A843;
    --iitm-gold-light: #f0d68a;

    /* Neutrals */
    --neutral-950: #0A0A0B;
    --neutral-900: #0f1117;
    --neutral-850: #161822;
    --neutral-800: #1e2137;
    --neutral-750: #2A2A32;
    --neutral-700: #333340;
    --neutral-600: #4A4A5A;
    --neutral-500: #6B6B80;
    --neutral-400: #9090A5;
    --neutral-300: #B0B0C0;
    --neutral-200: #D0D0DC;
    --neutral-100: #E8E8F0;

    /* Semantic */
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    --live-red: #FF3B3B;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;

    /* Surfaces */
    --bg-primary: var(--neutral-900);
    --bg-secondary: var(--neutral-850);
    --bg-card: rgba(22, 24, 40, 0.7);
    --bg-card-hover: rgba(30, 33, 55, 0.85);

    /* Text */
    --text-primary: #f0f0f5;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    /* Borders */
    --border-subtle: rgba(255,255,255,0.06);
    --border-default: rgba(255,255,255,0.1);
    --border-accent: rgba(212,168,67,0.3);

    /* Shadows */
    --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 40px rgba(123,17,19,0.15);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);

    /* Radii */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-md: 10px;
    --radius-lg: 14px;

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    animation: fadeIn 0.4s ease-out;
}

body::before {
    content: '';
    position: fixed;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(ellipse at 20% 20%, rgba(123,17,19,0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(212,168,67,0.05) 0%, transparent 50%);
    z-index: -1;
    animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift { 0% { transform: translate(0,0); } 100% { transform: translate(-5%,-3%); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

a { color: var(--gold-400); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--gold-300); }
button { cursor: pointer; font-family: var(--font-sans); border: none; background: none; color: inherit; }
input, select { font-family: var(--font-sans); }

/* --- Glass Card --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card), var(--shadow-glow);
    border-color: var(--border-accent);
}

/* ═══════════════════════
   ANNOUNCEMENT BAR
   ═══════════════════════ */
.announcement-bar {
    background: linear-gradient(90deg, var(--iitm-maroon), var(--iitm-maroon-dark), var(--iitm-maroon));
    padding: 8px 20px;
    text-align: center;
    font-size: 13px;
    color: var(--iitm-gold-light);
    position: relative;
    overflow: hidden;
}
.announcement-bar::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: shimmer 4s infinite;
}
@keyframes shimmer { 0% { left: -100%; } 100% { left: 100%; } }
.announcement-content { display: flex; align-items: center; justify-content: center; gap: 8px; position: relative; z-index: 1; }
.announcement-content a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ═══════════════════════
   HEADER
   ═══════════════════════ */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: 68px;
    background: linear-gradient(135deg, var(--iitm-maroon) 0%, var(--iitm-maroon-dark) 100%);
    border-bottom: 3px solid var(--iitm-gold);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.6); }
.header-left { display: flex; align-items: center; }
.logo-group { display: flex; align-items: center; gap: 14px; }

.header-logo-img {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px solid var(--iitm-gold);
    box-shadow: 0 0 20px rgba(212,168,67,0.3);
    transition: transform var(--transition);
}
.header-logo-img:hover { transform: scale(1.1) rotate(5deg); }

.logo-text .institution-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
    line-height: 1.2;
}
.logo-text .institution-sub {
    font-size: 11px;
    color: var(--iitm-gold-light);
    font-weight: 400;
    margin-top: 2px;
}

.header-nav { display: flex; align-items: center; gap: 4px; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}
.nav-link svg { opacity: 0.7; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-link:hover svg { opacity: 1; }
.nav-link.active { color: var(--iitm-gold-light); background: rgba(212,168,67,0.12); }
.nav-link.active svg { opacity: 1; stroke: var(--iitm-gold-light); }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 50%; transform: translateX(-50%);
    width: 20px; height: 2px;
    background: var(--iitm-gold);
    border-radius: 2px;
}

.header-right { display: flex; align-items: center; gap: 12px; }
.header-badge {
    background: rgba(255,255,255,0.12);
    color: var(--iitm-gold-light);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(212,168,67,0.3);
    letter-spacing: 0.5px;
}

.avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
    color: var(--iitm-gold-light);
    border: 2px solid var(--border-accent);
    transition: transform var(--transition-fast);
}
.avatar:hover { transform: scale(1.08); }

.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.mobile-menu-btn span { width: 22px; height: 2px; background: rgba(255,255,255,0.7); border-radius: 2px; }

/* ═══════════════════════
   VIEW SWITCHING
   ═══════════════════════ */
.view-section { display: none; }
.view-section.active { display: block; }

/* ═══════════════════════
   MAIN CONTENT (shared)
   ═══════════════════════ */
.main-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 28px 40px;
}

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold-400); }
.breadcrumb .current { color: var(--text-secondary); font-weight: 500; }

.content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

/* ═══════════════════════
   VIDEO PLAYER
   ═══════════════════════ */
.video-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
}
.video-wrapper { position: relative; padding-top: 56.25%; background: #000; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.live-badge {
    position: absolute; top: 16px; left: 16px;
    display: flex; align-items: center; gap: 6px;
    background: rgba(255, 59, 59, 0.9);
    backdrop-filter: blur(8px);
    padding: 5px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 700; color: #fff;
    letter-spacing: 1px; text-transform: uppercase;
    z-index: 10;
    animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,59,59,0.4); } 50% { box-shadow: 0 0 0 8px rgba(255,59,59,0); } }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: dotBlink 1.5s infinite; }
@keyframes dotBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.viewer-count {
    position: absolute; top: 16px; right: 16px;
    display: flex; align-items: center; gap: 6px;
    background: rgba(0,0,0,0.65); backdrop-filter: blur(8px);
    padding: 5px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 500; color: #fff; z-index: 10;
}
.quality-badge {
    position: absolute; bottom: 16px; right: 16px;
    background: rgba(212,168,67,0.85); backdrop-filter: blur(8px);
    padding: 3px 10px; border-radius: 4px;
    font-size: 11px; font-weight: 700; color: var(--neutral-950); z-index: 10;
}

/* Video Controls Bar */
.video-controls-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle); border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.controls-left, .controls-right { display: flex; align-items: center; gap: 6px; }
.control-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: var(--radius-sm);
    font-size: 13px; color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.control-btn:hover { background: var(--neutral-800); color: var(--text-primary); }
.control-btn.active { color: var(--gold-400); background: rgba(212,168,67,0.1); }
.control-count { font-weight: 600; color: var(--text-primary); }
.playback-speed { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); }
.playback-speed select {
    background: var(--neutral-800); border: 1px solid var(--border-subtle);
    color: var(--text-primary); padding: 4px 8px; border-radius: var(--radius-sm); font-size: 13px; cursor: pointer;
}

/* ═══════════════════════
   LECTURE INFO
   ═══════════════════════ */
.lecture-info { margin-top: 24px; }
.lecture-title {
    font-family: var(--font-display);
    font-size: 24px; font-weight: 700;
    color: var(--text-primary); line-height: 1.35;
    margin-bottom: 12px;
}
.lecture-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; letter-spacing: 0.3px; }
.tag-dept { background: rgba(236,72,153,0.12); color: #F472B6; border: 1px solid rgba(236,72,153,0.2); }
.tag-level { background: rgba(59,130,246,0.12); color: #60A5FA; border: 1px solid rgba(59,130,246,0.2); }
.tag-credit { background: rgba(34,197,94,0.12); color: #4ADE80; border: 1px solid rgba(34,197,94,0.2); }
.tag-nptel { background: rgba(212,168,67,0.12); color: var(--gold-400); border: 1px solid rgba(212,168,67,0.2); }

/* Professor Card */
.professor-card {
    display: flex; align-items: center; gap: 16px;
    padding: 18px;
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}
.professor-card:hover { border-color: var(--border-accent); box-shadow: var(--shadow-glow); }
.professor-avatar { position: relative; flex-shrink: 0; }
.professor-initials {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, var(--iitm-maroon), var(--iitm-maroon-dark));
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700; color: var(--iitm-gold-light);
    border: 2px solid var(--iitm-gold);
}
.online-indicator {
    position: absolute; bottom: 2px; right: 2px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--success); border: 2px solid var(--bg-card);
    animation: onlinePulse 2s infinite;
}
@keyframes onlinePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); } 50% { box-shadow: 0 0 0 4px rgba(34,197,94,0); } }

.professor-details { flex: 1; }
.professor-details h3 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.professor-dept { font-size: 12.5px; color: var(--gold-400); font-weight: 500; }
.professor-title { font-size: 12px; color: var(--text-muted); }
.professor-actions { display: flex; gap: 8px; }
.btn-follow {
    padding: 7px 20px; border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600;
    background: linear-gradient(135deg, var(--iitm-maroon), var(--iitm-maroon-dark));
    color: var(--iitm-gold-light); border: 1px solid var(--maroon-500);
    transition: all var(--transition-fast);
}
.btn-follow:hover { background: linear-gradient(135deg, var(--maroon-500), var(--iitm-maroon)); box-shadow: var(--shadow-glow); }
.btn-follow.following { background: var(--neutral-800); color: var(--text-secondary); border-color: var(--border-default); }

/* Lecture Description */
.lecture-description {
    margin-top: 24px; padding: 20px;
    background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
}
.lecture-description h3 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.lecture-description p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 8px; }
.desc-more { display: none; }
.desc-more.visible { display: block; }
.btn-show-more { font-size: 13px; font-weight: 600; color: var(--gold-400); margin-top: 6px; }
.btn-show-more:hover { color: var(--gold-300); }

/* Mini Dashboard Card */
.mini-dashboard-card {
    margin-top: 24px; padding: 20px;
    background: linear-gradient(135deg, rgba(123,17,19,0.12), rgba(212,168,67,0.08));
    border: 1px solid var(--border-accent); border-radius: var(--radius-lg);
    transition: all var(--transition);
}
.mini-dashboard-card:hover { box-shadow: var(--shadow-glow); }
.mini-dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mini-dash-header h3 { font-size: 15px; font-weight: 600; }
.mini-dash-link { font-size: 13px; font-weight: 600; color: var(--gold-400); cursor: pointer; }
.mini-dash-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 16px; }
.mini-stat { text-align: center; padding: 10px; background: rgba(255,255,255,0.04); border-radius: var(--radius-sm); border: 1px solid var(--border-subtle); }
.mini-stat-number { display: block; font-size: 18px; font-weight: 700; color: var(--gold-400); line-height: 1; margin-bottom: 4px; }
.mini-stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.mini-progress-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.06); border-radius: 10px; overflow: hidden; margin-bottom: 6px; }
.mini-progress-fill { height: 100%; background: linear-gradient(90deg, var(--iitm-maroon), var(--iitm-gold)); border-radius: 10px; }
.mini-progress-text { font-size: 12px; color: var(--text-muted); }

/* Upcoming Lectures */
.upcoming-lectures-section { margin-top: 24px; }
.upcoming-lectures-section h3 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.upcoming-list { display: flex; flex-direction: column; gap: 10px; }
.upcoming-card {
    display: flex; align-items: center; gap: 16px; padding: 16px;
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md); transition: all var(--transition); cursor: pointer;
}
.upcoming-card:hover { border-color: var(--border-accent); background: var(--bg-card-hover); transform: translateX(4px); }
.upcoming-date {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--iitm-maroon), var(--iitm-maroon-dark));
    border-radius: var(--radius-md); flex-shrink: 0; border: 1px solid rgba(212,168,67,0.2);
}
.upcoming-date .day { font-size: 20px; font-weight: 700; color: var(--iitm-gold-light); line-height: 1; }
.upcoming-date .month { font-size: 10px; font-weight: 600; color: var(--iitm-gold); text-transform: uppercase; letter-spacing: 1px; }
.upcoming-info { flex: 1; }
.upcoming-info h4 { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.upcoming-info p { font-size: 12.5px; color: var(--text-muted); }
.upcoming-status {
    padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; flex-shrink: 0;
}
.upcoming-status.scheduled { background: rgba(59,130,246,0.12); color: #60A5FA; border: 1px solid rgba(59,130,246,0.2); }

/* ═══════════════════════
   SIDEBAR (Chat, Q&A, Participants)
   ═══════════════════════ */
.sidebar-column { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.sidebar-tabs { display: flex; background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
.sidebar-tab {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 13px 10px; font-size: 12.5px; font-weight: 600;
    color: var(--text-muted); border-bottom: 2px solid transparent; transition: all var(--transition-fast);
}
.sidebar-tab:hover { color: var(--text-secondary); background: var(--neutral-800); }
.sidebar-tab.active { color: var(--gold-400); border-bottom-color: var(--gold-400); background: rgba(212,168,67,0.05); }
.participant-count { background: var(--neutral-800); padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.sidebar-tab.active .participant-count { background: rgba(212,168,67,0.15); color: var(--gold-400); }

.sidebar-panel { display: none; background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-top: none; border-radius: 0 0 var(--radius-lg) var(--radius-lg); overflow: hidden; }
.sidebar-panel.active { display: flex; flex-direction: column; }

/* Chat Panel */
#panel-chat { height: 520px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--neutral-600); border-radius: 10px; }

.chat-msg { padding: 10px 14px; border-radius: var(--radius-md); transition: background var(--transition-fast); animation: msgSlideIn 0.3s ease-out; }
@keyframes msgSlideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.chat-msg:hover { background: var(--neutral-800); }
.chat-msg.system { background: rgba(212,168,67,0.08); border: 1px solid rgba(212,168,67,0.15); text-align: center; margin-bottom: 8px; }
.chat-msg.system p { font-size: 12.5px; color: var(--gold-400); font-weight: 500; }
.chat-user { font-size: 12.5px; font-weight: 600; color: var(--text-primary); display: block; margin-bottom: 2px; }
.chat-user.ta { color: var(--gold-400); }
.chat-user.ta::after { content: '★'; margin-left: 4px; font-size: 10px; }
.chat-msg p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.5; }
.chat-time { font-size: 11px; color: var(--text-muted); display: block; margin-top: 3px; }

.chat-input-container { padding: 14px; border-top: 1px solid var(--border-subtle); background: var(--bg-primary); }
.chat-input-wrapper {
    display: flex; align-items: center;
    background: var(--neutral-800); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md); padding: 4px 6px 4px 14px;
    transition: border-color var(--transition);
}
.chat-input-wrapper:focus-within { border-color: var(--iitm-gold); box-shadow: 0 0 0 3px rgba(212,168,67,0.1); }
.chat-input { flex: 1; background: transparent; border: none; color: var(--text-primary); font-size: 13.5px; outline: none; padding: 8px 0; }
.chat-input::placeholder { color: var(--text-muted); }
.chat-input-actions { display: flex; align-items: center; gap: 2px; }
.chat-emoji-btn, .chat-send-btn { padding: 7px; border-radius: var(--radius-sm); color: var(--text-muted); transition: all var(--transition-fast); }
.chat-emoji-btn:hover { background: var(--neutral-750); color: var(--text-secondary); }
.chat-send-btn { color: var(--iitm-gold); }
.chat-send-btn:hover { background: rgba(212,168,67,0.1); color: var(--gold-400); }

/* Q&A Panel */
#panel-qa { height: 520px; }
.qa-list { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.qa-item { display: flex; gap: 12px; padding: 14px; background: var(--neutral-800); border-radius: var(--radius-md); border: 1px solid var(--border-subtle); }
.qa-votes { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.qa-vote-btn { padding: 4px; font-size: 14px; color: var(--text-muted); transition: color var(--transition-fast); }
.qa-vote-btn:hover { color: var(--gold-400); }
.qa-vote-count { font-size: 14px; font-weight: 700; color: var(--gold-400); }
.qa-content { flex: 1; }
.qa-question { font-size: 13.5px; font-weight: 500; color: var(--text-primary); margin-bottom: 4px; line-height: 1.5; }
.qa-author { font-size: 12px; color: var(--text-muted); font-style: italic; }
.qa-answer { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-subtle); }
.qa-answered { font-size: 11px; font-weight: 600; color: var(--success); display: block; margin-bottom: 4px; }
.qa-answer p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.qa-pending { font-size: 11px; font-weight: 600; color: var(--warning); display: block; margin-top: 6px; }
.qa-input-container { padding: 14px; border-top: 1px solid var(--border-subtle); background: var(--bg-primary); display: flex; gap: 8px; }
.qa-input { flex: 1; background: var(--neutral-800); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 10px 14px; color: var(--text-primary); font-size: 13.5px; outline: none; }
.qa-input:focus { border-color: var(--iitm-gold); }
.qa-input::placeholder { color: var(--text-muted); }
.qa-submit-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--iitm-maroon), var(--iitm-maroon-dark));
    color: var(--iitm-gold-light); font-size: 13px; font-weight: 600;
    border-radius: var(--radius-md); border: 1px solid var(--maroon-500);
}
.qa-submit-btn:hover { background: linear-gradient(135deg, var(--maroon-500), var(--iitm-maroon)); }

/* Participants Panel */
#panel-participants { height: 520px; overflow: hidden; }
.participants-header { padding: 14px 16px; border-bottom: 1px solid var(--border-subtle); }
.participants-online { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: onlinePulse 2s infinite; }
.participants-list { overflow-y: auto; padding: 8px 16px; flex: 1; height: calc(100% - 48px); }
.participant { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
.participant:last-child { border-bottom: none; }
.participant-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--neutral-750); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--text-secondary); flex-shrink: 0; }
.participant-avatar.prof-av { background: linear-gradient(135deg, var(--iitm-maroon), var(--iitm-maroon-dark)); color: var(--iitm-gold-light); border: 2px solid var(--iitm-gold); }
.participant-avatar.ta-av { background: linear-gradient(135deg, var(--gold-600), var(--gold-500)); color: var(--neutral-950); border: 1px solid var(--gold-400); }
.participant-avatar.you-av { background: linear-gradient(135deg, var(--iitm-maroon), var(--iitm-gold)); color: #fff; border: 2px solid var(--iitm-gold); }
.participant-info { flex: 1; }
.participant-name { font-size: 13px; font-weight: 600; color: var(--text-primary); display: block; }
.participant-role { font-size: 11.5px; color: var(--text-muted); }
.role-prof { color: var(--gold-400); font-weight: 600; }
.role-ta { color: var(--iitm-gold); font-weight: 500; }
.role-you { color: var(--success); font-weight: 600; }
.participant.more { justify-content: center; padding: 14px; font-size: 13px; color: var(--text-muted); }

/* Resources Card */
.resources-card { padding: 18px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); }
.resources-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.resource-list { display: flex; flex-direction: column; gap: 4px; }
.resource-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 13px; transition: all var(--transition-fast); }
.resource-item:hover { background: var(--neutral-800); color: var(--text-primary); }
.resource-item svg { color: var(--text-muted); flex-shrink: 0; }
.resource-item span { flex: 1; }
.resource-badge { padding: 2px 8px; border-radius: 10px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.resource-badge.new { background: rgba(34,197,94,0.12); color: var(--success); }
.resource-badge.due { background: rgba(245,158,11,0.12); color: var(--warning); }

/* ═══════════════════════════════════════
   DASHBOARD VIEW STYLES (db- prefixed)
   ═══════════════════════════════════════ */
#view-dashboard { padding: 32px 28px 60px; display: none; flex-direction: column; gap: 40px; }
#view-dashboard.active { display: flex; }

#view-dashboard section {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
#view-dashboard section.visible { opacity: 1; transform: translateY(0); }

/* Profile */
.db-profile-card { display: flex; align-items: center; gap: 32px; padding: 32px 40px; }
.db-profile-avatar {
    width: 88px; height: 88px; border-radius: 50%;
    background: linear-gradient(135deg, var(--iitm-maroon) 0%, var(--iitm-gold) 100%);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    box-shadow: 0 0 30px rgba(123,17,19,0.25); position: relative;
}
.db-profile-avatar::after {
    content: ''; position: absolute; inset: -3px; border-radius: 50%;
    border: 2px solid var(--iitm-gold); opacity: 0.5; animation: pulseRing 3s ease-in-out infinite;
}
@keyframes pulseRing { 0%,100% { opacity: 0.3; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.05); } }
.avatar-initials { font-size: 1.8rem; font-weight: 800; color: #fff; letter-spacing: 2px; }
.student-name {
    font-size: 1.7rem; font-weight: 800;
    background: linear-gradient(135deg, #fff 30%, var(--iitm-gold-light) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.student-degree { color: var(--text-secondary); font-size: 0.95rem; margin-top: 4px; }
.db-profile-details-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px 40px; margin-top: 20px; }
.detail-item { display: flex; flex-direction: column; gap: 2px; }
.detail-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600; }
.detail-value { font-size: 0.95rem; color: var(--text-primary); font-weight: 500; }
.status-active { color: var(--success); }
.cgpa-highlight { color: var(--iitm-gold); font-weight: 700; font-size: 1.05rem; }

/* Stats */
.db-stats-section { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.db-stat-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.db-stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--iitm-maroon), var(--iitm-gold)); opacity: 0; transition: opacity var(--transition);
}
.db-stat-card:hover::before { opacity: 1; }
.db-stat-icon { width: 40px; height: 40px; color: var(--iitm-gold); }
.db-stat-icon svg { width: 100%; height: 100%; }
.db-stat-icon.courses-icon { color: var(--success); }
.db-stat-icon.year-icon { color: var(--warning); }
.db-stat-icon.cgpa-icon { color: var(--iitm-gold); }
.db-stat-content { display: flex; flex-direction: column; }
.db-stat-number { font-size: 2.4rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.db-stat-label { font-size: 0.82rem; color: var(--text-secondary); margin-top: 4px; font-weight: 500; }
.db-stat-progress { width: 100%; height: 6px; background: rgba(255,255,255,0.06); border-radius: 10px; overflow: hidden; }
.db-progress-bar { height: 100%; width: 0; border-radius: 10px; background: var(--bar-color, var(--iitm-maroon)); transition: width 1.5s cubic-bezier(0.22,1,0.36,1); }
.db-stat-sub { font-size: 0.72rem; color: var(--text-muted); }

/* Section Headers */
.db-section-header { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.db-section-title { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.db-section-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border-accent), transparent); }

/* Course Grid */
.db-courses-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.db-course-card {
    background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm);
    padding: 20px; display: flex; flex-direction: column; gap: 10px;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    position: relative; overflow: hidden; cursor: default;
    opacity: 0; transform: translateY(20px); animation: fadeUp 0.5s ease forwards;
}
.db-course-card:hover { transform: translateY(-4px) !important; border-color: var(--border-accent); box-shadow: var(--shadow-card), 0 0 30px rgba(212,168,67,0.08); }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.db-course-card .course-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.db-course-card .course-name { font-size: 0.92rem; font-weight: 600; color: var(--text-primary); }
.db-course-card .course-code { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.db-course-card .course-credits { font-size: 0.78rem; color: var(--text-secondary); margin-top: auto; }
.db-course-card .course-status { display: inline-flex; align-items: center; gap: 4px; font-size: 0.7rem; color: var(--success); font-weight: 600; }
.course-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.db-upcoming-card { border-style: dashed; border-color: rgba(255,255,255,0.1); }
.db-upcoming-card:hover { border-color: rgba(245,158,11,0.4); }
.db-upcoming-status { color: var(--warning) !important; }
.db-upcoming-dot { background: var(--warning) !important; animation: blink 1.5s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Charts */
.db-charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.db-chart-card { padding: 28px; }
.db-chart-title { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 20px; }
.donut-chart-container { position: relative; width: 260px; height: 260px; margin: 0 auto 20px; }
.donut-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; display: flex; flex-direction: column; }
.donut-number { font-size: 2.2rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.donut-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-secondary); }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }

.progress-timeline { display: flex; flex-direction: column; gap: 16px; }
.progress-item { display: flex; flex-direction: column; gap: 6px; }
.progress-item-header { display: flex; justify-content: space-between; align-items: center; }
.progress-item-label { font-size: 0.85rem; color: var(--text-primary); font-weight: 500; }
.progress-item-value { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.progress-item-bar { width: 100%; height: 10px; background: rgba(255,255,255,0.06); border-radius: 10px; overflow: hidden; }
.progress-item-fill { height: 100%; border-radius: 10px; transition: width 1.8s cubic-bezier(0.22,1,0.36,1); width: 0; }

/* ═══ Certifications Section ═══ */
.db-certifications-section { margin-top: 8px; }

.certifications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.cert-card {
    display: flex;
    gap: 32px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(212,168,67,0.2);
}

.cert-card:hover {
    border-color: rgba(212,168,67,0.45);
    box-shadow: 0 8px 40px rgba(212,168,67,0.1), 0 4px 24px rgba(0,0,0,0.3);
}

.cert-image-wrapper {
    position: relative;
    width: 420px;
    min-height: 280px;
    flex-shrink: 0;
    cursor: pointer;
    overflow: hidden;
    background: #f5f0e1;
}

.cert-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.cert-image-wrapper:hover .cert-image {
    transform: scale(1.03);
}

.cert-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,10,11,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    backdrop-filter: blur(2px);
}

.cert-image-wrapper:hover .cert-image-overlay {
    opacity: 1;
}

.cert-details {
    flex: 1;
    padding: 28px 32px 28px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.cert-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cert-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(212,168,67,0.15);
    color: var(--iitm-gold);
    border: 1px solid rgba(212,168,67,0.3);
}

.cert-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(34,197,94,0.12);
    color: var(--success);
    border: 1px solid rgba(34,197,94,0.25);
}

.cert-verified-badge svg { flex-shrink: 0; }

.cert-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    background: linear-gradient(135deg, #fff 30%, var(--iitm-gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cert-issuer {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.cert-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 28px;
    margin-top: 8px;
}

.cert-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cert-meta-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 600;
}

.cert-meta-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Lightbox */
.cert-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.cert-lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.cert-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.cert-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

.cert-lightbox.active .cert-lightbox-content {
    transform: scale(1);
}

.cert-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
    object-fit: contain;
}

.cert-lightbox-close-btn {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(30,33,55,0.9);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s, transform 0.2s;
    border: 1px solid rgba(255,255,255,0.1);
}

.cert-lightbox-close-btn:hover {
    background: var(--iitm-maroon);
    transform: scale(1.1);
}

/* Certification responsive */
@media (max-width: 900px) {
    .cert-card {
        flex-direction: column;
    }
    .cert-image-wrapper {
        width: 100%;
        min-height: 200px;
        max-height: 260px;
    }
    .cert-details {
        padding: 20px 24px 24px;
    }
}

/* Academic Timeline */
.db-timeline { position: relative; padding-left: 40px; }
.db-timeline::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--iitm-gold), var(--border-subtle)); }
.db-timeline-item { position: relative; margin-bottom: 28px; }
.db-timeline-item:last-child { margin-bottom: 0; }
.db-timeline-marker { position: absolute; left: -40px; top: 24px; width: 32px; display: flex; justify-content: center; }
.marker-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--iitm-gold); border: 3px solid var(--bg-primary); box-shadow: 0 0 12px rgba(212,168,67,0.4); }
.marker-dot.upcoming { background: var(--bg-secondary); border-color: var(--text-muted); box-shadow: none; }
.marker-dot.in-progress { background: var(--info); border: 3px solid var(--bg-primary); box-shadow: 0 0 12px rgba(59,130,246,0.4); animation: pulseBlue 2s ease-in-out infinite; }
@keyframes pulseBlue { 0%,100% { box-shadow: 0 0 12px rgba(59,130,246,0.4); } 50% { box-shadow: 0 0 24px rgba(59,130,246,0.7); } }
.db-timeline-content { padding: 20px 24px; }
.timeline-badge { display: inline-block; padding: 3px 12px; border-radius: 12px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
.timeline-badge.completed { background: rgba(34,197,94,0.15); color: var(--success); border: 1px solid rgba(34,197,94,0.3); }
.timeline-badge.in-progress-badge { background: rgba(59,130,246,0.15); color: var(--info); border: 1px solid rgba(59,130,246,0.3); }
.timeline-badge.upcoming-badge { background: rgba(107,114,128,0.15); color: var(--text-muted); border: 1px solid rgba(107,114,128,0.3); }
.db-timeline-content h3 { font-size: 1.05rem; font-weight: 700; }
.db-timeline-content p { font-size: 0.85rem; color: var(--text-secondary); margin-top: 2px; }
.timeline-desc { color: var(--text-muted) !important; font-size: 0.8rem !important; margin-top: 6px !important; }

/* ═══════════════════════
   FOOTER
   ═══════════════════════ */
.footer { margin-top: 60px; background: var(--bg-secondary); border-top: 1px solid var(--border-subtle); }
.footer-content { max-width: 1440px; margin: 0 auto; padding: 40px 28px; display: flex; justify-content: space-between; gap: 40px; }
.footer-brand { max-width: 340px; }
.footer-logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo-img { width: 36px; height: 36px; border-radius: 50%; opacity: 0.8; }
.footer-logo-wrap span { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text-primary); }
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.footer-links { display: flex; gap: 60px; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-muted); padding: 4px 0; }
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom { max-width: 1440px; margin: 0 auto; padding: 16px 28px; border-top: 1px solid var(--border-subtle); }
.footer-bottom p { font-size: 12px; color: var(--text-muted); text-align: center; }

/* ═══════════════════════════════════════════════════
   COURSES VIEW
   ═══════════════════════════════════════════════════ */
#view-courses { display: none; padding: 32px 28px 60px; }
#view-courses.active { display: block; }

.course-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.catalog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.catalog-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.catalog-thumb {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.catalog-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--bg-card) 0%, transparent 100%);
}

.catalog-thumb-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    backdrop-filter: blur(4px);
    z-index: 1;
}

.catalog-info {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.catalog-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--iitm-gold);
    margin-bottom: 6px;
}

.catalog-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.catalog-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
    flex: 1;
}

.catalog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-subtle);
    padding-top: 12px;
}

/* Course Player UI */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    transition: all var(--transition-fast);
}
.btn-back:hover {
    background: rgba(255,255,255,0.1);
    color: var(--iitm-gold);
}

.syllabus-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 520px;
}

.syllabus-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--neutral-800);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.syllabus-item:hover {
    background: var(--neutral-750);
    border-color: rgba(255,255,255,0.15);
}
.syllabus-item.active {
    background: rgba(212,168,67,0.1);
    border-color: var(--iitm-gold);
}

.sy-idx {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.syllabus-item.active .sy-idx {
    background: var(--iitm-gold);
    color: var(--neutral-950);
}

.sy-content {
    flex: 1;
}
.sy-title {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}
.syllabus-item.active .sy-title {
    color: var(--iitm-gold);
    font-weight: 600;
}
.sy-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
}

/* ═══════════════════════════════════════════════════
   SCHEDULE VIEW
   ═══════════════════════════════════════════════════ */
#view-schedule { display: none; padding: 32px 28px 60px; }
#view-schedule.active { display: block; }

.schedule-container {
    padding: 32px;
    margin-top: 24px;
}

.schedule-timeline {
    position: relative;
}
.schedule-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-subtle);
}

.schedule-week {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}
.schedule-week:last-child {
    margin-bottom: 0;
}

.week-marker {
    position: absolute;
    left: 4px;
    top: 0;
    width: 34px;
    height: 34px;
    background: var(--bg-card);
    border: 2px solid var(--iitm-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--iitm-gold);
    z-index: 1;
}
.week-marker.current {
    background: var(--iitm-gold);
    color: var(--neutral-950);
    box-shadow: 0 0 16px rgba(212,168,67,0.4);
}

.week-header {
    margin-bottom: 16px;
}
.week-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}
.week-date {
    font-size: 13px;
    color: var(--text-muted);
}

.schedule-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.s-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: all var(--transition);
}
.s-card:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.15);
}

.s-card-time {
    flex-shrink: 0;
    width: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.s-card-info {
    flex: 1;
}
.s-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.s-card-desc {
    font-size: 13px;
    color: var(--text-muted);
}

.s-card-action .btn-go {
    padding: 6px 14px;
    background: var(--iitm-maroon);
    color: var(--iitm-gold-light);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    transition: all var(--transition-fast);
}
.s-card-action .btn-go:hover {
    background: var(--maroon-500);
}

/* ═══════════════════════
   RESPONSIVE
   ═══════════════════════ */
@media (max-width: 1200px) {
    .content-grid { grid-template-columns: 1fr 340px; }
    .header-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .db-courses-grid { grid-template-columns: repeat(2,1fr); }
    .db-charts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
    .content-grid { grid-template-columns: 1fr; }
    .sidebar-column { position: static; }
    #panel-chat, #panel-qa, #panel-participants { height: 420px; }
    .db-stats-section { grid-template-columns: repeat(2,1fr); }
    .footer-content { flex-direction: column; }
}
@media (max-width: 640px) {
    .header { padding: 0 16px; height: 60px; }
    .logo-text .institution-name { font-size: 13px; }
    .logo-text .institution-sub { font-size: 10px; }
    .main-content, #view-dashboard { padding: 16px; }
    .lecture-title { font-size: 19px; }
    .video-controls-bar { flex-wrap: wrap; gap: 8px; }
    .controls-left { flex-wrap: wrap; }
    .professor-card { flex-wrap: wrap; }
    .mini-dash-stats { grid-template-columns: repeat(2,1fr); }
    .db-profile-card { flex-direction: column; text-align: center; padding: 24px 20px; }
    .db-profile-details-grid { grid-template-columns: 1fr; text-align: left; }
    .db-courses-grid { grid-template-columns: 1fr; }
    .footer-links { flex-direction: column; gap: 24px; }
}
