/* ==========================================================================
   E-TUGAS UNPAM - MODERN ORGANIC EDTECH DASHBOARD THEME (SESUAI SCREENSHOT)
   ========================================================================== */

:root {
  /* Outer Environment & Canvas */
  --bg-frame: #829A53; /* Calm sage/olive green framing background from screenshot */
  --bg-canvas: #FAFCFE; /* Ultra soft, clean off-white container */
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-hover: #F8FAFC;

  /* EdTech Vibrant Pastel Block Colors */
  --green-card: #88CC3E;
  --green-card-hover: #7BB836;
  --green-light: #EBF8DA;
  --green-text: #286311;

  --yellow-card: #F3C03F;
  --yellow-card-hover: #E3AF32;
  --yellow-light: #FEF7DC;
  --yellow-text: #825C08;

  --coral-card: #E67454;
  --coral-card-hover: #D76545;
  --coral-light: #FCECE7;
  --coral-text: #8C2812;

  --blue-card: #4B9EEA;
  --blue-light: #E7F3FE;
  --blue-text: #13589B;

  --purple-card: #9366E8;
  --purple-light: #F3ECFE;
  --purple-text: #5323A8;

  /* Typography Colors */
  --text-main: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* Borders & Dividers */
  --border-card: #EAEFF5;
  --border-subtle: #F1F5F9;

  /* Shadows */
  --shadow-canvas: 0 24px 48px -12px rgba(30, 41, 59, 0.15), 0 8px 16px -4px rgba(30, 41, 59, 0.08);
  --shadow-card: 0 4px 16px -2px rgba(30, 41, 59, 0.05), 0 2px 6px -1px rgba(30, 41, 59, 0.03);
  --shadow-card-hover: 0 12px 24px -4px rgba(30, 41, 59, 0.1), 0 4px 8px -2px rgba(30, 41, 59, 0.04);
  --shadow-colored: 0 8px 20px -4px rgba(0, 0, 0, 0.12);

  /* Rounded Radii */
  --radius-canvas: 32px;
  --radius-card: 22px;
  --radius-item: 16px;
  --radius-sm: 10px;
  --radius-pill: 9999px;

  /* Font */
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-frame: #1E293B;
  --bg-canvas: #0F172A;
  --bg-card: #1E293B;
  --bg-subtle: #334155;
  --bg-hover: #26334D;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-light: #64748B;

  --border-card: #334155;
  --border-subtle: #1E293B;

  --green-light: #183D10;
  --green-text: #A6F065;

  --yellow-light: #443206;
  --yellow-text: #FBE078;

  --coral-light: #42160C;
  --coral-text: #FFA58C;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-frame);
  color: var(--text-main);
  min-height: 100vh;
  padding: 1.5rem 2rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Hide brutalist geo shapes */
.geo-shape {
  display: none !important;
}

/* Main Canvas Wrapper */
.admin-app-layout {
  width: 100%;
  max-width: 1540px;
  background: var(--bg-canvas);
  border-radius: var(--radius-canvas);
  box-shadow: var(--shadow-canvas);
  padding: 1.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 0 auto;
  transition: var(--transition);
}

/* ==========================================================================
   1. TOP NAVIGATION BAR (LIKE SCREENSHOT)
   ========================================================================== */
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-card);
  flex-wrap: wrap;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* 4 Colorful Diamond Symbols Logo (+ - × ÷) */
.logo-symbols-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.symbol-diamond {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1;
}

.sym-red { background: #E65A48; }
.sym-yellow { background: #EBB230; }
.sym-green { background: #76C130; }
.sym-blue { background: #409CE8; }

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-badge-dosen {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #588724;
  text-transform: uppercase;
}

.dot-online {
  width: 7px;
  height: 7px;
  background: #76C130;
  border-radius: 50%;
}

.brand-app-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.brand-app-univ {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Center Nav Pills */
.topbar-center-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link-item {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  padding: 0.35rem 0.2rem;
  transition: var(--transition);
  position: relative;
}

.nav-link-item:hover {
  color: var(--text-main);
}

.nav-link-item.active {
  color: var(--text-main);
  font-weight: 800;
}

.nav-link-item.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--text-main);
  border-radius: var(--radius-pill);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--green-light);
  color: var(--green-text);
  border: 1px solid rgba(136, 204, 62, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-card);
}

.status-demo {
  background: var(--yellow-light);
  color: var(--yellow-text);
  border-color: rgba(243, 192, 63, 0.3);
}
.status-demo .status-dot { background: var(--yellow-card); }

/* Top Buttons */
.btn-neo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: var(--transition);
}

.btn-neo-link:hover {
  background: var(--bg-subtle);
  transform: translateY(-1px);
}

.btn-neo-square {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-card);
  background: var(--bg-card);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: var(--transition);
}

