/* ============================================
   STIA BAYUANGGA — Dashboard Layout v2.0
   Premium Sidebar + Glass Topbar + Content
   ============================================ */

/* ======= LAYOUT SHELL ======= */
.dash {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  background: var(--bg-secondary);
  overflow-x: hidden;
  max-width: 100vw;
}

/* ======= SIDEBAR ======= */
.dash-sidebar {
  background: var(--bg-dark);
  background-image: var(--gradient-sidebar);
  padding: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.04);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 260px;
  z-index: 900;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Sidebar scrollbar */
.dash-sidebar::-webkit-scrollbar { width: 3px; }
.dash-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  transition: opacity 0.2s;
}
.sidebar-brand:hover { opacity: 0.9; }
.sidebar-brand-logo {
  width: 40px; height: 40px;
  border-radius: var(--radius-lg); object-fit: cover;
  border: 2px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  padding: 2px;
}
.sidebar-brand-name {
  font-family: var(--font-heading);
  font-weight: var(--font-extrabold); font-size: 0.92rem;
  color: #fff; letter-spacing: 0.5px;
}
.sidebar-brand-sub {
  font-size: 0.62rem; color: var(--accent-400);
  font-weight: var(--font-semibold); text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* User info card in sidebar */
.sidebar-user {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-avatar {
  width: 38px; height: 38px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: var(--font-bold); font-size: 0.82rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}
.sidebar-user-name {
  font-size: 0.78rem; font-weight: var(--font-semibold); color: #fff;
  word-break: break-word; line-height: 1.3;
}
.sidebar-user-role {
  font-size: 0.68rem; color: rgba(255,255,255,0.4);
  text-transform: capitalize; margin-top: 2px;
}

/* Nav groups */
.sidebar-label {
  display: block;
  padding: 20px 20px 8px;
  font-size: 0.62rem; font-weight: var(--font-bold);
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.sidebar-nav {
  display: flex; flex-direction: column;
  gap: 2px; padding: 0 10px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.84rem; font-weight: var(--font-medium);
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
  border: none; background: none; width: 100%;
  text-align: left;
  position: relative;
}
.sidebar-link:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.9); }
.sidebar-link.active {
  background: rgba(59,130,246,0.12);
  color: var(--primary-400);
}
.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: -10px; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--primary-400);
  border-radius: 0 3px 3px 0;
}
.sidebar-link svg { width: 18px; height: 18px; opacity: 0.5; flex-shrink: 0; }
.sidebar-link:hover svg { opacity: 0.8; }
.sidebar-link.active svg { opacity: 1; color: var(--primary-400); }

.sidebar-badge {
  margin-left: auto;
  background: var(--danger-500);
  color: #fff;
  font-size: 0.62rem; font-weight: var(--font-bold);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  min-width: 18px; text-align: center;
}

/* Sidebar footer */
.sidebar-footer {
  margin-top: auto;
  padding: 12px 8px 16px;
  border-top: 1px solid hsl(0 0% 100% / 0.06);
}

/* ======= TOPBAR (Dashboard) ======= */
.dash-topbar {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  position: sticky; top: 0;
  z-index: 800;
  margin-left: 260px;
}
.dash-topbar-left {
  display: flex; align-items: center; gap: 12px;
}
.dash-topbar-left h1 {
  font-family: var(--font-heading);
  font-size: 1.15rem; font-weight: var(--font-bold);
  color: var(--text-primary);
}
.dash-topbar-left p {
  font-size: 0.78rem; color: var(--text-muted);
}
.dash-topbar-right {
  display: flex; align-items: center; gap: 8px;
}
.topbar-icon-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.06);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.25s var(--ease-out);
  position: relative;
}
.topbar-icon-btn:hover { background: var(--gray-50); color: var(--primary-600); border-color: var(--primary-100); }
.topbar-icon-btn svg { width: 18px; height: 18px; }
.topbar-icon-btn .notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--danger-500);
  border-radius: 50%;
  border: 2px solid #fff;
}

/* Hamburger for mobile */
.dash-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 6px;
  color: var(--text-primary);
}
.dash-hamburger svg { width: 22px; height: 22px; }

/* ======= CONTENT AREA ======= */
.dash-content {
  padding: 24px 28px 48px;
  margin-left: 260px;
  min-height: calc(100vh - 64px);
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

/* ======= STAT CARDS ======= */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-box {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 22px 20px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: var(--shadow-card);
  display: flex; align-items: flex-start; gap: 16px;
  transition: all 0.35s var(--ease-out);
}
.stat-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon.blue { background: var(--primary-50); color: var(--primary-600); }
.stat-icon.gold { background: var(--accent-50); color: var(--accent-600); }
.stat-icon.green { background: var(--emerald-50); color: var(--emerald-600); }
.stat-icon.purple { background: var(--violet-50); color: var(--violet-600); }
.stat-icon.rose { background: var(--rose-50); color: var(--rose-600); }
.stat-icon.cyan { background: var(--cyan-50); color: var(--cyan-600); }
.stat-icon svg { width: 22px; height: 22px; }
.stat-info { flex: 1; }
.stat-label { font-size: 0.76rem; color: var(--text-muted); font-weight: var(--font-medium); margin-bottom: 6px; }
.stat-value {
  font-family: var(--font-heading);
  font-size: 1.6rem; font-weight: var(--font-extrabold);
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
}
.stat-sub { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }

/* ======= DASHBOARD CARDS ======= */
.dash-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 20px;
}
.dash-card-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid hsl(0 0% 0% / 0.04);
}
.dash-card-head h3 {
  font-size: 0.95rem; font-weight: 700;
  color: hsl(215 55% 20%);
}
.dash-card-body {
  padding: 16px 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ======= TWO-COLUMN GRID ======= */
.dash-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}

/* ======= SCHEDULE TABLE ======= */
.sch-table { width: 100%; border-collapse: collapse; }
.sch-table th {
  font-size: 0.72rem; font-weight: 600;
  color: hsl(215 15% 55%);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid hsl(0 0% 0% / 0.06);
}
.sch-table td {
  font-size: 0.84rem;
  color: hsl(215 30% 30%);
  padding: 10px 12px;
  border-bottom: 1px solid hsl(0 0% 0% / 0.03);
}
.sch-table tr:last-child td { border-bottom: none; }
.sch-table tr:hover td { background: hsl(215 20% 98%); }
.sch-day {
  font-weight: 600; color: hsl(215 55% 30%);
}
.sch-time {
  font-size: 0.78rem; color: hsl(215 15% 55%);
  font-variant-numeric: tabular-nums;
}

/* ======= TASK LIST ======= */
.task-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid hsl(0 0% 0% / 0.04);
}
.task-item:last-child { border-bottom: none; }
.task-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 6px; flex-shrink: 0;
}
.task-dot.danger { background: hsl(0 70% 55%); }
.task-dot.warning { background: hsl(42 92% 50%); }
.task-dot.info { background: hsl(215 55% 60%); }
.task-dot.success { background: hsl(150 50% 45%); }
.task-body h4 { font-size: 0.88rem; font-weight: 600; color: hsl(215 55% 22%); margin-bottom: 2px; }
.task-body p { font-size: 0.76rem; color: hsl(215 15% 55%); }
.task-body .task-meta {
  display: flex; gap: 12px; margin-top: 4px;
  font-size: 0.72rem; color: hsl(215 15% 60%);
}
.task-meta span { display: inline-flex; align-items: center; gap: 3px; }
.task-meta svg { width: 12px; height: 12px; opacity: 0.5; }

/* ======= PROGRESS BAR ======= */
.progress-wrap {
  background: hsl(215 20% 94%);
  border-radius: 100px;
  height: 6px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  border-radius: 100px;
  background: hsl(215 55% 50%);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-bar.gold { background: hsl(42 92% 50%); }
.progress-bar.green { background: hsl(150 50% 45%); }

/* ======= COURSE CARD ======= */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.course-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid hsl(0 0% 0% / 0.04);
  transition: all 0.25s;
  cursor: pointer;
  text-decoration: none; color: inherit;
}
.course-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px hsl(215 40% 10% / 0.06); }
.course-card-code {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700;
  color: hsl(215 55% 40%);
  background: hsl(215 60% 95%);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.course-card h4 { font-size: 0.95rem; font-weight: 700; color: hsl(215 55% 20%); margin-bottom: 4px; }
.course-card p { font-size: 0.78rem; color: hsl(215 15% 55%); margin-bottom: 12px; }
.course-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.74rem; color: hsl(215 15% 55%);
}

/* ======= GPA CHART PLACEHOLDER ======= */
.gpa-display {
  text-align: center;
  padding: 20px 0;
}
.gpa-circle {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: conic-gradient(
    hsl(215 55% 50%) calc(var(--pct) * 1%),
    hsl(215 20% 94%) 0
  );
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  position: relative;
}
.gpa-circle::after {
  content: '';
  width: 110px; height: 110px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
}
.gpa-num {
  position: relative; z-index: 1;
  font-size: 2rem; font-weight: 800;
  color: hsl(215 55% 25%);
}
.gpa-label { font-size: 0.82rem; color: hsl(215 15% 55%); }

/* ======= MOBILE RESPONSIVE ======= */
.mobile-sidebar-overlay {
  position: fixed; inset: 0;
  background: hsl(0 0% 0% / 0.5);
  z-index: 850;
  opacity: 0; visibility: hidden;
  transition: all 0.3s;
}
.mobile-sidebar-overlay.open { opacity: 1; visibility: visible; }

