/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
body.dashboard-body { background: #f0f4ff; margin: 0; overflow-x: hidden; }

.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 260px; background: var(--secondary);
  display: flex; flex-direction: column;
  z-index: 900; transition: transform 0.3s ease;
  overflow-y: auto;
}
.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 14px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-close { display: none; background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; }
.sidebar-profile {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-profile img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.3); }
.sidebar-profile strong { display: block; color: #fff; font-size: 14px; font-weight: 600; }
.sidebar-profile span { font-size: 12px; color: rgba(255,255,255,0.55); }

.sidebar-nav { padding: 12px 0; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px; color: rgba(255,255,255,0.7);
  font-size: 14px; font-weight: 500; transition: var(--transition);
  border-left: 3px solid transparent; text-decoration: none;
}
.nav-item:hover { background: rgba(255,255,255,0.07); color: #fff; }
.nav-item.active { background: rgba(230,41,31,0.18); color: #fff; border-left-color: var(--primary); font-weight: 600; }
.nav-item i { width: 18px; font-size: 15px; }
.nav-item.logout:hover { background: rgba(230,41,31,0.2); color: #ff8080; }
.nav-section-label { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.3); letter-spacing: 1.5px; text-transform: uppercase; padding: 16px 20px 6px; }

.dashboard-main { margin-left: 260px; min-height: 100vh; transition: margin 0.3s ease; }

/* TOPBAR */
.dash-topbar {
  background: #fff; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; box-shadow: 0 1px 8px rgba(0,0,0,0.07);
  position: sticky; top: 0; z-index: 500;
}
.dash-topbar-left, .dash-topbar-right { display: flex; align-items: center; gap: 14px; }
.sidebar-toggle { background: none; border: none; cursor: pointer; font-size: 20px; color: var(--secondary); display: none; }
.dash-search { display: flex; align-items: center; gap: 8px; background: var(--bg-light); border-radius: 8px; padding: 8px 14px; min-width: 280px; }
.dash-search i { color: var(--text-light); }
.dash-search input { border: none; background: none; outline: none; font-size: 14px; font-family: var(--font); width: 100%; }
.dash-icon-btn { background: none; border: none; cursor: pointer; font-size: 17px; color: var(--text-light); position: relative; padding: 6px; }
.dash-icon-btn:hover { color: var(--primary); }
.badge { position: absolute; top: 0; right: 0; background: var(--primary); color: #fff; font-size: 9px; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.dash-user { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.dash-user img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.dash-user span { font-size: 14px; font-weight: 600; color: var(--secondary); }
.dash-user i { font-size: 12px; color: var(--text-light); }

/* CONTENT */
.dash-content { padding: 28px; }
.dash-welcome { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg,var(--secondary),#0f1e40); border-radius: 16px; padding: 28px 32px; margin-bottom: 24px; color: #fff; flex-wrap: wrap; gap: 16px; }
.dash-welcome h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.dash-welcome p { color: rgba(255,255,255,0.75); font-size: 14.5px; }
.streak-badge { display: flex; align-items: center; gap: 8px; background: rgba(245,166,35,0.2); color: var(--accent); border: 1px solid rgba(245,166,35,0.4); padding: 10px 18px; border-radius: 30px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.streak-badge i { font-size: 16px; }

/* STAT CARDS */
.dash-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 24px; }
.dash-stat-card { background: #fff; border-radius: 12px; padding: 20px 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.dsc-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.dash-stat-card strong { font-size: 1.6rem; font-weight: 800; color: var(--secondary); }
.dash-stat-card span { font-size: 13px; color: var(--text-light); }
.dsc-trend { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.dsc-trend.up { color: #27ae60; }
.dsc-trend.neutral { color: var(--text-light); }

/* DASH GRID */
.dash-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.dash-card { background: #fff; border-radius: 14px; padding: 22px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.dash-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dash-card-header h3 { font-size: 1rem; font-weight: 700; color: var(--secondary); display: flex; align-items: center; gap: 8px; }
.dash-link { font-size: 13px; color: var(--primary); font-weight: 600; }
.dash-select { padding: 6px 10px; border-radius: 6px; border: 1.5px solid var(--border); font-size: 13px; font-family: var(--font); color: var(--text); background: #fff; outline: none; }
.date-badge { font-size: 13px; color: var(--text-light); background: var(--bg-light); padding: 5px 12px; border-radius: 20px; }
.badge-pill { font-size: 12px; font-weight: 600; color: var(--secondary); background: var(--bg-light); padding: 5px 12px; border-radius: 20px; white-space: nowrap; }
.sidebar-foot { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.08); }
.sidebar-foot p { font-size: 12px; color: rgba(255,255,255,0.4); }

/* UPCOMING TESTS */
.upcoming-list { display: flex; flex-direction: column; gap: 12px; }
.upcoming-item { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 10px; background: var(--bg-light); flex-wrap: wrap; }
.upcoming-item.urgent { background: #fff0f0; border: 1px solid rgba(230,41,31,0.2); }
.upcoming-date { text-align: center; min-width: 56px; }
.upcoming-date strong { display: block; font-size: 13px; font-weight: 700; color: var(--secondary); }
.upcoming-date span { font-size: 12px; color: var(--text-light); }
.upcoming-info { flex: 1; }
.upcoming-info strong { display: block; font-size: 14px; font-weight: 600; color: var(--secondary); margin-bottom: 2px; }
.upcoming-info span { font-size: 12px; color: var(--text-light); }

/* CONTINUE WATCHING */
.continue-list { display: flex; flex-direction: column; gap: 12px; }
.continue-item { display: flex; gap: 12px; align-items: center; }
.continue-thumb { position: relative; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.continue-thumb img { width: 90px; height: 60px; object-fit: cover; display: block; }
.continue-info { flex: 1; }
.continue-info strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--secondary); margin-bottom: 2px; }
.continue-info span { font-size: 12px; color: var(--text-light); display: block; margin-bottom: 6px; }
.continue-info small { font-size: 11px; color: var(--primary); }
.progress-bar-sm { background: var(--border); border-radius: 4px; height: 4px; overflow: hidden; margin-bottom: 2px; }
.progress-bar-sm div { height: 100%; background: var(--primary); border-radius: 4px; }
.duration { position: absolute; bottom: 4px; right: 4px; background: rgba(0,0,0,0.7); color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 3px; }

/* SCHEDULE */
.schedule-list { display: flex; flex-direction: column; }
.schedule-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; }
.sch-time { font-size: 12px; color: var(--text-light); font-weight: 600; min-width: 56px; padding-top: 2px; }
.sch-line { display: flex; flex-direction: column; align-items: center; }
.sch-line span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: block; }
.sch-line.active span { background: var(--primary); box-shadow: 0 0 0 3px rgba(230,41,31,0.2); }
.schedule-item.done .sch-line span { background: #27ae60; }
.sch-content { flex: 1; }
.sch-content strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--secondary); }
.sch-content span { font-size: 12px; color: var(--text-light); }
.sch-status { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 12px; white-space: nowrap; }
.done-badge { background: #e8f8f0; color: #27ae60; }
.now-badge { background: #fff0f0; color: var(--primary); }
.upcoming-badge { background: #eef5ff; color: var(--secondary); }

/* SUBJECT SCORES */
.subject-scores { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.subj-score { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.subj-score span { width: 70px; color: var(--text-light); }
.score-bar { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.score-fill { height: 100%; border-radius: 4px; }
.subj-score strong { width: 36px; text-align: right; font-weight: 700; color: var(--secondary); }

/* RESULT TABLE */
.result-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.result-table th { background: var(--secondary); color: #fff; padding: 12px 14px; text-align: left; font-weight: 600; }
.result-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); }
.result-table tr:hover td { background: var(--bg-light); }
.badge-good { background: #e8f8f0; color: #27ae60; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.badge-avg { background: #fff8e6; color: #e67e22; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; }

/* FILTER BAR */
.filter-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; background: #fff; border-radius: 12px; padding: 16px 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tab { padding: 7px 16px; border-radius: 20px; border: 1.5px solid var(--border); background: #fff; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; transition: var(--transition); font-family: var(--font); }
.filter-tab:hover, .filter-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.filter-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search-box { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--border); border-radius: 8px; padding: 8px 12px; background: #fff; }
.search-box i { color: var(--text-light); }
.search-box input { border: none; outline: none; font-size: 13px; font-family: var(--font); width: 160px; }

/* TEST GRID */
.test-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.test-card { background: #fff; border-radius: 14px; padding: 22px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); border: 1.5px solid var(--border); display: flex; flex-direction: column; gap: 12px; position: relative; transition: var(--transition); }
.test-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.test-card-header { display: flex; justify-content: space-between; align-items: center; }
.test-type-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 12px; }
.full-badge { background: #fff0f0; color: var(--primary); }
.chapter-badge { background: #eef5ff; color: var(--secondary); }
.dpp-badge { background: #e8f8f0; color: #27ae60; }
.prev-badge { background: #fff8e6; color: #e67e22; }
.test-difficulty { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 12px; }
.test-difficulty.hard { background: #fff0f0; color: var(--primary); }
.test-difficulty.medium { background: #fff8e6; color: #e67e22; }
.test-difficulty.easy { background: #e8f8f0; color: #27ae60; }
.test-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--secondary); }
.test-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; flex: 1; }
.test-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.test-meta span { font-size: 12px; color: var(--text-light); display: flex; align-items: center; gap: 4px; }
.test-schedule-info { font-size: 12.5px; color: var(--primary); display: flex; align-items: center; gap: 6px; font-weight: 600; }
.test-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.attempts-count { font-size: 12px; color: var(--text-light); }
.upcoming-test { border-color: var(--accent); background: #fffdf0; }
.attempted-card { opacity: 0.85; }
.attempted-overlay { position: absolute; top: 12px; right: 12px; background: #27ae60; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 12px; display: flex; align-items: center; gap: 4px; }
.test-result-mini { display: flex; gap: 16px; background: var(--bg-light); border-radius: 8px; padding: 10px 14px; }
.test-result-mini div { text-align: center; flex: 1; }
.test-result-mini strong { display: block; font-size: 1rem; font-weight: 800; color: var(--secondary); }
.test-result-mini span { font-size: 11px; color: var(--text-light); }

/* TEST MODAL */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 2000; align-items: center; justify-content: center; }
.modal-box { background: #fff; border-radius: 14px; width: 94vw; max-width: 440px; padding: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.25); }
.modal-box-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-box-header h3 { font-size: 1.1rem; font-weight: 800; color: var(--secondary); display: flex; align-items: center; gap: 8px; }
.modal-box-close { background: none; border: none; font-size: 16px; color: var(--text-light); cursor: pointer; padding: 4px; }
.modal-box-close:hover { color: var(--primary); }
.modal-overlay.open { display: flex; }
.test-modal { background: #fff; border-radius: 16px; width: 95vw; max-width: 900px; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
.test-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; background: var(--secondary); color: #fff; }
.test-modal-header h3 { font-size: 1rem; font-weight: 700; }
.test-modal-header p { font-size: 13px; opacity: 0.75; }
.test-timer { font-size: 1.4rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.test-modal-body { display: grid; grid-template-columns: 180px 1fr; flex: 1; overflow: hidden; }
.question-nav { padding: 16px; background: var(--bg-light); border-right: 1px solid var(--border); overflow-y: auto; }
.q-legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.q-legend::before { content: ''; width: 12px; height: 12px; border-radius: 3px; background: var(--border); display: inline-block; }
.q-legend.answered::before { background: #27ae60; }
.q-legend.marked::before { background: var(--accent); }
.question-numbers { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0; }
.question-area { padding: 24px; overflow-y: auto; }
.question-header { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 13px; color: var(--text-light); }
.q-marks { background: var(--bg-light); padding: 3px 10px; border-radius: 12px; color: var(--secondary); font-weight: 700; }
.question-text { font-size: 15px; font-weight: 500; color: var(--secondary); margin-bottom: 22px; line-height: 1.7; }
.options-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.option { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 8px; cursor: pointer; transition: var(--transition); }
.option:hover { border-color: var(--primary); background: #fff0f0; }
.option input { accent-color: var(--primary); width: auto; }
.question-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.test-modal-footer { display: flex; justify-content: space-between; padding: 14px 24px; border-top: 1px solid var(--border); background: var(--bg-light); }

/* STUDY MATERIAL */
.subject-tabs-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.subj-tab { padding: 8px 18px; border-radius: 20px; border: 1.5px solid var(--border); background: #fff; font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 6px; font-family: var(--font); }
.subj-tab.active, .subj-tab:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.material-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.material-card { display: flex; align-items: flex-start; gap: 14px; background: #fff; border-radius: 12px; padding: 18px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); border: 1.5px solid var(--border); transition: var(--transition); }
.material-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.material-icon { width: 50px; height: 50px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.pdf-icon { background: #fff0f0; color: var(--primary); }
.formula-icon { background: #eef5ff; color: var(--secondary); }
.bio-icon { background: #e8f8f0; color: #27ae60; }
.dpp-icon { background: #fff8e6; color: #e67e22; }
.revision-icon { background: #fdf0ff; color: #8e44ad; }
.material-info { flex: 1; }
.material-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; display: inline-block; margin-bottom: 6px; }
.physics-tag { background: #eef5ff; color: var(--secondary); }
.chemistry-tag { background: #fff0f0; color: var(--primary); }
.bio-tag { background: #e8f8f0; color: #27ae60; }
.material-info h4 { font-size: 14px; font-weight: 700; color: var(--secondary); margin-bottom: 4px; }
.material-info p { font-size: 13px; color: var(--text-light); margin-bottom: 8px; line-height: 1.5; }
.material-meta { display: flex; gap: 14px; font-size: 12px; color: var(--text-light); }
.material-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.btn-icon-action { width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid var(--border); background: #fff; color: var(--text-light); font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.btn-icon-action:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

/* VIDEO LECTURES */
.video-row { display: flex; gap: 16px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
.video-card { flex-shrink: 0; width: 220px; border-radius: 12px; overflow: hidden; background: #fff; border: 1.5px solid var(--border); cursor: pointer; transition: var(--transition); }
.video-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.video-card.continue-video { width: 240px; }
.video-thumb { position: relative; }
.video-thumb img { width: 100%; height: 130px; object-fit: cover; display: block; }
.play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.35); color: #fff; font-size: 24px; opacity: 0; transition: var(--transition); }
.video-card:hover .play-btn { opacity: 1; }
.video-dur { position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,0.7); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px; }
.progress-bar-video { height: 3px; background: var(--border); }
.progress-bar-video div { height: 100%; background: var(--primary); }
.video-info { padding: 12px; }
.video-info h5 { font-size: 13px; font-weight: 700; color: var(--secondary); margin-bottom: 4px; }
.video-info span { font-size: 12px; color: var(--text-light); display: block; }
.video-info small { font-size: 11px; color: var(--primary); margin-top: 4px; display: block; }

/* CHAPTER ACCORDION */
.chapter-accordion { display: flex; flex-direction: column; gap: 12px; }
.chapter-group { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.06); border: 1.5px solid var(--border); }
.chapter-group-header { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: #fff; border: none; cursor: pointer; font-family: var(--font); transition: var(--transition); }
.chapter-group-header:hover { background: var(--bg-light); }
.chapter-group-header div { display: flex; align-items: center; gap: 12px; }
.chapter-group-header strong { font-size: 15px; font-weight: 700; color: var(--secondary); }
.chapter-group-header small { font-size: 12px; color: var(--text-light); margin-left: 4px; }
.chapter-group-header i { color: var(--text-light); transition: var(--transition); }
.chapter-list { padding: 0 0 16px; display: none; }
.chapter-list.open { display: block; }
.chapter-item { padding: 10px 20px 0; }
.chapter-title { font-size: 13.5px; font-weight: 600; color: var(--secondary); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.chapter-dot { font-size: 8px; color: var(--primary); }
.chapter-videos { display: flex; gap: 12px; flex-wrap: wrap; }
.video-card.sm { width: 200px; flex-shrink: 0; }
.video-thumb-sm { position: relative; }
.video-thumb-sm img { width: 100%; height: 110px; object-fit: cover; }
.play-btn-sm { position: absolute; inset: 0; background: rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; opacity: 0; transition: var(--transition); }
.video-card:hover .play-btn-sm { opacity: 1; }
.video-dur-sm { position: absolute; bottom: 4px; right: 4px; background: rgba(0,0,0,0.7); color: #fff; font-size: 10px; padding: 2px 5px; border-radius: 3px; }
.video-info-sm { padding: 10px 10px 12px; }
.video-info-sm h6 { font-size: 12.5px; font-weight: 700; color: var(--secondary); margin-bottom: 2px; }
.video-info-sm span { font-size: 11px; color: var(--text-light); }
.done-tick { position: absolute; top: 6px; right: 6px; color: #27ae60; font-size: 16px; }
.video-card.sm { position: relative; }
.subj-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.physics-dot { background: var(--secondary); }
.chemistry-dot { background: var(--primary); }
.biology-dot { background: #27ae60; }

/* VIDEO PLAYER MODAL */
.video-player-modal { background: #fff; border-radius: 16px; width: 95vw; max-width: 1000px; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
.vpm-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: var(--secondary); color: #fff; }
.vpm-header h4 { font-size: 15px; font-weight: 700; }
.vpm-header button { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 18px; cursor: pointer; }
.vpm-body { display: grid; grid-template-columns: 1fr 280px; flex: 1; overflow: hidden; }
.video-player-area { background: #000; display: flex; flex-direction: column; }
.player-controls { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #1a1a1a; }
.player-controls button { background: none; border: none; color: #fff; cursor: pointer; font-size: 14px; }
.play-pause-btn { font-size: 18px !important; }
.player-progress { flex: 1; height: 4px; background: rgba(255,255,255,0.2); border-radius: 4px; cursor: pointer; }
.player-fill { height: 100%; background: var(--primary); border-radius: 4px; }
.player-time { font-size: 12px; color: rgba(255,255,255,0.7); white-space: nowrap; }
.speed-sel { background: rgba(255,255,255,0.15); color: #fff; border: none; padding: 3px 6px; border-radius: 4px; font-size: 12px; }
.vpm-sidebar { border-left: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; }
.vpm-tabs { display: flex; border-bottom: 1px solid var(--border); }
.vpm-tab { flex: 1; padding: 10px; border: none; background: none; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text-light); font-family: var(--font); }
.vpm-tab.active { color: var(--primary); border-bottom: 2px solid var(--primary); }
.playlist-list { overflow-y: auto; flex: 1; }
.playlist-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; transition: var(--transition); border-bottom: 1px solid var(--border); }
.playlist-item:hover { background: var(--bg-light); }
.playlist-item.active { background: #fff0f0; }
.pi-num { width: 22px; height: 22px; border-radius: 50%; background: var(--border); color: var(--text-light); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.playlist-item strong { display: block; font-size: 13px; font-weight: 600; color: var(--secondary); }
.playlist-item small { font-size: 11px; color: var(--text-light); }

/* CHART CONTAINER */
.chart-container { background: var(--bg-light); border-radius: 10px; height: 180px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; position: relative; overflow: hidden; }

/* RESPONSIVE DASHBOARD */
@media (max-width: 1100px) {
  .test-grid { grid-template-columns: repeat(2,1fr); }
  .material-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-260px); }
  .sidebar.open { transform: translateX(0); }
  .dashboard-main { margin-left: 0; }
  .sidebar-toggle, .sidebar-close { display: block; }
  .dash-stats-grid { grid-template-columns: repeat(2,1fr); }
  .dash-grid-2col { grid-template-columns: 1fr; }
  .test-grid { grid-template-columns: 1fr; }
  .test-modal-body { grid-template-columns: 1fr; }
  .vpm-body { grid-template-columns: 1fr; }
  .vpm-sidebar { display: none; }
}
@media (max-width: 600px) {
  .dash-stats-grid { grid-template-columns: 1fr 1fr; }
  .dash-search { display: none; }
  .dash-content { padding: 16px; }
}

/* MOCK TEST PAGINATION + TAB WARN */
.pagination .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.tab-warn-box {
  background: #fff;
  border-radius: 16px;
  padding: 36px 40px;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
}
.tab-warn-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff0f0;
  color: var(--primary);
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.tab-warn-box h3 { font-size: 1.3rem; font-weight: 800; color: var(--secondary); margin-bottom: 10px; }
.tab-warn-box p { font-size: 14px; color: var(--text-light); line-height: 1.6; margin-bottom: 8px; }
.tab-warn-count { font-weight: 800; color: var(--primary); font-size: 1.05rem; }

/* PARENT DASHBOARD */
.parent-child-row { display: flex; gap: 16px; flex-wrap: wrap; }
.parent-child-item { flex: 1; min-width: 160px; background: var(--bg-light); border-radius: 10px; padding: 14px 16px; }
.parent-child-item span { display: block; font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.parent-child-item strong { font-size: 14px; font-weight: 700; color: var(--secondary); }
.fee-summary { display: flex; flex-direction: column; gap: 10px; }
.fee-row { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px dashed var(--border); padding-bottom: 8px; }
.fee-row span { font-size: 13.5px; color: var(--text-light); }
.fee-row strong { font-size: 14.5px; font-weight: 700; color: var(--secondary); }
.fee-progress { margin-top: 14px; }
.fee-progress small { display: block; font-size: 12px; color: var(--text-light); margin-top: 6px; }
.att-row { display: flex; align-items: center; gap: 12px; }
.att-row span { width: 58px; font-size: 12.5px; color: var(--text-light); flex-shrink: 0; }
.att-row strong { font-size: 12.5px; font-weight: 700; color: var(--secondary); width: 40px; text-align: right; flex-shrink: 0; }