.btn-neo-square:hover {
  background: var(--bg-subtle);
  transform: scale(1.05);
}

.avatar-circle-dosen {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FAD7A0, #F39C12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ==========================================================================
   2. DASHBOARD SUB-HEADER (TITLE & CONTROLS)
   ========================================================================== */
.admin-sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.sub-header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.dashboard-main-title {
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.1;
}

/* Class Selector Dropdown Pill in Subheader */
.class-selector-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  cursor: pointer;
  transition: var(--transition);
}

.class-selector-pill:hover {
  border-color: var(--text-muted);
}

/* Overlapping Student Avatars Stack */
.student-avatar-stack {
  display: inline-flex;
  align-items: center;
  margin-left: 0.25rem;
}

.avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  background: #FFFFFF;
}

.avatar-mini:first-child {
  margin-left: 0;
}

.avatar-count-bubble {
  background: var(--bg-subtle);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -6px;
  border: 2px solid var(--bg-card);
}

/* Sub-header Actions (Refresh, Export, Print) */
.sub-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-soft-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-soft-action svg {
  width: 15px;
  height: 15px;
}

.btn-soft-primary {
  background: var(--text-main);
  color: #FFFFFF;
}

.btn-soft-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-soft-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-card);
}

.btn-soft-secondary:hover {
  background: var(--bg-subtle);
}

/* ==========================================================================
   3. HERO STAT CARDS (EXACT MATCH SCREENSHOT 4-CARD LAYOUT)
   ========================================================================== */
.stat-cards-edtech-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 1180px) {
  .stat-cards-edtech-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .stat-cards-edtech-grid {
    grid-template-columns: 1fr;
  }
}

/* Card 1: Left White Overview Card */
.stat-card-overview-white {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: var(--transition);
}

.stat-card-overview-white:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.overview-metrics-dual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.overview-metric-block {
  display: flex;
  flex-direction: column;
}

.overview-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.2;
}

.overview-huge-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.1;
  margin: 0.15rem 0;
}

.overview-sub-avg {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Visual Trophy / Ring Graphic Illustration */
.overview-visual-center {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-card);
  font-size: 2rem;
}

/* Colored Block Stat Cards (Green, Yellow, Coral) */
.stat-card-block {
  border-radius: var(--radius-card);
  padding: 1.35rem 1.5rem;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-colored);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card-block:hover {
  transform: translateY(-3px);
}

.block-green {
  background: var(--green-card);
}
.block-green:hover { background: var(--green-card-hover); }

.block-yellow {
  background: var(--yellow-card);
}
.block-yellow:hover { background: var(--yellow-card-hover); }

.block-coral {
  background: var(--coral-card);
}
.block-coral:hover { background: var(--coral-card-hover); }

.card-block-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card-block-num {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  color: #FFFFFF;
}

.card-block-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-block-bottom {
  display: flex;
  flex-direction: column;
}

.card-block-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: #FFFFFF;
}

.card-block-sub {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.88;
}

/* ==========================================================================
   4. CONTENT & TABLE CONTAINER (STUDENTS PROFICIENCY)
   ========================================================================== */
.admin-table-section {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* View Mode Switcher Header */
.admin-top-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-lead-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.neo-admin-view-switcher {
  display: inline-flex;
  background: var(--bg-subtle);
  border-radius: var(--radius-pill);
  padding: 0.25rem;
  gap: 0.25rem;
}

.btn-view-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-view-tab.active {
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Filter Bar */
.admin-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  background: var(--bg-canvas);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-item);
}

.filter-search-box {
  flex: 1.5;
  min-width: 240px;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 0 0.85rem;
}

.filter-search-box:focus-within {
  border-color: var(--text-main);
}

.filter-search-box svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.neo-filter-input {
  width: 100%;
  padding: 0.55rem 0.6rem;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  background: transparent;
  border: none;
  outline: none;
}

.btn-clear-search {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

.filter-select-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.85rem;
}

.filter-select-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.neo-select {
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  outline: none;
  cursor: pointer;
}

.btn-neo-reset-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.95rem;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-neo-reset-filter:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

/* Info Strip */
.table-info-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.65rem;
}