/* ======= LAPTOP / TABLET (≤ 1280px) ======= */
@media (max-width: 1280px) {
  .dash-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 900;
  }
  .dash-sidebar.open { transform: translateX(0); }
  .dash-topbar { margin-left: 0; padding: 0 20px; }
  .dash-content { margin-left: 0; padding: 20px; }
  .dash-hamburger { display: block; }
  .dash-grid { grid-template-columns: 1.1fr 1fr; gap: 16px; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ======= TABLET (≤ 1024px) ======= */
@media (max-width: 1024px) {
  .dash-topbar { padding: 0 16px; }
  .dash-topbar-left h1 { font-size: 1.05rem; }
  .dash-content { padding: 18px 16px; }
  .dash-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-box { padding: 18px; }
  .stat-value { font-size: 1.35rem; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .sch-table th { font-size: 0.7rem; }
  .sch-table td { font-size: 0.8rem; }
}

/* ======= SMALL TABLET (≤ 900px) ======= */
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-box { padding: 16px; gap: 10px; }
  .stat-value { font-size: 1.25rem; }
  .stat-icon { width: 40px; height: 40px; border-radius: 10px; }
  .dash-card-head h3 { font-size: 0.9rem; }
  .dash-content { padding: 16px 14px; }
  .course-grid { grid-template-columns: 1fr; }
}

/* ======= MOBILE (≤ 768px) ======= */
@media (max-width: 768px) {
  .dash-topbar { height: 56px; padding: 0 12px; }
  .dash-topbar-left h1 { font-size: 1rem; }
  .dash-topbar-left p { font-size: 0.72rem; }
  .dash-content { padding: 14px 12px 28px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-box { padding: 14px; gap: 10px; }
  .stat-icon { width: 36px; height: 36px; border-radius: 10px; }
  .stat-value { font-size: 1.2rem; }
  .stat-label { font-size: 0.7rem; }
  .stat-sub { font-size: 0.65rem; }
  .dash-card-head { padding: 12px 14px; }
  .dash-card-head h3 { font-size: 0.85rem; }
  .dash-card-body { padding: 12px 14px; }
  .sch-table th { font-size: 0.68rem; padding: 6px 8px; }
  .sch-table td { font-size: 0.76rem; padding: 8px; }
  .task-body h4 { font-size: 0.82rem; }
  .gpa-circle { width: 120px; height: 120px; }
  .gpa-circle::after { width: 95px; height: 95px; }
  .gpa-num { font-size: 1.6rem; }
  .course-grid { grid-template-columns: 1fr; }
}

/* ======= SMALL MOBILE (≤ 640px) ======= */
@media (max-width: 640px) {
  .dash-content { padding: 12px 10px 24px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-box { padding: 12px; gap: 8px; }
  .stat-icon { width: 34px; height: 34px; }
  .stat-value { font-size: 1.1rem; }
  .stat-label { font-size: 0.68rem; }
  .dash-topbar { height: 52px; }
  .dash-topbar-left h1 { font-size: 0.95rem; }
}

/* ======= SMALL MOBILE (≤ 480px) ======= */
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .dash-content { padding: 10px 8px 20px; }
  .dash-topbar { height: 50px; }
  .dash-topbar-left h1 { font-size: 0.9rem; }
  .stat-box { padding: 14px; }
  .stat-icon { width: 34px; height: 34px; }
  .stat-value { font-size: 1.15rem; }
  .dash-card { border-radius: 10px; }
  .task-item { gap: 8px; padding: 10px 0; }
  .task-body h4 { font-size: 0.78rem; }
  .task-body p { font-size: 0.72rem; }
}

/* ======= TINY MOBILE (≤ 375px) ======= */
@media (max-width: 375px) {
  .dash-content { padding: 8px 6px 16px; }
  .stat-box { flex-direction: column; text-align: center; padding: 12px; }
  .stat-icon { margin: 0 auto; }
  .stat-value { font-size: 1.05rem; }
  .gpa-circle { width: 100px; height: 100px; }
  .gpa-circle::after { width: 78px; height: 78px; }
  .gpa-num { font-size: 1.3rem; }
  .dash-topbar-left h1 { font-size: 0.85rem; }
  .dash-card-head { padding: 10px 12px; }
  .dash-card-body { padding: 10px 12px; }
  .sch-table th { font-size: 0.62rem; padding: 5px 6px; }
  .sch-table td { font-size: 0.7rem; padding: 6px; }
}

/* ======= SKIP-TO-CONTENT (ISO 40500 / WCAG 2.1) ======= */
.skip-to-content {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  background: hsl(215 55% 25%);
  color: #fff;
  padding: 10px 24px;
  border-radius: 0 0 10px 10px;
  font-size: 0.82rem; font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-to-content:focus {
  top: 0;
  outline: 3px solid hsl(42 90% 55%);
  outline-offset: 2px;
}

/* ======= ISO BADGES FOOTER ======= */
.dash-iso-footer {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 12px;
  padding: 20px 0 8px;
  margin-top: 24px;
  border-top: 1px solid hsl(215 15% 90%);
}
.dash-iso-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 600;
  color: hsl(215 15% 55%);
  background: hsl(215 20% 96%);
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.dash-iso-badge svg { width: 13px; height: 13px; opacity: 0.6; }

/* ======= FOCUS-VISIBLE (ISO 9241 + 40500) ======= */
.sidebar-link:focus-visible,
.topbar-icon-btn:focus-visible,
.dash-hamburger:focus-visible {
  outline: 2px solid hsl(42 90% 55%);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ======= SUB-PAGE STYLES ======= */
.page-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 700;
  color: hsl(215 40% 20%);
  margin-bottom: 20px;
}
.page-title svg { width: 22px; height: 22px; color: hsl(215 55% 45%); }

/* Course grid */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.course-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid hsl(215 15% 90%);
  transition: transform 0.2s, box-shadow 0.2s;
}
.course-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.course-card h3 { font-size: 1rem; font-weight: 700; color: hsl(215 40% 20%); margin: 8px 0 6px; }
.course-card h4 { font-size: 0.88rem; font-weight: 600; color: hsl(215 40% 20%); margin: 10px 0 4px; }
.course-card p { font-size: 0.78rem; color: hsl(215 15% 50%); margin: 0; }
.course-card-header { display: flex; justify-content: space-between; align-items: center; }
.course-card-code { font-size: 0.72rem; font-weight: 700; color: hsl(215 55% 45%); background: hsl(215 60% 95%); padding: 3px 10px; border-radius: 20px; }
.course-card-dosen, .course-card-jadwal { display: flex; align-items: center; gap: 6px; font-size: 0.76rem !important; }
.course-card-dosen svg, .course-card-jadwal svg { width: 13px; height: 13px; }
.course-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid hsl(215 15% 93%);
  font-size: 0.72rem; color: hsl(215 15% 55%);
}

/* Small buttons */
.btn-sm {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 14px; border-radius: 8px;
  font-size: 0.72rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-sm:hover { transform: scale(1.03); }
.btn-sm.blue { background: hsl(215 60% 92%); color: hsl(215 55% 40%); }
.btn-sm.blue:hover { background: hsl(215 60% 85%); }
.btn-sm.gold { background: hsl(42 80% 90%); color: hsl(42 60% 30%); }
.btn-sm.gold:hover { background: hsl(42 80% 82%); }
.btn-sm svg { width: 13px; height: 13px; }

/* Video card */
.video-card { padding: 0; overflow: hidden; }
.video-card h4, .video-card p { padding: 0 16px; }
.video-card h4 { margin-top: 14px; }
.video-card .course-card-foot { margin: 0 16px 14px; padding-top: 8px; }
.video-thumb {
  position: relative;
  background: linear-gradient(135deg, hsl(215 55% 25%), hsl(215 40% 40%));
  height: 120px;
  display: flex; align-items: center; justify-content: center;
}
.video-play-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  transition: transform 0.2s;
}
.video-card:hover .video-play-icon { transform: scale(1.15); }
.video-play-icon svg { width: 20px; height: 20px; color: #fff; }
.video-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.6); color: #fff;
  font-size: 0.68rem; font-weight: 600;
  padding: 2px 8px; border-radius: 4px;
}

/* Stat icon red variant */
.stat-icon.red { background: hsl(0 60% 93%); color: hsl(0 60% 45%); }

@media (max-width: 640px) {
  .course-grid { grid-template-columns: 1fr; }
  .sch-table { font-size: 0.7rem; }
  .sch-table th, .sch-table td { padding: 8px 6px; }
}

/* ======= COURSE DETAIL VIEW ======= */
/* Course Detail Banner */
.el-detail-banner {
  border-radius: 16px;
  padding: 16px 22px 18px;
  margin-bottom: 14px;
  color: #fff;
  position: relative; overflow: hidden;
  animation: el-fadeInUp 0.4s ease both;
}
.el-detail-banner::before {
  content: ''; position: absolute; top: -50%; right: -15%;
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.el-detail-banner::after {
  content: ''; position: absolute; bottom: -40%; left: 20%;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.el-detail-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15); border: none; cursor: pointer;
  font-size: 0.75rem; font-weight: 600;
  color: #fff;
  padding: 5px 12px;
  border-radius: 8px;
  transition: background 0.2s;
  margin-bottom: 10px;
  backdrop-filter: blur(4px);
}
.el-detail-back:hover { background: rgba(255,255,255,0.25); }
.el-detail-back svg { width: 14px; height: 14px; }
.el-detail-banner-body {
  display: flex; justify-content: space-between; align-items: center;
  position: relative; z-index: 1;
}
.el-detail-badge {
  display: inline-block; background: rgba(255,255,255,0.2);
  padding: 2px 10px; border-radius: 6px;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.4px;
  margin-bottom: 4px;
  backdrop-filter: blur(4px);
}
.el-detail-title {
  font-size: 1.15rem; font-weight: 700; margin: 0 0 4px;
  line-height: 1.3;
}
.el-detail-sub {
  font-size: 0.72rem; opacity: 0.85; margin: 0;
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.el-detail-sub svg { width: 13px; height: 13px; }
.el-detail-progress-ring {
  position: relative; flex-shrink: 0;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  padding: 6px;
  backdrop-filter: blur(8px);
}
.el-detail-ring-text {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 0.82rem; font-weight: 700; color: #fff;
}

@media (max-width: 768px) {
  .el-detail-banner { padding: 16px 20px 20px; border-radius: 12px; }
  .el-detail-title { font-size: 1.15rem; }
  .el-detail-sub { font-size: 0.72rem; }
  .el-detail-progress-ring svg { width: 56px; height: 56px; }
  .el-detail-ring-text { font-size: 0.72rem; }
}
@media (max-width: 480px) {
  .el-detail-banner-body { flex-direction: column; text-align: center; gap: 14px; }
  .el-detail-title { font-size: 1rem; }
}

/* Tab bar */
.course-tabs {
  display: flex; gap: 4px;
  background: #fff;
  border-radius: 12px 12px 0 0;
  padding: 6px 8px 0;
  border: 1px solid hsl(215 15% 90%);
  border-bottom: none;
  overflow-x: auto;
}
.course-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  background: none; border: none;
  font-size: 0.78rem; font-weight: 600;
  color: hsl(215 15% 55%);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s;
  white-space: nowrap;
}
.course-tab:hover { background: hsl(215 20% 97%); color: hsl(215 40% 35%); }
.course-tab.active {
  color: hsl(215 55% 40%);
  border-bottom-color: hsl(215 55% 45%);
  background: hsl(215 60% 96%);
}
.course-tab svg { width: 15px; height: 15px; }
.tab-badge {
  background: hsl(0 70% 55%); color: #fff;
  font-size: 0.6rem; font-weight: 700;
  padding: 1px 6px; border-radius: 10px;
  min-width: 16px; text-align: center;
}
.course-tab-content {
  border-radius: 0 0 14px 14px !important;
  border-top: 1px solid hsl(215 15% 90%) !important;
}

@media (max-width: 640px) {
  .course-detail-info h2 { font-size: 1.1rem; }
  .course-tab { padding: 8px 12px; font-size: 0.72rem; }
  .course-tabs { gap: 2px; padding: 4px 4px 0; }
}

/* ==============================================
   PREMIUM E-LEARNING DASHBOARD
   ============================================== */