.table-legend {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-legend {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.bg-legend-green { background: var(--green-card); }
.bg-legend-orange { background: var(--yellow-card); }
.bg-legend-red { background: var(--coral-card); }
.badge-legend-empty { background: #CBD5E1; }

/* ==========================================================================
   5. CLASS SELECTION HUB (PILIH KELAS DULU)
   ========================================================================== */
.matrix-class-hub {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.class-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.class-hub-title-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.class-hub-title-box svg {
  width: 26px;
  height: 26px;
  color: var(--green-card);
}

.class-hub-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-main);
}

.class-hub-subtext {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.class-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
}

.class-card-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.class-card-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--green-card);
}

.class-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.class-card-badge {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text-main);
  background: var(--bg-canvas);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-card);
}

.class-card-sks-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--green-light);
  color: var(--green-text);
}

.class-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.class-card-course {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
}

.class-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1;
}

.class-card-meta svg,
.class-card-meta i {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.class-card-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-canvas);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-item);
  padding: 0.75rem 1rem;
}

.class-stat-group {
  display: flex;
  flex-direction: column;
}

.class-stat-num {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.1;
}

.class-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Compliance Scale Number Classes */
.scale-num-high { color: #588724 !important; }
.scale-num-good { color: #0284C7 !important; }
.scale-num-med { color: #D97706 !important; }
.scale-num-low { color: #DC2626 !important; }
.scale-num-zero { color: #94A3B8 !important; }

.compliance-indicator-pill {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-pill);
  display: inline-block;
  margin-top: 0.15rem;
}

.pill-scale-high { background: var(--green-light); color: var(--green-text); }
.pill-scale-good { background: #E0F2FE; color: #0369A1; }
.pill-scale-med { background: var(--yellow-light); color: var(--yellow-text); }
.pill-scale-low { background: var(--coral-light); color: var(--coral-text); }
.pill-scale-zero { background: var(--bg-subtle); color: var(--text-muted); }

.btn-open-class-matrix {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1rem;
  background: #1E293B;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}

.btn-open-class-matrix:hover {
  background: #0F172A;
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-open-class-matrix {
  background: var(--green-card);
  color: #0F172A;
  font-weight: 900;
}

[data-theme="dark"] .btn-open-class-matrix:hover {
  background: var(--green-card-hover);
}

[data-theme="dark"] .btn-soft-primary {
  background: var(--green-card);
  color: #0F172A;
}

[data-theme="dark"] .badge-active-class-name {
  background: var(--green-card);
  color: #0F172A;
}

[data-theme="dark"] .btn-neo-open-big,
[data-theme="dark"] .btn-neo-primary {
  background: var(--green-card);
  color: #0F172A;
}

[data-theme="dark"] .class-card-sks-tag {
  background: #1B4310;
  color: #A3E635;
  border-color: rgba(163, 230, 53, 0.3);
}

[data-theme="dark"] .class-card-item {
  background: #1E293B;
  border-color: #334155;
}

[data-theme="dark"] .class-card-item:hover {
  border-color: var(--green-card);
}

[data-theme="dark"] .class-selector-pill,
[data-theme="dark"] .btn-back-to-classes {
  background: #1E293B;
  color: #F8FAFC;
  border-color: #334155;
}

/* ==========================================================================
   6. MATRIX VIEW & SPREADSHEET TABLE
   ========================================================================== */
.matrix-class-nav-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.15rem;
  background: var(--bg-canvas);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-item);
  margin-bottom: 0.85rem;
}

.btn-back-to-classes {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: var(--transition);
}

.btn-back-to-classes:hover {
  background: var(--bg-subtle);
}

.matrix-active-class-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.badge-active-class-name {
  font-size: 1.05rem;
  font-weight: 900;
  color: #FFFFFF;
  background: var(--text-main);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
}

.active-class-course {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* SKS Mode Pills */
.sks-meeting-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sks-switcher-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.sks-pill-group {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 0.2rem;
  gap: 0.2rem;
}

.btn-sks-pill {
  padding: 0.35rem 0.75rem;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}

.btn-sks-pill.active {
  background: var(--green-card);
  color: #FFFFFF;
}

/* Table Wrapper */
.table-responsive-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-item);
  background: var(--bg-card);
}

.matrix-scroll-wrapper {
  max-height: 640px;
  overflow: auto;
}

.neo-admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.neo-admin-table th {
  background: var(--bg-canvas);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-card);
  white-space: nowrap;
}

.neo-admin-table td {
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border-card);
  vertical-align: middle;
}

/* Matrix Table Specifics */
.neo-matrix-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 900px;
}

.neo-matrix-table thead th {
  background: #1E293B !important;
  color: #FFFFFF !important;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #334155;
  border-right: 1px solid #334155;
}

.neo-matrix-table thead th.th-student-info {
  text-align: left;
  padding-left: 1.15rem;
}

/* Sticky Left Columns */
.neo-matrix-table .sticky-col-no {
  position: sticky;
  left: 0;
  z-index: 5;
  background: var(--bg-card);
  width: 48px;
  min-width: 48px;
  text-align: center;
  border-right: 1px solid var(--border-card);
}

.neo-matrix-table .sticky-col-kelas {
  position: sticky;
  left: 48px;
  z-index: 5;
  background: var(--bg-card);
  width: 110px;
  min-width: 110px;
  border-right: 1px solid var(--border-card);
}

.neo-matrix-table .sticky-col-name {
  position: sticky;
  left: 158px;
  z-index: 5;
  background: var(--bg-card);
  min-width: 220px;
  border-right: 2px solid var(--border-card) !important;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.03);
}

.neo-matrix-table thead th.sticky-col-no { left: 0; z-index: 15; }
.neo-matrix-table thead th.sticky-col-kelas { left: 48px; z-index: 15; }
.neo-matrix-table thead th.sticky-col-name { left: 158px; z-index: 15; }

.neo-matrix-table td {
  border-right: 1px solid var(--border-card);
  text-align: center;
}

.matrix-student-name {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--text-main);
  text-align: left;
}

.matrix-student-nim {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: left;
}

/* Matrix Pills & Statuses */
.matrix-cell-empty {
  color: var(--text-light);
  font-weight: 700;
  font-size: 0.95rem;
}

.matrix-link-card {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  justify-content: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.matrix-link-card:hover {
  filter: brightness(0.92);
  transform: translateY(-1px);
}

.matrix-status-valid {
  background: var(--green-light);
  color: var(--green-text);
  border: 1px solid rgba(136, 204, 62, 0.4);
}

.matrix-status-diperiksa {
  background: var(--yellow-light);
  color: var(--yellow-text);
  border: 1px solid rgba(243, 192, 63, 0.4);
}

.matrix-status-ditolak {
  background: var(--coral-light);
  color: var(--coral-text);
  border: 1px solid rgba(230, 116, 84, 0.4);
}

.matrix-cell-action-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.matrix-cell-action-btn:hover {
  color: var(--text-main);
}

/* Matrix Summary Columns (Total & Persentase with Progress Pill like Screenshot) */
.matrix-total-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: var(--bg-canvas);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--text-main);
  white-space: nowrap;
}

.matrix-pct-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-canvas);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.5rem;
  min-width: 105px;
  position: relative;
  overflow: hidden;
}

.matrix-pct-label {
  font-size: 0.78rem;
  font-weight: 900;
  z-index: 2;
}

.matrix-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(0,0,0,0.06);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 0.25rem;
}

.matrix-progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

.fill-high { background: var(--green-card); }
.fill-med { background: var(--yellow-card); }
.fill-low { background: var(--coral-card); }

.pct-high { color: var(--green-text); }
.pct-med { color: var(--yellow-text); }
.pct-low { color: var(--coral-text); }

/* ==========================================================================
   7. TIMELINE TABLE (ROUNDED ROW CARDS)
   ========================================================================== */
.td-id {
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-canvas);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  color: var(--text-main);
}

.td-student-box {
  display: flex;
  flex-direction: column;
}

.td-student-name {
  font-weight: 800;
  font-size: 0.88rem;
}

.td-student-nim {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.pill-kelas {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: var(--purple-light);
  color: var(--purple-text);
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.75rem;
}

.pill-pertemuan {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: var(--bg-canvas);
  color: var(--text-main);
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.75rem;
}

.btn-open-task-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  background: var(--blue-light);
  color: var(--blue-text);
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 0.75rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-open-task-link:hover {
  background: rgba(75, 158, 234, 0.2);
}

/* Status Badges */
.badge-table-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.badge-status-orange {
  background: var(--yellow-light);
  color: var(--yellow-text);
}
.badge-status-orange .status-indicator-dot { background: var(--yellow-card); }

.badge-status-green {
  background: var(--green-light);
  color: var(--green-text);
}
.badge-status-green .status-indicator-dot { background: var(--green-card); }

.badge-status-red {
  background: var(--coral-light);
  color: var(--coral-text);
}
.badge-status-red .status-indicator-dot { background: var(--coral-card); }

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

/* Quick Action Group */
.quick-action-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-action-status {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.btn-action-status svg {
  width: 15px;
  height: 15px;
}

.btn-act-valid {
  background: var(--green-light);
  color: var(--green-text);
  border-color: rgba(136, 204, 62, 0.3);
}
.btn-act-valid:hover {
  background: var(--green-card);
  color: #FFFFFF;
  transform: scale(1.1);
}

.btn-act-revisi {
  background: var(--coral-light);
  color: var(--coral-text);
  border-color: rgba(230, 116, 84, 0.3);
}
.btn-act-revisi:hover {
  background: var(--coral-card);
  color: #FFFFFF;
  transform: scale(1.1);
}

.btn-act-pending {
  background: var(--yellow-light);
  color: var(--yellow-text);
  border-color: rgba(243, 192, 63, 0.3);
}
.btn-act-pending:hover {
  background: var(--yellow-card);
  color: #FFFFFF;
  transform: scale(1.1);
}

/* ==========================================================================
   8. MODALS & STATES
   ========================================================================== */
.admin-state-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
  gap: 0.65rem;
}

.neo-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(0, 0, 0, 0.08);
  border-top-color: var(--green-card);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.state-icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-canvas);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.state-icon-circle svg {
  width: 24px;
  height: 24px;
}