/* ---- Entrance Animations ---- */
@keyframes el-fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes el-fadeInScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes el-ringGrow {
  from { stroke-dasharray: 0, 100; }
}
@keyframes el-slideRight {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Welcome Banner */
.el-welcome-banner {
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(135deg, hsl(220 60% 22%) 0%, hsl(215 55% 32%) 30%, hsl(240 50% 38%) 60%, hsl(260 45% 42%) 100%);
  border-radius: 18px; padding: 32px 36px;
  color: #fff; margin-bottom: 14px;
  position: relative; overflow: hidden;
  animation: el-fadeInUp 0.5s ease both;
  box-shadow: 0 8px 32px rgba(30,58,95,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
}
/* Animated gradient shift */
.el-welcome-banner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(45deg, rgba(99,102,241,0.15) 0%, transparent 40%, rgba(16,185,129,0.1) 70%, transparent 100%);
  animation: el-gradientShift 6s ease-in-out infinite alternate;
}
@keyframes el-gradientShift {
  0% { opacity: 0.4; transform: scale(1) translateX(0); }
  100% { opacity: 0.8; transform: scale(1.1) translateX(-3%); }
}
/* Geometric decorations */
.el-welcome-banner::after {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 180px; height: 180px;
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: 50%;
}
.el-welcome-text { position: relative; z-index: 1; flex: 1; }
.el-welcome-text h2 {
  font-size: 1.5rem; font-weight: 800; margin: 8px 0 10px;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.el-welcome-text p {
  font-size: 0.84rem; opacity: 0.88; line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.el-welcome-text p strong { color: #fff; opacity: 1; font-weight: 700; }
.el-welcome-date {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; opacity: 0.85;
  background: rgba(255,255,255,0.12); padding: 5px 14px;
  border-radius: 20px; backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
  font-weight: 500;
}
.el-welcome-date svg { width: 12px; height: 12px; }

/* Progress ring — glassmorphic container */
.el-welcome-stats {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 16px; padding: 14px 18px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
}
.el-mini-ring { width: 80px; height: 80px; position: relative; }
.el-mini-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.el-ring-bg { fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 3; }
.el-ring-fill {
  fill: none; stroke: #10b981; stroke-width: 3.5; stroke-linecap: round;
  animation: el-ringGrow 1.2s cubic-bezier(0.4,0,0.2,1) both; animation-delay: 0.3s;
  filter: drop-shadow(0 0 6px rgba(16,185,129,0.4));
}
.el-ring-text {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-size: 0.9rem; font-weight: 800; color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.el-ring-label { font-size: 0.66rem; opacity: 0.75; text-align: center; font-weight: 500; }

/* ===== Stat Cards Row — Premium ===== */
.el-stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 14px;
}
.el-stat-card {
  background: #fff; border-radius: 14px; padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  border: 1px solid hsl(215 15% 91%);
  position: relative; overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  animation: el-fadeInScale 0.4s ease both;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.el-stat-card:nth-child(1) { animation-delay: 0.08s; }
.el-stat-card:nth-child(2) { animation-delay: 0.14s; }
.el-stat-card:nth-child(3) { animation-delay: 0.20s; }
.el-stat-card:nth-child(4) { animation-delay: 0.26s; }
/* Shimmer sweep */
.el-stat-card::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s ease;
}
.el-stat-card:hover::after { left: 100%; }
.el-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  border-color: hsl(215 30% 85%);
}
.el-stat-card-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.el-stat-card:hover .el-stat-card-icon { transform: scale(1.08) rotate(-2deg); }
.el-stat-card-icon svg { width: 21px; height: 21px; }
.el-stat-card-info { flex: 1; position: relative; z-index: 1; }
.el-stat-card-num { font-size: 1.6rem; font-weight: 800; line-height: 1; display: block; letter-spacing: -0.5px; }
.el-stat-card-label { font-size: 0.7rem; color: hsl(215 15% 50%); margin-top: 3px; display: block; font-weight: 500; }
.el-stat-card-badge {
  font-size: 0.58rem; font-weight: 700; padding: 3px 9px;
  border-radius: 20px; white-space: nowrap;
  position: relative; z-index: 1;
  letter-spacing: 0.2px;
}

/* Color variants — with gradient icon bg */
.el-stat-blue .el-stat-card-icon { background: linear-gradient(135deg, hsl(215 65% 88%), hsl(215 60% 92%)); color: hsl(215 55% 42%); box-shadow: 0 3px 10px rgba(37,99,235,0.12); }
.el-stat-blue .el-stat-card-num { color: hsl(215 55% 32%); }
.el-stat-blue .el-stat-card-badge { background: hsl(215 60% 94%); color: hsl(215 55% 38%); }

.el-stat-amber .el-stat-card-icon { background: linear-gradient(135deg, hsl(38 85% 86%), hsl(38 80% 90%)); color: hsl(38 70% 38%); box-shadow: 0 3px 10px rgba(245,158,11,0.12); }
.el-stat-amber .el-stat-card-num { color: hsl(38 70% 28%); }
.el-stat-amber .el-stat-card-badge { background: hsl(38 80% 92%); color: hsl(38 70% 32%); }

.el-stat-green .el-stat-card-icon { background: linear-gradient(135deg, hsl(150 55% 86%), hsl(150 50% 90%)); color: hsl(150 50% 32%); box-shadow: 0 3px 10px rgba(16,185,129,0.12); }
.el-stat-green .el-stat-card-num { color: hsl(150 50% 22%); }
.el-stat-green .el-stat-card-badge { background: hsl(150 50% 92%); color: hsl(150 50% 28%); }

.el-stat-purple .el-stat-card-icon { background: linear-gradient(135deg, hsl(270 55% 88%), hsl(270 50% 92%)); color: hsl(270 50% 40%); box-shadow: 0 3px 10px rgba(139,92,246,0.12); }
.el-stat-purple .el-stat-card-num { color: hsl(270 50% 28%); }
.el-stat-purple .el-stat-card-badge { background: hsl(270 50% 94%); color: hsl(270 50% 36%); }

/* Section Title */
.el-section-title {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.el-section-title h3 {
  font-size: 0.92rem; font-weight: 700; color: hsl(215 40% 20%);
  display: flex; align-items: center; gap: 6px;
}
.el-see-all {
  font-size: 0.74rem; font-weight: 600; color: hsl(215 55% 45%);
  cursor: pointer; text-decoration: none; transition: color 0.2s;
}
.el-see-all:hover { color: hsl(215 55% 35%); }

/* Section Title */
.el-section-title { animation: el-fadeInUp 0.4s ease both; animation-delay: 0.35s; }

/* ===== Compact Progress Grid ===== */
.el-progress-compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.el-pc-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid hsl(215 15% 92%);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  animation: el-fadeInUp 0.45s ease both;
  position: relative;
  overflow: hidden;
}
.el-pc-card:nth-child(1) { animation-delay: 0.38s; }
.el-pc-card:nth-child(2) { animation-delay: 0.44s; }
.el-pc-card:nth-child(3) { animation-delay: 0.50s; }
.el-pc-card:nth-child(4) { animation-delay: 0.56s; }
.el-pc-card:nth-child(5) { animation-delay: 0.62s; }
.el-pc-card:nth-child(6) { animation-delay: 0.68s; }
.el-pc-card:nth-child(7) { animation-delay: 0.74s; }

.el-pc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, hsl(215 55% 50%), hsl(215 45% 65%));
  opacity: 0; transition: opacity 0.3s ease;
}
.el-pc-card:hover::before { opacity: 1; }
.el-pc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  border-color: hsl(215 30% 85%);
}
.el-pc-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.el-pc-icon {
  font-size: 1.3rem;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.12));
  transition: transform 0.3s ease;
}
.el-pc-card:hover .el-pc-icon { transform: scale(1.15) rotate(5deg); }
.el-pc-pct {
  font-size: 0.88rem; font-weight: 800; letter-spacing: -0.5px;
}
.el-pc-title {
  font-size: 0.78rem; font-weight: 700; color: hsl(215 40% 18%);
  margin: 0 0 3px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.el-pc-sub {
  display: block; font-size: 0.62rem; color: hsl(215 15% 55%);
  margin-bottom: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.el-pc-bar {
  height: 4px; background: hsl(215 15% 93%); border-radius: 3px;
  overflow: hidden; margin-bottom: 5px;
}
.el-pc-bar-fill {
  height: 100%; border-radius: 3px;
  animation: el-progressGrow 0.8s ease-out both;
  transition: width 0.5s ease;
}
.el-pc-meta {
  font-size: 0.58rem; color: hsl(215 15% 60%); font-weight: 500;
}

/* Old progress grid (keep for backward compat) */
.el-progress-grid { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.el-progress-card {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border-radius: 14px; padding: 14px 18px;
  border: 1px solid hsl(215 15% 92%);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  animation: el-slideRight 0.4s ease both;
}
.el-progress-card:nth-child(1) { animation-delay: 0.4s; }
.el-progress-card:nth-child(2) { animation-delay: 0.48s; }
.el-progress-card:nth-child(3) { animation-delay: 0.56s; }
.el-progress-card:nth-child(4) { animation-delay: 0.64s; }
.el-progress-card:nth-child(5) { animation-delay: 0.72s; }
.el-progress-card:hover {
  transform: translateX(6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border-color: hsl(215 40% 78%);
  background: hsl(215 20% 99%);
}
.el-progress-ring-wrap { width: 48px; height: 48px; position: relative; flex-shrink: 0; }
.el-progress-ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.el-progress-info { flex: 1; min-width: 0; }
.el-progress-info h4 { font-size: 0.85rem; font-weight: 700; color: hsl(215 40% 20%); margin: 0 0 2px; }
.el-progress-info p { font-size: 0.72rem; color: hsl(215 15% 55%); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.el-progress-meta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.68rem; color: hsl(215 15% 60%); margin-top: 2px;
}
.el-progress-meta svg { width: 11px; height: 11px; }
.el-chevron { color: hsl(215 15% 70%); flex-shrink: 0; transition: transform 0.2s; }
.el-progress-card:hover .el-chevron { transform: translateX(3px); color: hsl(215 55% 45%); }

/* Welcome Banner Particles */
.el-wb-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.el-wb-particles span {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  animation: el-particleFloat 8s ease-in-out infinite;
}
.el-wb-particles span:nth-child(1) { width: 60px; height: 60px; top: 10%; left: 5%; animation-delay: 0s; }
.el-wb-particles span:nth-child(2) { width: 40px; height: 40px; top: 60%; left: 15%; animation-delay: 1.5s; }
.el-wb-particles span:nth-child(3) { width: 80px; height: 80px; top: 20%; right: 25%; animation-delay: 3s; }
.el-wb-particles span:nth-child(4) { width: 30px; height: 30px; bottom: 15%; left: 40%; animation-delay: 4.5s; }
.el-wb-particles span:nth-child(5) { width: 50px; height: 50px; bottom: 25%; right: 10%; animation-delay: 6s; }
@keyframes el-particleFloat {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.3; }
  25% { transform: translateY(-15px) translateX(8px) scale(1.1); opacity: 0.6; }
  50% { transform: translateY(-8px) translateX(-5px) scale(0.95); opacity: 0.4; }
  75% { transform: translateY(10px) translateX(12px) scale(1.05); opacity: 0.5; }
}

/* Task/Materi Icon Wrappers */
.el-task-icon-wrap, .el-materi-icon-wrap {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
  background: hsl(215 15% 96%);
  transition: transform 0.2s ease;
}
.el-task-row:hover .el-task-icon-wrap,
.el-task-row:hover .el-materi-icon-wrap { transform: scale(1.08); }

/* Compact grid responsive */
@media (max-width: 768px) {
  .el-progress-compact-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
@media (max-width: 480px) {
  .el-progress-compact-grid { grid-template-columns: 1fr; }
}

/* Modern Card */
.el-card-modern {
  border-radius: 14px !important;
  border: 1px solid hsl(215 15% 92%) !important;
  animation: el-fadeInUp 0.45s ease both;
  animation-delay: 0.6s;
  transition: box-shadow 0.25s ease;
}
.el-card-modern:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.06); }

/* Task Row */
.el-task-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid hsl(215 15% 95%);
}
.el-task-row:last-child { border-bottom: none; }
.el-task-status {
  width: 32px; height: 32px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; flex-shrink: 0;
}
.el-task-status.done { background: hsl(150 50% 92%); color: hsl(150 50% 35%); }
.el-task-status.warning { background: hsl(38 80% 92%); color: hsl(38 70% 40%); }
.el-task-status.danger { background: hsl(0 60% 93%); color: hsl(0 60% 45%); }
.el-task-status.info { background: hsl(215 60% 94%); color: hsl(215 55% 45%); }
.el-task-info { flex: 1; min-width: 0; }
.el-task-info h4 { font-size: 0.82rem; font-weight: 600; color: hsl(215 40% 20%); margin: 0 0 2px; }
.el-task-info p { font-size: 0.72rem; color: hsl(215 15% 55%); margin: 0; }
.el-task-deadline { flex-shrink: 0; }
.el-materi-icon { font-size: 1.5rem; flex-shrink: 0; }

/* Kelas Saya Card Upgrade */
.course-card {
  background: #fff; border-radius: 16px; padding: 22px;
  border: 1px solid hsl(215 15% 90%);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden;
}
.course-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: linear-gradient(90deg, hsl(215 55% 45%), hsl(215 45% 60%));
  opacity: 0; transition: opacity 0.2s;
}
.course-card:hover::before { opacity: 1; }
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  border-color: hsl(215 40% 82%);
}

/* ===== RESPONSIVE: 1280px ===== */
@media (max-width: 1280px) {
  .el-welcome-banner { padding: 22px 24px; }
  .el-welcome-text h2 { font-size: 1.25rem; }
  .el-welcome-text p { font-size: 0.78rem; }
  .el-mini-ring { width: 68px; height: 68px; }
  .el-stat-row { gap: 10px; }
  .el-stat-card { padding: 14px 16px; gap: 10px; }
  .el-stat-card-icon { width: 38px; height: 38px; border-radius: 10px; }
  .el-stat-card-icon svg { width: 17px; height: 17px; }
  .el-stat-card-num { font-size: 1.25rem; }
  .el-stat-card-label { font-size: 0.68rem; }
  .el-stat-card-badge { font-size: 0.55rem; padding: 2px 6px; }
  .el-progress-card { padding: 12px 16px; gap: 12px; }
  .el-progress-ring-wrap { width: 42px; height: 42px; }
  .el-progress-info h4 { font-size: 0.8rem; }
  .el-section-title h3 { font-size: 0.85rem; }
  .el-task-info h4 { font-size: 0.78rem; }
  .el-task-info p { font-size: 0.68rem; }
  .el-task-status { width: 28px; height: 28px; font-size: 0.65rem; }
  .dash-grid { gap: 16px; }
  .el-course-title { font-size: 0.92rem; }
  .el-btn-enter { padding: 7px 14px; font-size: 0.72rem; }
}

/* ===== RESPONSIVE: 1024px ===== */
@media (max-width: 1024px) {
  .el-stat-row { grid-template-columns: repeat(2, 1fr); }
  .el-welcome-banner { padding: 20px; gap: 16px; }
  .el-welcome-text h2 { font-size: 1.15rem; }
  .el-mini-ring { width: 64px; height: 64px; }
  .el-ring-text { font-size: 0.75rem; }
  .dash-grid { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ===== RESPONSIVE: 768px ===== */
@media (max-width: 768px) {
  .el-welcome-banner { flex-direction: column; text-align: center; padding: 18px; gap: 14px; border-radius: 12px; }
  .el-welcome-text h2 { font-size: 1.1rem; }
  .el-welcome-text p { font-size: 0.75rem; }
  .el-welcome-date { font-size: 0.65rem; }
  .el-mini-ring { width: 60px; height: 60px; }
  .el-stat-row { gap: 8px; }
  .el-stat-card { padding: 12px 14px; border-radius: 10px; }
  .el-stat-card-num { font-size: 1.1rem; }
  .el-stat-card-icon { width: 34px; height: 34px; }
  .el-stat-card-badge { display: none; }
  .el-progress-card { padding: 10px 14px; gap: 10px; border-radius: 10px; }
  .el-progress-ring-wrap { width: 38px; height: 38px; }
  .el-progress-info h4 { font-size: 0.78rem; }
  .el-progress-meta { font-size: 0.62rem; }
  .el-section-title h3 { font-size: 0.82rem; }
  .el-see-all { font-size: 0.68rem; }
  .el-task-row { gap: 10px; padding: 10px 0; }
  .el-task-status { width: 26px; height: 26px; font-size: 0.6rem; border-radius: 8px; }
  .el-materi-icon { font-size: 1.2rem; }
  .el-kelas-stats { gap: 10px; }
  .el-mini-stat { padding: 8px 14px; border-radius: 10px; }
  .el-mini-stat-num { font-size: 0.95rem; }
  .el-mini-stat-lbl { font-size: 0.55rem; }
  .course-grid { grid-template-columns: 1fr !important; }
  .el-course-bottom { padding: 10px 16px 14px; }
  .el-btn-enter { padding: 7px 14px; font-size: 0.7rem; border-radius: 8px; }
}

/* ===== RESPONSIVE: 480px ===== */
@media (max-width: 480px) {
  .el-welcome-banner { padding: 14px; gap: 10px; border-radius: 10px; margin-bottom: 14px; }
  .el-welcome-text h2 { font-size: 1rem; }
  .el-welcome-text p { font-size: 0.7rem; }
  .el-mini-ring { width: 52px; height: 52px; }
  .el-ring-text { font-size: 0.6rem; }
  .el-ring-label { font-size: 0.58rem; }
  .el-stat-row { grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 16px; }
  .el-stat-card { padding: 10px 12px; gap: 8px; border-radius: 8px; }
  .el-stat-card-icon { width: 30px; height: 30px; border-radius: 8px; }
  .el-stat-card-icon svg { width: 14px; height: 14px; }
  .el-stat-card-num { font-size: 1rem; }
  .el-stat-card-label { font-size: 0.62rem; }
  .el-progress-grid { gap: 6px; margin-bottom: 16px; }
  .el-progress-card { padding: 10px 12px; gap: 8px; border-radius: 8px; }
  .el-progress-ring-wrap { width: 34px; height: 34px; }
  .el-progress-info h4 { font-size: 0.74rem; }
  .el-progress-info p { font-size: 0.65rem; }
  .el-section-title { margin-bottom: 8px; }
  .el-section-title h3 { font-size: 0.78rem; }
  .el-task-row { gap: 8px; padding: 8px 0; }
  .el-task-info h4 { font-size: 0.74rem; }
  .el-task-info p { font-size: 0.64rem; }
  .el-kelas-stats { gap: 6px; flex-wrap: wrap; justify-content: center; }
  .el-mini-stat { min-width: auto; padding: 6px 10px; }
  .el-mini-stat-num { font-size: 0.85rem; }
  .el-course-top { padding: 12px 14px 0; }
  .el-course-title { padding: 6px 14px 0; font-size: 0.88rem; }
  .el-course-meta { padding: 6px 14px 0; font-size: 0.68rem; }
  .el-course-progress { padding: 10px 14px 0; }
  .el-course-bottom { padding: 10px 14px 12px; }
}

/* ===== Premium Kelas Card ===== */
.el-course-premium { padding: 0 !important; overflow: hidden; }
.el-course-accent { height: 6px; width: 100%; }
.el-course-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px 0;
}
.el-course-title {
  font-size: 1rem; font-weight: 700; color: hsl(215 40% 18%);
  padding: 8px 20px 0; margin: 0; line-height: 1.3;
}
.el-course-meta {
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px 20px 0; font-size: 0.74rem; color: hsl(215 15% 50%);
}
.el-course-meta span { display: flex; align-items: center; gap: 5px; }
.el-course-meta svg { width: 13px; height: 13px; }
.el-course-progress { padding: 14px 20px 0; }
.el-course-progress-header {
  display: flex; justify-content: space-between; font-size: 0.72rem;
  color: hsl(215 15% 55%); margin-bottom: 6px;
}
.el-course-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px 18px; margin-top: 6px;
  border-top: 1px solid hsl(215 15% 94%);
}
.el-course-avatars {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.72rem; color: hsl(215 15% 55%);
}
.el-course-avatars svg { width: 14px; height: 14px; }
.el-btn-enter {
  padding: 8px 18px; border: none; border-radius: 10px;
  color: #fff; font-size: 0.76rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 4px;
}
.el-btn-enter:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