/* Footer */
.admin-footer {
  text-align: center;
  padding-top: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 41, 59, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.neo-modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 480px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 0.85rem;
}

.modal-title-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.btn-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-card);
  background: var(--bg-subtle);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.verify-detail-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-item);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.verify-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.v-label { color: var(--text-muted); font-weight: 600; }
.v-val { font-weight: 800; color: var(--text-main); }
.badge-pertemuan-val {
  background: var(--bg-card);
  color: var(--text-main);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-card);
}

.btn-neo-open-big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--text-main);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  transition: var(--transition);
}

.btn-neo-open-big:hover {
  background: #0F172A;
}

.verify-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.55rem;
}

.btn-neo-action-modal {
  padding: 0.75rem 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-item);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-modal-valid { background: var(--green-light); color: var(--green-text); }
.btn-modal-valid:hover { background: var(--green-card); color: #FFFFFF; }

.btn-modal-reject { background: var(--coral-light); color: var(--coral-text); }
.btn-modal-reject:hover { background: var(--coral-card); color: #FFFFFF; }

.btn-modal-pending { background: var(--yellow-light); color: var(--yellow-text); }
.btn-modal-pending:hover { background: var(--yellow-card); color: #FFFFFF; }

.btn-neo-primary {
  padding: 0.75rem 1rem;
  background: var(--text-main);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
}

.btn-neo-secondary {
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 2000;
}

.toast {
  background: #1E293B;
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  animation: slideUp 0.2s ease;
}

.toast-success { background: #588724; }
.toast-error { background: #DC2626; }
.toast-info { background: #2563EB; }

@keyframes slideUp {
  from { transform: translateY(15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   9. ADMIN AUTHENTICATION SCREEN (LOGIN MODAL)
   ========================================================================== */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.25rem;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-card-neo {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  width: 100%;
  max-width: 440px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  position: relative;
  transition: var(--transition);
}

.auth-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-user-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}

.auth-avatar-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FDE68A, #F59E0B);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 20px -4px rgba(245, 158, 11, 0.35);
  margin-bottom: 0.35rem;
  border: 3px solid #FFFFFF;
}

.auth-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.auth-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-canvas);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.85rem;
  transition: var(--transition);
}

.auth-input-wrapper:focus-within {
  border-color: var(--text-main);
  box-shadow: 0 0 0 3px rgba(136, 204, 62, 0.2);
}

.auth-input-icon {
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.auth-input-field {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.65rem 0;
  font-family: var(--font-family);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  outline: none;
}

.auth-btn-eye {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.auth-btn-eye:hover {
  color: var(--text-main);
}

.auth-btn-eye svg {
  width: 16px;
  height: 16px;
}

.auth-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.auth-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.auth-checkbox-label input[type="checkbox"] {
  accent-color: var(--green-card);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.auth-error-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--coral-light);
  color: var(--coral-text);
  border: 1px solid rgba(230, 116, 84, 0.4);
  border-radius: var(--radius-item);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  animation: authShake 0.4s ease;
}

.auth-error-box svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.btn-auth-submit {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: var(--green-card);
  color: #0F172A;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-family);
  font-size: 0.92rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(136, 204, 62, 0.4);
  transition: var(--transition);
}

.btn-auth-submit:hover {
  background: var(--green-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(136, 204, 62, 0.5);
}

.btn-auth-submit svg {
  width: 18px;
  height: 18px;
}

.auth-card-footer {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  border-top: 1px solid var(--border-card);
  padding-top: 0.85rem;
}

.btn-logout:hover {
  background: var(--coral-light) !important;
  border-color: rgba(230, 116, 84, 0.4) !important;
  color: var(--coral-card) !important;
}