/* Mini stats in Kelas header */
.el-kelas-stats {
  display: flex; gap: 16px; position: relative; z-index: 1;
}
.el-mini-stat {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(4px);
  border-radius: 12px; padding: 10px 18px; min-width: 70px;
}
.el-mini-stat-num { font-size: 1.1rem; font-weight: 800; color: #fff; }
.el-mini-stat-lbl { font-size: 0.6rem; opacity: 0.7; margin-top: 2px; }

/* ===== Kelas Saya Banner Cards — PREMIUM ===== */

/* Shimmer + float keyframes */
@keyframes el-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes el-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
}
@keyframes el-pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.15); }
  50% { box-shadow: 0 0 20px 4px rgba(37,99,235,0.1); }
}
@keyframes el-progressGrow {
  from { width: 0; }
}

.el-kelas-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.el-kelas-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid hsl(215 15% 92%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.35s ease,
              border-color 0.3s ease;
  animation: el-fadeInUp 0.5s ease both;
  position: relative;
}
.el-kelas-card:nth-child(1) { animation-delay: 0.04s; }
.el-kelas-card:nth-child(2) { animation-delay: 0.10s; }
.el-kelas-card:nth-child(3) { animation-delay: 0.16s; }
.el-kelas-card:nth-child(4) { animation-delay: 0.22s; }
.el-kelas-card:nth-child(5) { animation-delay: 0.28s; }
.el-kelas-card:nth-child(6) { animation-delay: 0.34s; }
.el-kelas-card:nth-child(7) { animation-delay: 0.40s; }

.el-kelas-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.05);
  border-color: hsl(215 30% 85%);
}
.el-kelas-card:hover .el-kelas-banner-icon {
  animation: el-float 2s ease-in-out infinite;
  opacity: 0.6;
}
.el-kelas-card:hover .el-kelas-enter {
  box-shadow: 0 4px 16px rgba(37,99,235,0.35);
}

/* Banner */
.el-kelas-banner {
  padding: 14px 16px;
  color: #fff;
  display: flex; justify-content: space-between; align-items: center;
  position: relative; overflow: hidden;
}
.el-kelas-banner::before {
  content: ''; position: absolute; top: -40%; right: -10%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, transparent 70%);
  border-radius: 50%;
}
.el-kelas-banner::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: el-shimmer 4s ease-in-out infinite;
  pointer-events: none;
}
.el-kelas-banner-content { position: relative; z-index: 1; }
.el-kelas-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 3px 10px; border-radius: 6px;
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.5px;
  margin-bottom: 6px;
  border: 1px solid rgba(255,255,255,0.15);
}
.el-kelas-banner-title {
  font-size: 0.9rem; font-weight: 700; margin: 0 0 3px;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.el-kelas-banner-sub {
  font-size: 0.66rem; opacity: 0.85; margin: 0;
  letter-spacing: 0.2px;
}
.el-kelas-banner-icon {
  font-size: 1.8rem; opacity: 0.25;
  position: relative; z-index: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

/* Body */
.el-kelas-body { padding: 12px 16px 14px; }
.el-kelas-info-row {
  display: flex; gap: 16px; margin-bottom: 12px;
  flex-wrap: wrap;
}
.el-kelas-info-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.72rem; color: hsl(215 15% 42%);
  font-weight: 500;
}
.el-kelas-info-item svg { width: 13px; height: 13px; opacity: 0.55; }
.el-kelas-progress-section { margin-bottom: 12px; }
.el-kelas-progress-header {
  display: flex; justify-content: space-between;
  font-size: 0.68rem; color: hsl(215 15% 50%);
  margin-bottom: 5px; font-weight: 500;
}
.el-kelas-enter {
  width: 100%; padding: 9px; border: none;
  border-radius: 8px; background: linear-gradient(135deg, hsl(215 55% 48%), hsl(215 60% 42%));
  color: #fff; font-size: 0.72rem; font-weight: 600;
  cursor: pointer; transition: all 0.25s ease;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  position: relative; overflow: hidden;
}
.el-kelas-enter::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.el-kelas-enter:hover::after { transform: translateX(100%); }
.el-kelas-enter:hover {
  background: linear-gradient(135deg, hsl(215 55% 42%), hsl(215 60% 36%));
  transform: translateY(-1px);
}

/* Progress bar animation */
.el-kelas-card .progress-wrap {
  height: 5px; background: hsl(215 15% 93%); border-radius: 4px; overflow: hidden;
}
.el-kelas-card .progress-bar {
  height: 100%; border-radius: 4px;
  animation: el-progressGrow 1s ease-out both;
  background-image: linear-gradient(90deg, currentColor, currentColor);
  position: relative;
}

/* Responsive */
@media (max-width: 768px) {
  .el-kelas-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .el-kelas-banner { padding: 12px 14px; }
  .el-kelas-banner-title { font-size: 0.82rem; }
  .el-kelas-banner-sub { font-size: 0.62rem; }
  .el-kelas-banner-icon { font-size: 1.4rem; }
  .el-kelas-body { padding: 10px 14px 12px; }
  .el-kelas-info-row { gap: 8px; }
  .el-kelas-enter { padding: 7px; font-size: 0.7rem; }
}
@media (max-width: 480px) {
  .el-kelas-list { grid-template-columns: 1fr; gap: 10px; }
  .el-kelas-banner { padding: 12px; }
  .el-kelas-banner-title { font-size: 0.82rem; }
  .el-kelas-body { padding: 10px 12px 12px; }
  .el-kelas-info-row { flex-direction: column; gap: 4px; }
}

/* ===== Summary Cards — Ultra Premium ===== */
.el-tugas-summary {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 16px 0 14px;
}
.el-summary-card {
  position: relative; overflow: hidden;
  border-radius: 16px; padding: 20px 18px 18px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; transition: all 0.3s cubic-bezier(.4,0,.2,1);
  border: 1px solid transparent;
}
/* Per-variant card backgrounds */
.el-summary-card[data-panel="pending"] {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a33 100%);
  border-color: #fcd34d55;
  box-shadow: 0 2px 12px rgba(251,191,36,0.1);
}
.el-summary-card[data-panel="completed"] {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 50%, #a7f3d033 100%);
  border-color: #6ee7b755;
  box-shadow: 0 2px 12px rgba(16,185,129,0.1);
}
.el-summary-card[data-panel="expired"] {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 50%, #fecaca33 100%);
  border-color: #fca5a555;
  box-shadow: 0 2px 12px rgba(239,68,68,0.1);
}
.el-summary-card[data-panel="quiz"] {
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 50%, #c7d2fe33 100%);
  border-color: #a5b4fc55;
  box-shadow: 0 2px 12px rgba(99,102,241,0.1);
}
/* Shimmer sweep */
.el-summary-card::before {
  content:''; position:absolute; top:0; left:-150%; width:80%; height:100%;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.65) 50%, transparent 80%);
  transition: left 0.7s ease;
  pointer-events: none;
}
.el-summary-card:hover::before { left: 150%; }
.el-summary-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 10px 28px rgba(0,0,0,0.1);
}
.el-summary-card.active {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2.5px hsl(215 60% 52%), 0 6px 18px rgba(37,99,235,0.15) !important;
}

/* ── Icon circles — larger with glow ── */
.el-sc-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative;
}
.el-sc-icon svg { width: 22px; height: 22px; }
/* Glow aura behind icon */
.el-sc-icon::after {
  content:''; position:absolute; inset:-4px; border-radius: 18px;
  opacity: 0.35; z-index: -1; filter: blur(8px);
}
.el-sc-icon-amber {
  background: linear-gradient(145deg, #fbbf24, #f59e0b);
  color: #fff;
  box-shadow: 0 4px 14px rgba(245,158,11,0.35);
}
.el-sc-icon-amber::after { background: #fbbf24; }
.el-sc-icon-amber { animation: el-iconWiggle 2.5s ease-in-out infinite; }
@keyframes el-iconWiggle {
  0%,100% { transform: rotate(0deg); }
  15% { transform: rotate(-8deg); }
  30% { transform: rotate(6deg); }
  45% { transform: rotate(-4deg); }
  60% { transform: rotate(2deg); }
  75% { transform: rotate(0deg); }
}

.el-sc-icon-green {
  background: linear-gradient(145deg, #34d399, #10b981);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16,185,129,0.35);
}
.el-sc-icon-green::after { background: #34d399; }
.el-sc-icon-green { animation: el-iconBounce 2s ease-in-out infinite; }
@keyframes el-iconBounce {
  0%,100% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  60% { transform: translateY(-2px); }
}

.el-sc-icon-red {
  background: linear-gradient(145deg, #f87171, #ef4444);
  color: #fff;
  box-shadow: 0 4px 14px rgba(239,68,68,0.3);
}
.el-sc-icon-red::after { background: #f87171; }
.el-sc-icon-red { animation: el-iconShake 3s ease-in-out infinite; }
@keyframes el-iconShake {
  0%,100% { transform: translateX(0); }
  10% { transform: translateX(-3px); }
  20% { transform: translateX(3px); }
  30% { transform: translateX(-2px); }
  40% { transform: translateX(2px); }
  50% { transform: translateX(0); }
}

.el-sc-icon-indigo {
  background: linear-gradient(145deg, #818cf8, #6366f1);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}
.el-sc-icon-indigo::after { background: #818cf8; }
.el-sc-icon-indigo { animation: el-iconFloat 3s ease-in-out infinite; }
@keyframes el-iconFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.04); }
}

/* ── Body typography — large & bold ── */
.el-sc-body { flex: 1; min-width: 0; }
.el-sc-num {
  display: block; font-size: 1.85rem; font-weight: 900;
  line-height: 1.1; letter-spacing: -0.8px;
  font-feature-settings: 'tnum';
}
.el-sc-label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: hsl(215 12% 42%); margin-top: 3px;
  letter-spacing: 0.2px; text-transform: capitalize;
}

/* ── Badges — vivid pills ── */
.el-sc-badge {
  position: absolute; top: 10px; right: 12px;
  font-size: 0.62rem; font-weight: 800; padding: 3px 9px;
  border-radius: 8px; letter-spacing: 0.3px;
  text-transform: uppercase;
}
.el-sc-badge-amber {
  background: linear-gradient(135deg, #fbbf2425, #f59e0b18);
  color: #92400e; border: 1px solid #f59e0b30;
}
.el-sc-badge-green {
  background: linear-gradient(135deg, #10b98125, #05966918);
  color: #065f46; border: 1px solid #10b98130;
}
.el-sc-badge-red {
  background: linear-gradient(135deg, #ef444425, #dc262618);
  color: #991b1b; border: 1px solid #ef444430;
}
.el-sc-badge-indigo {
  background: linear-gradient(135deg, #6366f125, #4f46e518);
  color: #3730a3; border: 1px solid #6366f130;
}

/* Staggered entrance */
.el-summary-card:nth-child(1) { animation: el-cardSlideIn 0.5s cubic-bezier(.4,0,.2,1) both 0.05s; }
.el-summary-card:nth-child(2) { animation: el-cardSlideIn 0.5s cubic-bezier(.4,0,.2,1) both 0.13s; }
.el-summary-card:nth-child(3) { animation: el-cardSlideIn 0.5s cubic-bezier(.4,0,.2,1) both 0.21s; }
.el-summary-card:nth-child(4) { animation: el-cardSlideIn 0.5s cubic-bezier(.4,0,.2,1) both 0.29s; }
@keyframes el-cardSlideIn {
  from { opacity:0; transform: translateY(18px) scale(0.96); }
  to { opacity:1; transform: translateY(0) scale(1); }
}

/* Detail Panel */
.el-summary-detail-panel {
  display: none; background: #fff; border-radius: 16px;
  border: 1px solid hsl(215 15% 89%);
  margin-bottom: 14px; overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
  animation: el-fadeInUp 0.3s ease;
}
.el-sdp-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid hsl(215 15% 90%);
  background: linear-gradient(135deg, hsl(215 25% 97%), hsl(215 15% 94%));
}
.el-sdp-header h4 {
  margin: 0; font-size: 0.92rem; font-weight: 800;
  color: hsl(215 35% 18%); letter-spacing: -0.2px;
}
.el-sdp-close {
  border: none; background: hsl(215 15% 88%);
  width: 28px; height: 28px; border-radius: 9px;
  font-size: 0.9rem; cursor: pointer; color: hsl(215 15% 40%);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.el-sdp-close:hover { background: hsl(0 60% 90%); color: #dc2626; transform: rotate(90deg); }
.el-panel-row:hover { background: hsl(215 25% 96%) !important; }
@media (max-width: 768px) {
  .el-tugas-summary { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .el-sc-num { font-size: 1.45rem; }
  .el-sc-icon { width: 42px; height: 42px; }
  .el-summary-card { padding: 16px 14px 14px; }
}

/* ===== Per-Pertemuan Sections ===== */
.el-prt-list { display: flex; flex-direction: column; gap: 10px; }
.el-prt-section {
  background: #fff; border-radius: 12px;
  border: 1px solid hsl(215 15% 92%);
  overflow: hidden;
  animation: el-fadeInUp 0.35s ease both;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  border-left: 3px solid hsl(215 55% 55%);
}
.el-prt-section:nth-child(1) { animation-delay: 0.05s; border-left-color: hsl(215 55% 50%); }
.el-prt-section:nth-child(2) { animation-delay: 0.1s; border-left-color: hsl(35 80% 50%); }
.el-prt-section:nth-child(3) { animation-delay: 0.15s; border-left-color: hsl(150 50% 42%); }
.el-prt-section:nth-child(4) { animation-delay: 0.2s; border-left-color: hsl(270 45% 55%); }
.el-prt-section:nth-child(5) { animation-delay: 0.25s; border-left-color: hsl(0 55% 55%); }
.el-prt-section:nth-child(6) { animation-delay: 0.3s; border-left-color: hsl(180 45% 42%); }
.el-prt-section:nth-child(7) { animation-delay: 0.35s; border-left-color: hsl(330 50% 50%); }
.el-prt-section:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
  border-color: hsl(215 20% 85%);
}

/* Header */
.el-prt-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
  background: linear-gradient(135deg, hsl(215 25% 98%), hsl(215 15% 96%));
}
.el-prt-header:hover { background: linear-gradient(135deg, hsl(215 30% 96%), hsl(215 20% 94%)); }
.el-prt-header-left { display: flex; align-items: center; gap: 12px; }
.el-prt-num {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, hsl(215 55% 45%), hsl(215 50% 55%)); color: #fff;
  font-size: 0.62rem; font-weight: 700;
  width: 38px; height: 24px; border-radius: 6px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(37,99,235,0.2);
}
.el-prt-title { font-size: 0.82rem; font-weight: 600; color: hsl(215 40% 18%); margin: 0; line-height: 1.3; }
.el-prt-meta { font-size: 0.65rem; color: hsl(215 15% 55%); margin: 1px 0 0; }
.el-prt-chevron {
  color: hsl(215 15% 60%); transition: transform 0.25s ease; flex-shrink: 0;
}

/* Collapsed state */
.el-prt-section.collapsed .el-prt-body { display: none; }
.el-prt-section.collapsed .el-prt-chevron { transform: rotate(-90deg); }
.el-prt-section.collapsed .el-prt-header { background: #fff; }

/* Body */
.el-prt-body {
  padding: 4px 16px 12px;
  border-top: 1px solid hsl(215 15% 94%);
}

/* Content items */
.el-prt-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px;
  margin: 4px -4px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.el-prt-item:hover {
  background: hsl(215 30% 98%);
  border-color: hsl(215 20% 90%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.el-prt-item-icon {
  font-size: 1.15rem; flex-shrink: 0; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: hsl(215 25% 96%); border-radius: 10px;
  text-align: center;
}
.el-prt-item-info { flex: 1; min-width: 0; }
.el-prt-item-info h4 { font-size: 0.78rem; font-weight: 600; color: hsl(215 40% 20%); margin: 0 0 2px; }
.el-prt-item-info p { font-size: 0.66rem; color: hsl(215 15% 50%); margin: 0; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.el-prt-badge {
  display: inline-block; padding: 2px 7px;
  border-radius: 4px; font-size: 0.58rem;
  font-weight: 700; letter-spacing: 0.3px;
  text-transform: uppercase;
}
.el-prt-action {
  background: none; border: 1.5px solid currentColor;
  padding: 4px 10px; border-radius: 6px;
  font-size: 0.65rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: all 0.2s;
  opacity: 0.85;
}
.el-prt-action:hover {
  opacity: 1; transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.el-prt-status {
  font-size: 0.68rem; font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
}

/* Expired items */
.el-item-expired { opacity: 0.6; }
.el-item-expired:hover { opacity: 0.8; }
.el-expired-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 8px; border-radius: 4px;
  background: hsl(0 40% 95%); color: hsl(0 50% 45%);
  font-size: 0.6rem; font-weight: 600;
}

/* Dosen action buttons on items */
.el-prt-dosen-actions {
  display: flex; gap: 2px; margin-left: 4px;
}
.el-prt-dosen-actions button {
  background: none; border: none; cursor: pointer;
  font-size: 0.72rem; padding: 3px;
  border-radius: 4px; transition: background 0.15s;
  opacity: 0.5;
}
.el-prt-dosen-actions button:hover {
  background: hsl(215 20% 93%); opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .el-prt-list { gap: 8px; }
  .el-prt-header { padding: 10px 14px; }
  .el-prt-num { width: 34px; height: 22px; font-size: 0.58rem; }
  .el-prt-title { font-size: 0.78rem; }
  .el-prt-body { padding: 2px 14px 10px; }
  .el-prt-item { gap: 10px; padding: 8px 8px; }
  .el-prt-item-info h4 { font-size: 0.74rem; }
  .el-prt-action { padding: 3px 8px; font-size: 0.6rem; }
  .el-prt-item-icon { width: 32px; height: 32px; font-size: 1rem; }
}
@media (max-width: 480px) {
  .el-prt-header-left { gap: 10px; }
  .el-prt-item-icon { font-size: 0.95rem; width: 28px; height: 28px; border-radius: 8px; }
  .el-prt-action { display: none; }
  .el-prt-status { font-size: 0.62rem; }
  .el-prt-dosen-actions { display: none; }
}

/* ===== Dosen: Add Content Buttons ===== */
.el-prt-add-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 10px;
  margin-top: 8px;
  background: none; border: 2px dashed hsl(215 30% 85%);
  border-radius: 10px; color: hsl(215 55% 50%);
  font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: all 0.25s ease;
}
.el-prt-add-btn:hover {
  border-color: hsl(215 55% 50%);
  background: hsl(215 60% 97%);
  transform: translateY(-1px);
}
.el-prt-add-pertemuan {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px;
  margin-top: 8px;
  background: none; border: 2px dashed hsl(215 30% 80%);
  border-radius: 14px; color: hsl(215 55% 45%);
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all 0.25s ease;
}
.el-prt-add-pertemuan:hover {
  border-color: hsl(215 55% 45%);
  background: hsl(215 60% 96%);
}

/* ===== Modal ===== */
.el-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: el-fadeIn 0.2s ease;
}
@keyframes el-fadeIn { from { opacity:0; } to { opacity:1; } }
.el-modal {
  background: #fff; border-radius: 16px;
  width: 100%; max-width: 520px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  animation: el-slideUp 0.3s ease;
  overflow: hidden;
}
@keyframes el-slideUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.el-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid hsl(215 15% 93%);
}
.el-modal-header h3 { font-size: 1rem; font-weight: 700; color: hsl(215 40% 18%); margin:0; }
.el-modal-close {
  background: none; border: none; cursor: pointer;
  font-size: 1.1rem; color: hsl(215 15% 55%);
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.el-modal-close:hover { background: hsl(215 15% 93%); }

/* Form */
.el-modal-form { padding: 20px 24px 24px; }
.el-form-group { margin-bottom: 14px; }
.el-form-group label {
  display: block; font-size: 0.72rem; font-weight: 600;
  color: hsl(215 30% 35%); margin-bottom: 5px;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.el-form-group input, .el-form-group select, .el-form-group textarea {
  width: 100%; padding: 9px 12px;
  border: 1px solid hsl(215 15% 87%); border-radius: 8px;
  font-size: 0.82rem; color: hsl(215 40% 18%);
  background: hsl(215 20% 98%);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}
.el-form-group input:focus, .el-form-group select:focus, .el-form-group textarea:focus {
  outline: none; border-color: hsl(215 55% 55%);
  box-shadow: 0 0 0 3px hsl(215 60% 92%);
}
.el-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.el-form-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid hsl(215 15% 93%);
}
.el-btn-cancel {
  padding: 9px 20px; border-radius: 8px;
  border: 1px solid hsl(215 15% 85%);
  background: #fff; color: hsl(215 15% 45%);
  font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.el-btn-cancel:hover { background: hsl(215 15% 96%); }
.el-btn-submit {
  padding: 9px 24px; border-radius: 8px;
  border: none; background: hsl(215 55% 45%);
  color: #fff; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.el-btn-submit:hover { background: hsl(215 55% 38%); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.3); }

@media (max-width: 480px) {
  .el-modal { max-width: 100%; }
  .el-form-row { grid-template-columns: 1fr; }
  .el-modal-form { padding: 16px 18px 20px; }
}

/* ===== Quiz Taking UI ===== */
.el-quiz-container { animation: el-fadeInUp 0.35s ease; }
.el-quiz-header {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: #fff; border-radius: 14px;
  border: 1px solid hsl(215 15% 92%);
  margin-bottom: 14px;
}
.el-quiz-title-section { flex: 1; }
.el-quiz-title { font-size: 1rem; font-weight: 700; color: hsl(215 40% 18%); margin: 0; }
.el-quiz-meta { font-size: 0.72rem; color: hsl(215 15% 55%); margin: 3px 0 0; }
.el-quiz-timer {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 10px;
  background: hsl(0 70% 95%); color: hsl(0 70% 40%);
  font-size: 0.78rem; font-weight: 700;
}
.el-quiz-body {
  display: grid; grid-template-columns: 60px 1fr; gap: 14px;
}
.el-quiz-sidebar {
  display: flex; flex-direction: column; gap: 6px;
  background: #fff; border-radius: 12px;
  border: 1px solid hsl(215 15% 92%);
  padding: 10px 8px;
  align-self: start; position: sticky; top: 10px;
}
.el-quiz-nav-btn {
  width: 40px; height: 36px;
  border: 1px solid hsl(215 15% 88%); border-radius: 8px;
  background: #fff; color: hsl(215 30% 35%);
  font-size: 0.75rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.el-quiz-nav-btn.active { background: hsl(215 55% 45%); color: #fff; border-color: hsl(215 55% 45%); }
.el-quiz-nav-btn.answered { background: hsl(150 50% 93%); border-color: hsl(150 50% 70%); color: hsl(150 50% 30%); }
.el-quiz-nav-btn.answered.active { background: hsl(215 55% 45%); color: #fff; }

.el-quiz-main {
  background: #fff; border-radius: 14px;
  border: 1px solid hsl(215 15% 92%);
  padding: 24px;
}
.el-quiz-question.hidden { display: none; }
.el-quiz-q-header { margin-bottom: 12px; }
.el-quiz-q-num {
  display: inline-block; padding: 4px 12px;
  background: hsl(215 55% 95%); color: hsl(215 55% 40%);
  border-radius: 6px; font-size: 0.68rem; font-weight: 700;
}
.el-quiz-q-text {
  font-size: 0.92rem; font-weight: 500; color: hsl(215 40% 18%);
  line-height: 1.6; margin: 0 0 18px;
}
.el-quiz-options { display: flex; flex-direction: column; gap: 10px; }
.el-quiz-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 10px;
  border: 2px solid hsl(215 15% 90%);
  cursor: pointer; transition: all 0.2s;
}
.el-quiz-option:hover { border-color: hsl(215 55% 70%); background: hsl(215 60% 98%); }
.el-quiz-option.selected { border-color: hsl(215 55% 50%); background: hsl(215 60% 96%); }
.el-quiz-option input { display: none; }
.el-quiz-option-key {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: hsl(215 15% 93%); color: hsl(215 30% 35%);
  font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
  transition: all 0.2s;
}
.el-quiz-option.selected .el-quiz-option-key { background: hsl(215 55% 45%); color: #fff; }
.el-quiz-option-text { font-size: 0.82rem; color: hsl(215 30% 25%); line-height: 1.4; }

.el-quiz-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid hsl(215 15% 93%);
}
.el-quiz-progress { font-size: 0.75rem; font-weight: 600; color: hsl(215 15% 55%); }
.el-quiz-btn {
  padding: 9px 20px; border-radius: 8px;
  font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; border: none;
}
.el-quiz-btn.primary { background: hsl(215 55% 45%); color: #fff; }
.el-quiz-btn.primary:hover { background: hsl(215 55% 38%); transform: translateY(-1px); }
.el-quiz-btn.secondary { background: hsl(215 15% 95%); color: hsl(215 30% 35%); }
.el-quiz-btn.secondary:hover { background: hsl(215 15% 90%); }
.el-quiz-btn.secondary:disabled { opacity: 0.4; cursor: not-allowed; }
.el-quiz-btn.submit { background: hsl(150 55% 40%); color: #fff; }
.el-quiz-btn.submit:hover { background: hsl(150 55% 33%); }
.el-quiz-btn.hidden { display: none; }

/* Quiz Result */
.el-quiz-result { animation: el-fadeInUp 0.35s ease; }
.el-quiz-result-card {
  text-align: center; padding: 32px 24px;
  background: #fff; border-radius: 16px;
  border: 1px solid hsl(215 15% 92%);
}
.el-quiz-result-card.pass { border-left: 4px solid #10b981; }
.el-quiz-result-card.fail { border-left: 4px solid #ef4444; }
.el-quiz-result-icon { font-size: 3rem; margin-bottom: 8px; }
.el-quiz-result-card h2 { font-size: 1.2rem; margin: 0 0 6px; color: hsl(215 40% 18%); }
.el-quiz-result-card p { font-size: 0.82rem; color: hsl(215 15% 50%); margin: 0 0 16px; }
.el-quiz-score-ring { position: relative; display: inline-block; margin-bottom: 16px; }
.el-quiz-score-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; color: hsl(215 40% 18%);
}
.el-quiz-score-detail { display: flex; gap: 20px; justify-content: center; }
.el-quiz-score-item { font-size: 0.82rem; font-weight: 600; }
.el-quiz-score-item.correct { color: #10b981; }
.el-quiz-score-item.wrong { color: #ef4444; }

.el-quiz-review { display: flex; flex-direction: column; gap: 10px; }
.el-quiz-review-item {
  display: flex; gap: 12px; padding: 14px 16px;
  background: #fff; border-radius: 10px;
  border: 1px solid hsl(215 15% 92%);
}
.el-quiz-review-item.correct { border-left: 3px solid #10b981; }
.el-quiz-review-item.wrong { border-left: 3px solid #ef4444; }
.el-quiz-review-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; flex-shrink: 0;
}
.el-quiz-review-item.correct .el-quiz-review-num { background: hsl(150 50% 93%); color: hsl(150 50% 30%); }
.el-quiz-review-item.wrong .el-quiz-review-num { background: hsl(0 50% 95%); color: hsl(0 50% 40%); }
.el-quiz-review-q { font-size: 0.8rem; font-weight: 500; color: hsl(215 40% 20%); margin: 0 0 4px; }
.el-quiz-review-ans { font-size: 0.72rem; color: hsl(215 15% 50%); margin: 0; }

@media (max-width: 768px) {
  .el-quiz-body { grid-template-columns: 1fr; }
  .el-quiz-sidebar { flex-direction: row; flex-wrap: wrap; position: static; }
  .el-quiz-nav-btn { width: 36px; height: 32px; font-size: 0.7rem; }
  .el-quiz-main { padding: 18px; }
  .el-quiz-q-text { font-size: 0.85rem; }
  .el-quiz-option { padding: 10px 12px; }
}
@media (max-width: 480px) {
  .el-quiz-header { flex-wrap: wrap; gap: 10px; }
  .el-quiz-timer { width: 100%; justify-content: center; }
  .el-quiz-footer { flex-wrap: wrap; gap: 8px; }
}

/* ===== Quiz Editor (Dosen) ===== */
.el-qe-item {
  display: flex; gap: 10px; padding: 12px 14px;
  background: hsl(215 20% 98%); border-radius: 10px;
  border: 1px solid hsl(215 15% 92%);
  margin-bottom: 8px; align-items: flex-start;
}
.el-qe-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: hsl(215 55% 45%); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 700; flex-shrink: 0;
}
.el-qe-body { flex: 1; min-width: 0; }
.el-qe-soal { font-size: 0.8rem; font-weight: 600; color: hsl(215 40% 18%); margin: 0 0 6px; line-height: 1.4; }
.el-qe-options { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.el-qe-opt {
  font-size: 0.68rem; color: hsl(215 15% 45%);
  padding: 2px 8px; border-radius: 4px;
  background: hsl(215 15% 95%);
}
.el-qe-opt.correct { background: hsl(150 50% 92%); color: hsl(150 50% 25%); font-weight: 700; }
.el-qe-delete {
  background: none; border: none; cursor: pointer;
  font-size: 0.9rem; opacity: 0.4; transition: opacity 0.2s;
  flex-shrink: 0; padding: 4px;
}
.el-qe-delete:hover { opacity: 1; }

/* ===== Dosen Edit/Delete Actions ===== */
.el-prt-dosen-actions {
  display: flex; gap: 2px; flex-shrink: 0; margin-left: 4px;
}
.el-prt-edit-item, .el-prt-delete-item {
  background: none; border: none; cursor: pointer;
  font-size: 0.85rem; padding: 4px 6px;
  border-radius: 6px; opacity: 0.35;
  transition: all 0.2s;
}
.el-prt-edit-item:hover { opacity: 1; background: hsl(215 50% 95%); }
.el-prt-delete-item:hover { opacity: 1; background: hsl(0 50% 95%); }

/* ===== Expired / Locked Items ===== */
.el-item-expired { opacity: 0.6; }
.el-item-expired .el-prt-item-info h4 { text-decoration: line-through; color: hsl(215 10% 60%); }
.el-expired-badge {
  font-size: 0.7rem !important; font-weight: 700;
  color: #ef4444 !important; background: hsl(0 60% 96%);
  padding: 3px 10px; border-radius: 6px;
  border: 1px solid hsl(0 40% 90%);
}
.el-forum-locked {
  justify-content: center;
  background: hsl(215 15% 96%);
  border: 1px dashed hsl(215 15% 85%);
}

/* ===== Quiz Intro Screen ===== */
.el-quiz-intro {
  display: flex; justify-content: center; align-items: flex-start;
  padding: 20px 0; animation: el-fadeInUp 0.35s ease;
}
.el-quiz-intro-card {
  background: #fff; border-radius: 16px;
  border: 1px solid hsl(215 15% 92%);
  padding: 32px 28px; max-width: 520px; width: 100%;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.el-quiz-intro-icon { font-size: 2.5rem; margin-bottom: 8px; }
.el-quiz-intro-title { font-size: 1.15rem; font-weight: 700; color: hsl(215 40% 18%); margin: 0 0 4px; }
.el-quiz-intro-sub { font-size: 0.78rem; color: hsl(215 15% 55%); margin: 0 0 20px; }
.el-quiz-intro-stats {
  display: flex; justify-content: center; gap: 0;
  background: hsl(215 30% 97%); border-radius: 12px;
  padding: 14px 0; margin-bottom: 20px;
}
.el-quiz-intro-stat { flex: 1; text-align: center; }
.el-qi-stat-num { display: block; font-size: 1.1rem; font-weight: 800; color: hsl(215 55% 40%); }
.el-qi-stat-label { font-size: 0.65rem; color: hsl(215 15% 55%); text-transform: uppercase; letter-spacing: 0.5px; }
.el-qi-stat-divider { width: 1px; background: hsl(215 15% 88%); }
.el-quiz-intro-info {
  text-align: left; padding: 16px;
  background: hsl(45 70% 97%); border-radius: 10px;
  border-left: 3px solid hsl(45 80% 55%);
  margin-bottom: 20px;
}
.el-quiz-intro-info h4 { font-size: 0.82rem; color: hsl(215 40% 20%); margin: 0 0 8px; }
.el-quiz-intro-info ul { margin: 0; padding: 0 0 0 4px; list-style: none; }
.el-quiz-intro-info li { font-size: 0.75rem; color: hsl(215 20% 35%); padding: 3px 0; line-height: 1.5; }
.el-quiz-intro-actions { display: flex; gap: 10px; }

/* Timer danger state */
.el-quiz-timer.danger {
  background: hsl(0 80% 96%) !important;
  color: #ef4444 !important;
  animation: timerPulse 1s ease infinite;
}
.el-quiz-timer.danger svg { stroke: #ef4444; }
@keyframes timerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ===== File Upload Dropzone ===== */
/* ===== Tugas Grading Modal ===== */
.el-grade-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid hsl(215 15% 93%);
}
.el-grade-row:last-child { border-bottom: none; }
.el-grade-student { display: flex; align-items: center; gap: 8px; min-width: 140px; }
.el-grade-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: hsl(215 55% 50%); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.58rem; font-weight: 700; flex-shrink: 0;
}
.el-grade-name { display: block; font-size: 0.78rem; font-weight: 600; color: hsl(215 40% 20%); }
.el-grade-nim { font-size: 0.65rem; color: hsl(215 15% 55%); }
.el-grade-file { flex: 1; font-size: 0.7rem; color: hsl(215 25% 35%); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.el-grade-file.empty { font-style: italic; }
.el-grade-input-wrap { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.el-grade-input {
  width: 56px; padding: 5px 8px; border: 1px solid hsl(215 15% 85%);
  border-radius: 6px; font-size: 0.82rem; font-weight: 700;
  text-align: center; outline: none; transition: border-color 0.2s;
}
.el-grade-input:focus { border-color: hsl(215 55% 55%); box-shadow: 0 0 0 2px hsl(215 55% 55% / 0.15); }
.el-grade-input:disabled { background: hsl(215 10% 95%); color: hsl(215 10% 70%); cursor: not-allowed; }
.el-grade-max { font-size: 0.65rem; color: hsl(215 15% 55%); }
@media (max-width: 640px) {
  .el-grade-row { flex-wrap: wrap; gap: 6px; }
  .el-grade-student { min-width: 100%; }
}

/* ===== Nilai Saya Page ===== */
.el-nilai-header {
  border-radius: 14px; padding: 24px 28px; color: #fff;
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.el-nilai-header-left h2 { font-size: 1.2rem; margin: 0 0 4px; }
.el-nilai-header-left p { font-size: 0.75rem; opacity: 0.85; margin: 0; }
.el-nilai-header-right { display: flex; align-items: center; gap: 16px; }
.el-nilai-ring { position: relative; }
.el-nilai-ring-text {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 1.3rem; font-weight: 800; color: #fff;
}
.el-nilai-summary-stats { display: flex; flex-direction: column; gap: 4px; font-size: 0.72rem; opacity: 0.9; }
.el-nilai-list { display: flex; flex-direction: column; gap: 14px; }
.el-nilai-class {
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid hsl(215 15% 92%); box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.el-nilai-class-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid hsl(215 15% 93%);
  background: hsl(215 20% 98%);
}
.el-nilai-class-header h3 { font-size: 0.85rem; margin: 0; color: hsl(215 40% 22%); }
.el-nilai-class-sub { font-size: 0.65rem; color: hsl(215 15% 55%); }
.el-nilai-class-avg {
  font-size: 1.1rem; font-weight: 800; padding: 4px 12px;
  border-radius: 8px; min-width: 44px; text-align: center;
}
.el-nilai-class-avg.pass { background: hsl(150 60% 94%); color: #10b981; }
.el-nilai-class-avg.fail { background: hsl(0 60% 95%); color: #ef4444; }
.el-nilai-class-avg.pending { background: hsl(215 10% 95%); color: hsl(215 15% 60%); }
.el-nilai-class-body { padding: 4px 0; }
.el-nilai-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px; border-bottom: 1px solid hsl(215 10% 96%);
}
.el-nilai-row:last-child { border-bottom: none; }
.el-nilai-badge {
  font-size: 0.58rem; font-weight: 700; padding: 2px 8px;
  border-radius: 4px; min-width: 45px; text-align: center; flex-shrink: 0;
}
.el-nilai-badge.quiz { background: hsl(260 40% 94%); color: #8b5cf6; }
.el-nilai-badge.tugas { background: hsl(35 80% 94%); color: #d97706; }
.el-nilai-title { flex: 1; font-size: 0.78rem; color: hsl(215 25% 30%); }
.el-nilai-score {
  font-size: 0.88rem; font-weight: 700; min-width: 36px; text-align: center;
}
.el-nilai-score.pass { color: #10b981; }
.el-nilai-score.fail { color: #ef4444; }
.el-nilai-pending { font-size: 0.7rem; color: hsl(215 10% 60%); font-style: italic; }
@media (max-width: 640px) {
  .el-nilai-header { flex-direction: column; gap: 14px; text-align: center; }
  .el-nilai-header-right { justify-content: center; }
}

/* ===== Nilai View Buttons & Grade Detail ===== */
.el-nilai-view-btn {
  padding: 3px 10px; border-radius: 5px; border: 1px solid #3b82f6;
  background: transparent; color: #3b82f6; font-size: 0.62rem; font-weight: 600;
  cursor: pointer; transition: background 0.15s; margin-right: 6px; flex-shrink: 0;
}
.el-nilai-view-btn:hover { background: hsl(215 80% 96%); }
.el-gd-score-header {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; border-radius: 10px; color: #fff; margin-bottom: 16px;
}
.el-gd-score-ring { position: relative; flex-shrink: 0; }
.el-gd-score-ring span {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; font-weight: 800; color: #fff;
}
.el-gd-questions { display: flex; flex-direction: column; gap: 10px; }
.el-gd-question {
  border: 1px solid hsl(215 15% 90%); border-radius: 8px; padding: 12px; 
  background: #fff;
}
.el-gd-question.correct { border-left: 3px solid #10b981; }
.el-gd-question.wrong { border-left: 3px solid #ef4444; }
.el-gd-q-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.el-gd-q-num {
  width: 22px; height: 22px; border-radius: 50%;
  background: hsl(215 30% 94%); color: hsl(215 40% 30%);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700;
}
.el-gd-q-text { font-size: 0.78rem; color: hsl(215 25% 25%); margin: 0 0 8px; line-height: 1.5; }
.el-gd-q-options { display: flex; flex-direction: column; gap: 4px; }
.el-gd-q-opt {
  font-size: 0.72rem; padding: 5px 10px; border-radius: 5px;
  background: hsl(215 10% 97%); color: hsl(215 20% 35%);
}
.el-gd-q-opt.correct { background: hsl(150 50% 94%); color: #059669; font-weight: 600; }
.el-gd-q-opt.wrong { background: hsl(0 50% 96%); color: #dc2626; font-weight: 600; }
.el-gd-tugas-info { padding: 8px 0; }
.el-gd-info-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid hsl(215 10% 95%);
  font-size: 0.78rem;
}
.el-gd-info-row:last-child { border-bottom: none; }
.el-gd-label { color: hsl(215 15% 50%); }
.el-gd-value { color: hsl(215 30% 25%); font-weight: 500; }

/* ===== File Action Buttons ===== */
.el-file-preview-btn, .el-file-download-btn {
  display: inline-block; margin-top: 4px;
  padding: 3px 10px; border-radius: 5px;
  font-size: 0.65rem; font-weight: 600;
  border: 1px solid; cursor: pointer; background: transparent;
}
.el-file-preview-btn { color: #3b82f6; border-color: #3b82f6; }
.el-file-preview-btn:hover { background: hsl(215 80% 96%); }
.el-file-download-btn { color: #64748b; border-color: #94a3b8; }
.el-file-download-btn:hover { background: hsl(215 10% 95%); }

/* ===== File Preview Modal ===== */
.el-preview-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.85); display: flex;
  flex-direction: column;
}
.el-preview-container { display: flex; flex-direction: column; height: 100%; }
.el-preview-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 20px; background: hsl(215 35% 15%);
  border-bottom: 1px solid hsl(215 20% 25%); flex-shrink: 0;
}
.el-preview-toolbar-left { display: flex; align-items: center; gap: 12px; }
.el-preview-toolbar-right { display: flex; align-items: center; gap: 8px; }
.el-preview-filename { color: #fff; font-size: 0.82rem; font-weight: 600; }
.el-preview-student-label { color: hsl(215 30% 65%); font-size: 0.72rem; }
.el-preview-tool-btn {
  padding: 5px 10px; border-radius: 5px; border: 1px solid hsl(215 20% 35%);
  background: hsl(215 25% 22%); color: hsl(215 20% 75%); font-size: 0.75rem;
  cursor: pointer; transition: background 0.15s;
}
.el-preview-tool-btn:hover { background: hsl(215 25% 30%); color: #fff; }
.el-preview-close {
  width: 32px; height: 32px; border-radius: 6px;
  border: none; background: hsl(0 60% 50%); color: #fff;
  font-size: 1rem; cursor: pointer; transition: background 0.15s;
}
.el-preview-close:hover { background: hsl(0 60% 40%); }
.el-preview-body {
  flex: 1; overflow: auto; display: flex;
  justify-content: center; padding: 24px;
  background: hsl(215 10% 30%);
}
.el-preview-page {
  transform-origin: top center; transition: transform 0.2s ease;
}
.el-preview-doc {
  background: #fff; max-width: 700px; width: 100%;
  border-radius: 4px; padding: 40px 48px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  min-height: 700px;
}
.el-preview-doc.pdf { border-top: 3px solid #ef4444; }
.el-preview-doc.word { border-top: 3px solid #2563eb; }
.el-preview-doc-header { display: flex; align-items: center; gap: 12px; }
.el-preview-doc-header h2 { font-size: 1.1rem; color: hsl(215 40% 18%); margin: 0; }
.el-preview-doc-icon { font-size: 1.8rem; }
.el-preview-doc-meta { font-size: 0.7rem; color: hsl(215 15% 55%); margin: 2px 0 0; }
.el-preview-doc-body { line-height: 1.8; color: hsl(215 20% 25%); }
.el-preview-doc-body h3 { font-size: 0.92rem; color: hsl(215 45% 30%); margin: 24px 0 8px; }
.el-preview-doc-body p { font-size: 0.82rem; margin: 0 0 12px; text-align: justify; }
.el-preview-doc-body blockquote {
  margin: 16px 0; padding: 12px 16px;
  background: hsl(215 30% 97%); border-left: 3px solid hsl(215 55% 60%);
  border-radius: 0 6px 6px 0; font-size: 0.8rem; color: hsl(215 30% 35%);
}
.el-preview-table {
  width: 100%; border-collapse: collapse; margin: 12px 0 16px;
  font-size: 0.78rem;
}
.el-preview-table th {
  background: hsl(215 30% 95%); padding: 8px 12px;
  text-align: left; font-weight: 600; color: hsl(215 40% 25%);
  border: 1px solid hsl(215 15% 88%);
}
.el-preview-table td {
  padding: 7px 12px; border: 1px solid hsl(215 15% 90%);
  color: hsl(215 20% 35%);
}
.el-preview-table tr:nth-child(even) td { background: hsl(215 15% 98%); }
.el-preview-doc-footer {
  display: flex; justify-content: space-between; margin-top: 24px;
  padding-top: 12px; border-top: 1px solid hsl(215 15% 90%);
  font-size: 0.65rem; color: hsl(215 15% 60%);
}

.el-upload-zone {
  position: relative;
  border: 2px dashed hsl(215 30% 82%);
  border-radius: 10px; padding: 18px;
  text-align: center; cursor: pointer;
  transition: all 0.25s ease;
  background: hsl(215 25% 98%);
}
.el-upload-zone:hover {
  border-color: hsl(215 55% 55%);
  background: hsl(215 40% 96%);
}
.el-upload-zone.has-file {
  border-color: hsl(150 50% 50%);
  background: hsl(150 40% 97%);
}
.el-upload-input {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}
.el-upload-content { pointer-events: none; }
.el-upload-icon { font-size: 1.6rem; display: block; margin-bottom: 4px; }
.el-upload-text { font-size: 0.78rem; font-weight: 600; color: hsl(215 40% 35%); margin: 0; }
.el-upload-hint { font-size: 0.68rem; color: hsl(215 15% 55%); margin: 3px 0 0; }
.el-upload-filename {
  display: none;
  font-size: 0.72rem; font-weight: 600;
  color: hsl(150 50% 30%); margin: 8px 0 0;
  padding: 6px 10px; border-radius: 6px;
  background: hsl(150 40% 94%);
}
.el-upload-note {
  font-size: 0.72rem; color: hsl(215 15% 50%);
  margin: 8px 0 0; padding: 8px 12px;
  background: hsl(45 80% 95%); border-radius: 6px;
  border-left: 3px solid hsl(45 80% 55%);
}

/* ===== Forum Discussion Thread ===== */
.el-forum-container { animation: el-fadeInUp 0.35s ease; }
.el-forum-header {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px;
  background: #fff; border-radius: 14px;
  border: 1px solid hsl(215 15% 92%);
  margin-bottom: 14px;
}
.el-forum-title-section { flex: 1; }
.el-forum-title { font-size: 1.05rem; font-weight: 700; color: hsl(215 40% 18%); margin: 0; }
.el-forum-meta { font-size: 0.72rem; color: hsl(215 15% 55%); margin: 5px 0 0; }
.el-forum-hot {
  display: inline-block; padding: 1px 8px;
  background: hsl(15 80% 95%); color: hsl(15 80% 45%);
  border-radius: 4px; font-weight: 600; font-size: 0.65rem;
}
.el-forum-thread {
  display: flex; flex-direction: column; gap: 12px;
  max-height: 50vh; overflow-y: auto;
  padding: 20px; background: #fff;
  border-radius: 14px; border: 1px solid hsl(215 15% 92%);
  margin-bottom: 14px;
}
.el-forum-reply { display: flex; gap: 10px; animation: el-fadeInUp 0.2s ease; }
.el-forum-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 700; flex-shrink: 0;
  background: hsl(215 15% 90%); color: hsl(215 30% 40%);
}
.el-forum-avatar.dosen { background: hsl(215 65% 50%); color: #fff; }
.el-forum-avatar.me { background: hsl(150 50% 45%); color: #fff; }
.el-forum-reply-content {
  flex: 1; padding: 10px 14px;
  background: hsl(215 20% 97%); border-radius: 4px 12px 12px 12px;
  min-width: 0;
}
.el-forum-reply.dosen .el-forum-reply-content {
  background: hsl(215 50% 96%);
  border-left: 3px solid hsl(215 55% 55%);
}
.el-forum-reply-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.el-forum-reply-author { font-size: 0.75rem; font-weight: 700; color: hsl(215 40% 25%); }
.el-forum-role-badge {
  font-size: 0.58rem; font-weight: 700;
  padding: 1px 6px; border-radius: 4px;
  background: hsl(215 55% 45%); color: #fff;
}
.el-forum-reply-time { font-size: 0.65rem; color: hsl(215 15% 60%); margin-left: auto; }
.el-forum-reply-text { font-size: 0.8rem; color: hsl(215 25% 30%); line-height: 1.55; margin: 0; }
.el-forum-reply-box {
  display: flex; gap: 10px; align-items: flex-end;
  padding: 16px 20px;
  background: #fff; border-radius: 14px;
  border: 1px solid hsl(215 15% 92%);
}
.el-forum-input-wrap { flex: 1; display: flex; gap: 8px; align-items: flex-end; }
.el-forum-input-wrap textarea {
  flex: 1; resize: none; border: 1px solid hsl(215 15% 88%);
  border-radius: 10px; padding: 10px 14px;
  font-size: 0.8rem; font-family: inherit;
  transition: border-color 0.2s; outline: none;
}
.el-forum-input-wrap textarea:focus { border-color: hsl(215 55% 55%); }
.el-forum-send {
  padding: 10px 18px; border-radius: 10px;
  background: hsl(215 55% 45%); color: #fff;
  font-size: 0.78rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: all 0.2s; white-space: nowrap;
}
.el-forum-send:hover { background: hsl(215 55% 38%); transform: translateY(-1px); }
@media (max-width: 640px) {
  .el-forum-header { flex-wrap: wrap; gap: 10px; }
  .el-forum-thread { max-height: 40vh; padding: 14px; }
  .el-forum-reply-box { flex-wrap: wrap; }
  .el-forum-input-wrap { width: 100%; }
}

/* Detail Modal Data Labels/Values */
.dl { font-size: 0.68rem; color: var(--text-muted); margin-bottom: 1px; text-transform: uppercase; letter-spacing: .02em; }
.dv { font-weight: 500; font-size: 0.82rem; color: var(--text-primary); }

/* ============================================
   PROFIL SAYA — ISO 9241 Compliant Profile
   ============================================ */
.profil-section {
  background: var(--card-bg);
  border-radius: 14px;
  border: 1px solid var(--gray-100);
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow .25s;
}
.profil-section:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
  border-color: hsl(215 40% 88%);
}

/* Profile Tabs */
.profil-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 5px;
  background: linear-gradient(135deg, hsl(215 30% 96%), hsl(220 25% 94%));
  border-radius: 16px;
  margin-bottom: 20px;
  scrollbar-width: none;
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.profil-tabs::-webkit-scrollbar { display: none; }
.profil-tab {
  flex-shrink: 0;
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: hsl(215 20% 55%);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
}
.profil-tab:hover {
  background: rgba(255,255,255,.7);
  color: hsl(215 55% 40%);
  transform: translateY(-1px);
}
.profil-tab.active {
  background: linear-gradient(135deg, hsl(215 60% 50%), hsl(225 65% 55%));
  color: white;
  box-shadow: 0 4px 14px hsla(215,60%,45%,.3);
  transform: translateY(-1px);
}
.profil-tab-panel {
  display: none;
  animation: profilTabIn .35s cubic-bezier(.4,0,.2,1);
}
.profil-tab-panel.active {
  display: block;
}
@keyframes profilTabIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.profil-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: linear-gradient(135deg, hsl(215 30% 98%), hsl(220 20% 96%));
  border-bottom: 1px solid hsl(215 20% 92%);
}
.profil-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: hsl(215 55% 22%);
  margin: 0;
}
.profil-section-title .pst-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
/* Table-row field layout */
.profil-row {
  display: flex;
  border-bottom: 1px solid hsl(215 20% 95%);
  transition: all .2s;
}
.profil-row:last-child { border-bottom: none; }
.profil-row:hover { background: linear-gradient(90deg, hsl(215 40% 97%), transparent); }
.profil-row-label {
  width: 170px;
  flex-shrink: 0;
  padding: 12px 22px;
  font-size: 0.72rem;
  font-weight: 700;
  color: hsl(215 55% 50%);
  text-transform: uppercase;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
}
.profil-row-value {
  flex: 1;
  padding: 12px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: hsl(215 30% 20%);
  border-left: 1px solid hsl(215 20% 95%);
}
.profil-row-value.mono {
  font-family: var(--font-mono);
  letter-spacing: .02em;
}
.profil-row-value.muted {
  color: hsl(215 15% 65%);
  font-style: italic;
  font-weight: 400;
  font-size: 0.8rem;
}
/* Two-column layout */
.profil-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.profil-2col .profil-row:nth-child(odd) {
  border-right: 1px solid var(--gray-50);
}
.profil-2col .profil-row.full-row { grid-column: span 2; border-right: none; }
/* Edit button */
.profil-edit-btn {
  background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.08));
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.3);
  color: white;
  font-size: 0.82rem;
  padding: 10px 22px;
  border-radius: 12px;
  cursor: pointer;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  font-weight: 700;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,.15);
  position: relative;
  overflow: hidden;
}
.profil-edit-btn * {
  pointer-events: none;
}
.profil-edit-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  transition: left .5s ease;
  pointer-events: none;
}
.profil-edit-btn:hover::before {
  left: 100%;
}
.profil-edit-btn:hover {
  background: linear-gradient(135deg, rgba(255,255,255,.35), rgba(255,255,255,.15));
  border-color: rgba(255,255,255,.5);
  box-shadow: 0 6px 24px rgba(0,0,0,.2), 0 0 20px rgba(255,255,255,.1);
  transform: translateY(-2px);
}
.profil-edit-btn:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  transition-duration: .1s;
}
.profil-edit-btn:focus-visible {
  outline: 2px solid rgba(255,255,255,.6);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .profil-2col { grid-template-columns: 1fr; }
  .profil-2col .profil-row:nth-child(odd) { border-right: none; }
  .profil-2col .profil-row.full-row { grid-column: span 1; }
  .profil-row-label { width: 120px; font-size: 0.68rem; }
  .profil-row-value { font-size: 0.8rem; }
}

/* ====== PMB GLOW CARDS ====== */
.pmb-glow-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  color: white;
  overflow: hidden;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.pmb-glow-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.pmb-gc-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.1);
}
.pmb-gc-icon svg { stroke: white; }
.pmb-gc-info { flex: 1; min-width: 0; }
.pmb-gc-value {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  font-family: var(--font-heading);
  text-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.pmb-gc-label {
  font-size: 0.72rem;
  opacity: .85;
  font-weight: 500;
  margin-top: 2px;
}
.pmb-gc-ring {
  position: absolute;
  right: -16px;
  top: -16px;
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 6px solid rgba(255,255,255,.1);
  pointer-events: none;
}

/* ====== PMB TABLE ENHANCEMENTS ====== */
.pmb-tr {
  transition: all .2s;
}
.pmb-tr:hover {
  background: linear-gradient(90deg, hsl(215 50% 97%), hsl(215 30% 99%)) !important;
}
.badge-sm {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: .02em;
}
.badge-sm.blue { background: hsl(215 65% 92%); color: hsl(215 65% 42%); }
.badge-sm.warning { background: hsl(38 70% 92%); color: hsl(38 65% 38%); }
.badge-sm.success { background: hsl(150 50% 90%); color: hsl(150 60% 30%); }
.badge-sm.danger { background: hsl(0 60% 92%); color: hsl(0 60% 42%); }

.mgmt-action-btn {
  background: none;
  border: 1px solid transparent;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all .2s;
}
.mgmt-action-btn:hover {
  background: hsl(215 30% 96%);
  border-color: hsl(215 30% 90%);
  transform: translateY(-1px);
}

/* ============================================================
   COMPREHENSIVE RESPONSIVE OVERRIDES
   – SIAKAD Dashboard (Mahasiswa, Dosen, BAP)
   ============================================================ */

/* ---- Base classes for JS-generated elements ---- */
.pmb-stat-grid { grid-template-columns: repeat(4, 1fr); }
.pmb-header-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pmb-filter-bar {
  display: flex; gap: 10px; margin-bottom: 12px;
  flex-wrap: wrap; align-items: center;
}
.pmb-date-bar {
  display: flex; gap: 10px; margin-bottom: 16px;
  flex-wrap: wrap; align-items: center;
}
.pmb-mgmt-btn {
  font-size: 0.78rem; font-weight: 600;
  padding: 6px 16px; border-radius: 8px;
  border: 1px solid hsl(215 15% 85%);
  background: white; color: var(--text-muted);
  cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
}
.pmb-mgmt-btn.active {
  background: hsl(215 55% 50%); color: white;
  border-color: hsl(215 55% 50%);
}
.pmb-mgmt-btn:hover:not(.active) {
  background: hsl(215 20% 96%); color: hsl(215 55% 40%);
}

/* ---- GENERIC TABLE RESPONSIVE ---- */
.dash-card table, .dash-card-body table, [id*="Area"] table, [id*="Content"] table {
  width: 100%; border-collapse: collapse;
}

/* Table wrapper must scroll on mobile */
#pmbTableWrapper, #pmbMgmtContent {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}

/* ---- ≤ 1280px ---- */
@media (max-width: 1280px) {
  .mgmt-action-btn { font-size: 0.65rem !important; padding: 3px 8px !important; }
  .pmb-stat-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---- ≤ 1024px ---- */
@media (max-width: 1024px) {
  .dash-card-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .pmb-stat-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .pmb-filter-bar { gap: 8px; }
  .pmb-filter-bar > div { flex: 1; min-width: 150px !important; }
  .pmb-filter-bar select { min-width: 120px !important; }

  .profil-banner { padding: 20px !important; }
  .profil-banner h2 { font-size: 1.3rem !important; }
  .el-welcome-banner { padding: 24px 20px; flex-direction: column; text-align: center; gap: 16px; }
  .el-welcome-text h2 { font-size: 1.2rem; }
}

/* ---- ≤ 768px ---- */
@media (max-width: 768px) {
  /* Topbar */
  .dash-topbar { padding: 0 12px !important; height: 56px; }
  .dash-topbar-left h1 { font-size: 0.95rem !important; }
  .dash-topbar-left p { font-size: 0.7rem !important; }
  .dash-content { padding: 14px 12px 28px !important; }

  /* PMB Stats */
  .pmb-stat-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }

  /* PMB Header */
  .dash-card-head { flex-direction: column !important; gap: 10px !important; align-items: flex-start !important; padding: 12px 14px; }
  .pmb-header-btns { width: 100%; }
  .pmb-mgmt-btn { flex: 1; text-align: center; font-size: 0.72rem; padding: 6px 10px; }

  /* PMB Filters → stack vertical */
  .pmb-filter-bar { flex-direction: column; gap: 8px; }
  .pmb-filter-bar > div { flex: unset !important; width: 100% !important; min-width: 0 !important; }
  .pmb-filter-bar select { width: 100% !important; min-width: 0 !important; }
  .pmb-filter-bar .btn { width: 100%; justify-content: center; }

  /* Date bar */
  .pmb-date-bar { flex-direction: column; gap: 6px; }
  .pmb-date-bar input { width: 100% !important; min-width: 0 !important; }

  /* PMB table scroll */
  #pmbTableWrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #pmbTableWrapper table { min-width: 700px; }
  table th { font-size: 0.7rem !important; padding: 6px 8px !important; white-space: nowrap; }
  table td { font-size: 0.75rem !important; padding: 6px 8px !important; }

  /* Stat cards */
  .stat-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .stat-box { padding: 14px !important; }
  .stat-value { font-size: 1.15rem !important; }
  .stat-icon { width: 36px !important; height: 36px !important; }
  .stat-icon svg { width: 18px !important; height: 18px !important; }

  /* Dashboard card */
  .dash-card { border-radius: 12px; margin-bottom: 14px; }
  .dash-card-head h3 { font-size: 0.85rem; }
  .dash-card-body { padding: 10px 12px; }

  /* Profile sections */
  .profil-section { margin-bottom: 14px !important; }
  .profil-section-header { padding: 14px 16px !important; }
  .profil-section-title { font-size: 0.9rem !important; }
  .profil-row { padding: 8px 16px !important; }
  .profil-row-label { font-size: 0.68rem !important; min-width: 100px !important; width: auto !important; }
  .profil-row-value { font-size: 0.78rem !important; }
  .profil-banner { padding: 16px !important; border-radius: 14px !important; }
  .profil-banner h2 { font-size: 1.15rem !important; }

  /* Action buttons */
  .mgmt-action-btn, [data-action] { font-size: 0.6rem !important; padding: 2px 5px !important; }

  /* Inputs - but NOT login icon inputs */
  .dash-content .form-input, .dash-content .form-select { font-size: 0.8rem !important; padding: 8px 12px !important; }
  .input-icon-wrapper .form-input { padding-left: 44px !important; }

  /* Buttons */
  .btn { font-size: 0.72rem !important; padding: 6px 12px !important; }

  /* Welcome banner */
  .el-welcome-banner { padding: 20px 16px; border-radius: 14px; }
  .el-welcome-text h2 { font-size: 1.15rem; }
  .el-welcome-text p { font-size: 0.78rem; }
  .el-welcome-stats { padding: 10px 14px; }
  .el-mini-ring { width: 60px; height: 60px; }

  /* ISO footer */
  .dash-iso-footer { gap: 6px; }
  .dash-iso-badge { font-size: 0.6rem; padding: 3px 8px; }

  /* Bulk action bar */
  #pmbBulkBar { flex-direction: column !important; gap: 8px !important; }
  #pmbBulkBar > div { width: 100%; flex-wrap: wrap !important; }
}

/* ---- ≤ 640px ---- */
@media (max-width: 640px) {
  table th { font-size: 0.65rem !important; padding: 5px 6px !important; }
  table td { font-size: 0.7rem !important; padding: 5px 6px !important; }

  .stat-grid { grid-template-columns: 1fr 1fr !important; }
  .stat-box { padding: 10px !important; gap: 8px !important; }
  .stat-value { font-size: 1rem !important; }
  .stat-label { font-size: 0.65rem !important; }
  .stat-icon { width: 32px !important; height: 32px !important; }

  .profil-2col { grid-template-columns: 1fr !important; }
  .profil-row { flex-direction: column !important; gap: 2px !important; padding: 6px 14px !important; }
  .profil-row-label { min-width: unset !important; width: 100% !important; }

  .el-welcome-banner { padding: 16px 14px; border-radius: 12px; }
  .el-welcome-text h2 { font-size: 1.05rem; }
  .el-welcome-stats { display: none; }

  .dash-grid { grid-template-columns: 1fr !important; gap: 12px !important; }

  .page-title { font-size: 1rem; gap: 8px; }

  /* PMB table: force scroll */
  #pmbTableWrapper table { min-width: 650px; }
}

/* ---- ≤ 480px ---- */
@media (max-width: 480px) {
  .dash-content { padding: 8px 8px 16px !important; }

  .pmb-stat-grid { grid-template-columns: 1fr !important; }
  .stat-grid { grid-template-columns: 1fr !important; }
  .stat-box { flex-direction: row !important; padding: 12px !important; }

  .profil-banner { text-align: center !important; }
  .profil-banner > div { flex-direction: column !important; gap: 10px !important; align-items: center !important; }
  .profil-banner h2 { font-size: 1.05rem !important; }

  .el-welcome-banner { padding: 14px 12px; }
  .el-welcome-text h2 { font-size: 0.95rem; }
  .el-welcome-text p { font-size: 0.72rem; }
  .el-welcome-date { font-size: 0.65rem; padding: 3px 10px; }

  .dash-card-head h3 { font-size: 0.8rem; }
  .dash-sidebar.open { width: 240px; }

  /* PMB table: compact */
  #pmbTableWrapper table { min-width: 550px; }
}

/* ---- ≤ 375px ---- */
@media (max-width: 375px) {
  .dash-content { padding: 6px 6px 12px !important; }
  .dash-topbar { height: 48px !important; }
  .dash-topbar-left h1 { font-size: 0.82rem !important; }

  .stat-box { padding: 10px !important; }
  .stat-value { font-size: 0.95rem !important; }

  .profil-section-title { font-size: 0.82rem !important; }
  .profil-row-label { font-size: 0.62rem !important; }
  .profil-row-value { font-size: 0.72rem !important; }

  .el-welcome-banner { padding: 12px 10px; }
  .el-welcome-text h2 { font-size: 0.88rem; }

  .dash-card { border-radius: 8px; }
  .dash-card-head { padding: 8px 10px; }
  .dash-card-body { padding: 8px 10px; }

  .btn { font-size: 0.65rem !important; padding: 4px 8px !important; }
  .btn-sm { font-size: 0.62rem !important; padding: 3px 8px !important; }

  .dash-sidebar.open { width: 220px; }
  .sidebar-link { font-size: 0.78rem; padding: 8px 10px; }
  .sidebar-label { font-size: 0.58rem; }

  .pmb-mgmt-btn { font-size: 0.65rem; padding: 4px 8px; }
}

