.hidden {
  display: none !important;
}

/* ========================================================
   GLOBAL SECTION BACKGROUND & LAYOUT
   ======================================================== */
.rules-section,
.praktikum-section {
  margin-top: -64px;
  padding-top: 96px;
  padding-bottom: 60px;
  background: linear-gradient(180deg, #dbeafe 0%, #f0f9ff 25%, #e0f2fe 100%);
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.rules-header,
.page-header,
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  padding-top: 10px;
}

/* --- BADGES --- */
.badge-pill,
.header-badge {
  display: inline-flex;
  align-items: center;
  background-color: #eff6ff;
  color: #2563eb;
  padding: 6px 14px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  border: 1px solid #bfdbfe;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}

/* --- TYPOGRAPHY (JUDUL HITAM) --- */
.rules-header h1,
.page-header h1,
.section-header h2 {
  font-size: 2.2rem;
  font-weight: 850;
  color: #0f172a;
  letter-spacing: -1px;
  margin-bottom: 8px;
  line-height: 1.2;
  margin-top: 0;
}

.section-header h2 {
  font-size: 2rem;
}

.rules-header p,
.page-header p,
.section-header p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0 auto;
  font-weight: 400;
  max-width: 700px;
}

.text-nowrap {
  white-space: nowrap;
  width: 1%;
}

/* ========================================================
   RULES & PEDOMAN CARD STYLES
   ======================================================== */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.rule-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.02),
    0 10px 15px -3px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.rule-card:hover {
  transform: translateY(-10px);
  border-color: #3b82f6;
  box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.15);
}

.rule-img-box {
  width: 100%;
  height: 220px;
  overflow: hidden;
  margin-bottom: 35px;
  border-radius: 16px;
  background-color: #f1f5f9;
  border: 1px solid #f1f5f9;
}

.rule-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.rule-card:hover .rule-img-box img {
  transform: scale(1.1);
}

.rule-icon {
  display: none !important;
}

.icon-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

.icon-pink {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
  box-shadow: 0 10px 25px -5px rgba(219, 39, 119, 0.4);
}

.icon-red {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 10px 25px -5px rgba(220, 38, 38, 0.4);
}

.rule-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.rule-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rule-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

.rule-list li i {
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
  color: #2563eb;
}

/* ========================================================
   SANKSI CONTAINER
   ======================================================== */
.sanksi-container {
  background: #ffffff;
  color: #1e293b;
  padding: 60px;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  margin-top: 50px;
  box-shadow: 0 20px 50px -10px rgba(220, 38, 38, 0.1);
  border: 1px solid #fee2e2;
}

.sanksi-container::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle,
      rgba(239, 68, 68, 0.06) 0%,
      rgba(239, 68, 68, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.sanksi-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
  position: relative;
  z-index: 2;
  border-bottom: 2px solid #fee2e2;
  padding-bottom: 20px;
}

.sanksi-title h2 {
  font-size: 2.2rem;
  font-weight: 900;
  margin: 0;
  color: #991b1b;
  letter-spacing: -0.02em;
}

.sanksi-title i {
  color: #dc2626;
  font-size: 2.5rem;
}

.sanksi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 2;
}

.sanksi-item {
  background: #fffafa;
  padding: 25px;
  border-radius: 20px;
  border: 1px solid #fee2e2;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all 0.3s ease;
}

.sanksi-item:hover {
  transform: translateY(-5px);
  background: #ffffff;
  box-shadow: 0 15px 30px -5px rgba(220, 38, 38, 0.1);
  border-color: #fca5a5;
}

.sanksi-icon-box {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #fee2e2;
  color: #dc2626;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.sanksi-content h4 {
  color: #b91c1c;
  margin-bottom: 8px;
  font-size: 1.15rem;
  font-weight: 800;
  margin-top: 0;
}

.sanksi-content p {
  color: #475569;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* ========================================================
   VIDEO SECTION
   ======================================================== */
.video-header-wrapper {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.video-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #fef2f2;
  color: #dc2626;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid #fecaca;
  margin-bottom: 15px;
}

.video-title-box h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #1e293b;
  margin: 0;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.video-play-icon {
  width: 50px;
  height: 50px;
  background: #dc2626;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
  animation: pulse-red 2s infinite;
}

.video-desc {
  color: #64748b;
  font-size: 1.1rem;
  margin-top: 15px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

@keyframes pulse-red {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    transform: scale(1);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(220, 38, 38, 0);
    transform: scale(1.05);
  }
}

/* ========================================================
   JADWAL UPK & TABLES (UPDATED)
   ======================================================== */

.live-clock-badge {
  display: inline-block;
  background: #2563eb;
  color: #ffffff;
  font-family: "JetBrains Mono", "Consolas", monospace;
  font-size: 1.8rem;
  font-weight: 700;
  padding: 15px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
  border: 2px solid #60a5fa;
  letter-spacing: 2px;
  margin-top: 20px;
}

.schedule-wrapper {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 40px;
}

.lab-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 30px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.lab-icon {
  width: 50px;
  height: 50px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.1);
}

.lab-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- TABEL JADWAL --- */
.table-responsive {
  overflow-x: auto;
  width: 100%;
}

.table-schedule {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  min-width: 850px;
}

.table-schedule thead th {
  background: #2563eb;
  /* Header Biru sesuai request */
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 20px;
  text-align: left;
  border-bottom: 4px solid #1e40af;
  vertical-align: middle;
}

.table-schedule tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.2s ease;
}

.table-schedule tbody tr:last-child {
  border-bottom: none;
}

.table-schedule tbody tr:hover {
  background-color: #f8fafc;
}

.table-schedule td {
  padding: 16px 20px;
  vertical-align: middle;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #1e293b;
}

.table-schedule td b,
.table-schedule td strong {
  color: #0f172a;
}

.time-cell,
.time-range {
  color: #0f172a;
  font-weight: 700;
}

/* Typography Khusus Tabel Jadwal (NEW) */
.schedule-date {
  font-weight: 800;
  color: #0f172a;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  margin-bottom: 4px;
}

.schedule-time {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: #2563eb;
  font-weight: 700;
  background: #eff6ff;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
}

.schedule-matkul {
  font-weight: 700;
  color: #1e293b;
  font-size: 1rem;
  display: block;
}

.badge-prodi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 800;
  vertical-align: middle;
  line-height: 1.2;
  letter-spacing: 0.4px;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.badge-prodi-ti {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge-prodi-si {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.schedule-kelas {
  font-weight: 800;
  color: #0f172a;
  display: inline-block;
}

.schedule-freq {
  font-size: 0.88rem;
  color: #334155;
  font-weight: 600;
}

.dosen-cell {
  vertical-align: middle;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.dosen-info-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dosen-name {
  color: #1e293b;
}

.dosen-cell i,
.dosen-info-box i {
  color: #2563eb;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.asisten-cell {
  vertical-align: middle;
}

.asisten-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.asisten-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}

.asisten-name i {
  flex-shrink: 0;
}

.mobile-status-badge {
  display: none !important;
}

/* Status Labels & Responsive Cell Display */
.mobile-status-badge {
  display: none !important;
}

.desktop-status-cell {
  display: table-cell !important;
}

.status-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.badge-ongoing {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  animation: pulse-green 2s infinite;
}

.badge-upcoming {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge-scheduled {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.badge-finished {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.badge-inactive {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 101, 52, 0.4);
  }

  70% {
    box-shadow: 0 0 0 5px rgba(22, 101, 52, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(22, 101, 52, 0);
  }
}

.empty-schedule {
  background: #fff;
  border-radius: 20px;
  padding: 60px;
  text-align: center;
  border: 2px dashed #cbd5e1;
}

.empty-schedule i {
  font-size: 4rem;
  color: #94a3b8;
  margin-bottom: 20px;
}

.empty-schedule h3 {
  font-size: 1.5rem;
  color: #475569;
  margin-bottom: 10px;
}

/* ========================================================
   DOWNLOAD SECTION (Format Penulisan)
   ======================================================== */
.downloads-section {
  margin-top: 35px;
  padding-top: 35px;
  border-top: 2px dashed #e2e8f0;
}

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

.download-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 25px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.download-card:hover {
  transform: translateY(-5px);
  border-color: #3b82f6;
  box-shadow: 0 15px 30px -5px rgba(59, 130, 246, 0.15);
}

.file-icon-box {
  width: 60px;
  height: 60px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  border: 1px solid #dbeafe;
}

.download-content {
  flex: 1;
}

.download-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 5px 0;
  line-height: 1.4;
}

.file-meta {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #2563eb;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-download:hover {
  background-color: #1d4ed8;
}

.btn-external {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f1f5f9;
  color: #475569;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.btn-external:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {

  .rules-header h1,
  .page-header h1,
  .section-header h2 {
    font-size: 2.2rem;
  }

  .rules-section,
  .praktikum-section {
    padding: 60px 0;
  }

  .sanksi-container {
    padding: 40px 24px;
  }

  .sanksi-item {
    flex-direction: column;
  }

  .video-title-box h2 {
    font-size: 1.6rem;
    flex-direction: column;
    gap: 10px;
  }

  .table-schedule th,
  .table-schedule td {
    padding: 16px;
    font-size: 0.9rem;
  }

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

/* ========================================================
   MODUL PAGE SPECIFIC STYLES (NEW)
   ======================================================== */

/* Layout Helper */
.full-height {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.flex-grow {
  flex: 1;
}

/* Grid Layout for Modules (Full Width Single Column) */
.modul-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

/* Modul Card Container */
.modul-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.modul-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.08);
}

/* Modul Header Styles */
.modul-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: white;
  position: relative;
  overflow: hidden;
}

/* Gradient Backgrounds */
.header-ti {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.header-si {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

/* Dekorasi Background Header */
.modul-header::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.modul-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.header-text h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.header-text span {
  font-size: 0.8rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Table Styles Khusus Modul */
.table-modul {
  width: 100%;
  border-collapse: collapse;
}

.table-modul thead th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  padding: 12px 18px;
  text-align: left;
  border-bottom: 2px solid #e2e8f0;
}

.table-modul tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s;
}

.table-modul tbody tr:hover {
  background: #f8fafc;
}

.table-modul tbody tr:last-child {
  border-bottom: none;
}

.table-modul td {
  padding: 12px 18px;
  vertical-align: middle;
}

/* Column Widths */
.w-no {
  width: 50px;
}

.w-action {
  width: 120px;
}

/* Content Typography inside Table */
.number-col {
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.88rem;
}

.matkul-name {
  display: block;
  font-weight: 700;
  color: #1e293b;
  font-size: 0.92rem;
}

.modul-title {
  color: #64748b;
  font-size: 0.86rem;
}

/* Button Download Pill */
.btn-download-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 8px;
  background-color: #eff6ff;
  color: #2563eb;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.2s ease;
  border: 1px solid #bfdbfe;
}

.btn-download-pill:hover {
  background-color: #2563eb;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-download-pill i {
  font-size: 1.1rem;
}

/* Empty State Styling */
.empty-state {
  padding: 60px !important;
  text-align: center;
}

.empty-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  color: #94a3b8;
}

.empty-content i {
  font-size: 3rem;
  opacity: 0.5;
}

.empty-content p {
  margin: 0;
  font-style: italic;
  font-size: 1rem;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
  width: 100%;
}

.day-selector-wrapper {
  position: relative;
  display: inline-block;
}

.custom-select {
  appearance: none;
  background-color: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 40px 12px 20px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: #0f172a;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  min-width: 150px;
}

.custom-select:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.select-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

/* Global / Desktop Search Input Styling */
.search-input-wrapper,
.upk-search-wrapper,
.modul-search-wrapper {
  position: relative;
  display: inline-block;
}

#search-input,
#upk-search-input,
#modul-search-input {
  padding: 12px 20px 12px 45px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  transition: all 0.3s ease;
  background: #ffffff;
  color: #0f172a;
  min-width: 280px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

#search-input:focus,
#upk-search-input:focus,
#modul-search-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input-wrapper i.fa-search,
.search-input-wrapper i.search-icon,
.upk-search-wrapper i.fa-search,
.modul-search-wrapper i.fa-search {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
  font-size: 0.95rem;
}

/* Badge khusus untuk jadwal hari lain */
.badge-scheduled {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* Responsive Adjustments for Modul */
@media (max-width: 768px) {
  .modul-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .header-text h3 {
    font-size: 1.25rem;
  }

  .table-modul th,
  .table-modul td {
    padding: 15px;
  }

  .btn-download-pill span {
    display: none;
  }

  .btn-download-pill {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
  }

  .w-action {
    width: 80px;
  }
}

/* ========================================================
   PRAKTIKUM NIGHT MODE STYLES
   ======================================================== */

/* 1. Global Section Background & Layout */
body.night-mode .rules-section,
body.night-mode .praktikum-section {
  background: #0b0f19 !important;
  color: #f8fafc !important;
}

/* 2. Headers & Typography */
body.night-mode .rules-header h1,
body.night-mode .page-header h1,
body.night-mode .section-header h2,
body.night-mode .video-title-box h2,
body.night-mode .lab-title {
  color: #ffffff !important;
}

body.night-mode .rules-header p,
body.night-mode .page-header p,
body.night-mode .section-header p,
body.night-mode .video-desc {
  color: #cbd5e1 !important;
}

/* 3. Badges */
body.night-mode .badge-pill,
body.night-mode .header-badge {
  background-color: rgba(37, 99, 235, 0.15) !important;
  color: #60a5fa !important;
  border-color: rgba(96, 165, 250, 0.3) !important;
}

body.night-mode .video-badge {
  background-color: rgba(220, 38, 38, 0.15) !important;
  color: #f87171 !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

/* 4. Rule Cards & Modul Cards */
body.night-mode .rule-card,
body.night-mode .schedule-wrapper,
body.night-mode .download-card,
body.night-mode .modul-card {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35) !important;
}

body.night-mode .rule-img-box {
  background-color: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

body.night-mode .rule-card h3 {
  color: #ffffff !important;
}

body.night-mode .rule-list li {
  color: #cbd5e1 !important;
}

body.night-mode .rule-list li i {
  color: #60a5fa !important;
}

/* 5. Sanksi Container & Items */
body.night-mode .sanksi-container {
  background: #1e293b !important;
  color: #cbd5e1 !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4) !important;
}

body.night-mode .sanksi-title {
  border-bottom-color: rgba(239, 68, 68, 0.25) !important;
}

body.night-mode .sanksi-title h2 {
  color: #f87171 !important;
}

body.night-mode .sanksi-item {
  background: #0f172a !important;
  border-color: rgba(239, 68, 68, 0.2) !important;
}

body.night-mode .sanksi-item:hover {
  background: #1e293b !important;
  border-color: #f87171 !important;
}

body.night-mode .sanksi-icon-box {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
}

body.night-mode .sanksi-content h4 {
  color: #fca5a5 !important;
}

body.night-mode .sanksi-content p {
  color: #cbd5e1 !important;
}

/* 6. Lab Header & Schedule Tables */
body.night-mode .lab-header {
  background: #0f172a !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.night-mode .lab-icon {
  background: rgba(37, 99, 235, 0.2) !important;
  color: #60a5fa !important;
}

body.night-mode .table-schedule,
body.night-mode .table-modul {
  background: #1e293b !important;
}

body.night-mode .table-schedule thead th {
  background: #1d4ed8 !important;
  color: #ffffff !important;
  border-bottom-color: #1e40af !important;
}

body.night-mode .table-modul thead th {
  background: #0f172a !important;
  color: #94a3b8 !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.night-mode .table-schedule tbody tr,
body.night-mode .table-modul tbody tr {
  border-bottom-color: rgba(255, 255, 255, 0.06) !important;
}

body.night-mode .table-schedule tbody tr:hover,
body.night-mode .table-modul tbody tr:hover {
  background-color: #0f172a !important;
}

body.night-mode .schedule-date,
body.night-mode .matkul-name,
body.night-mode .download-content h4 {
  color: #f8fafc !important;
}

body.night-mode .schedule-time {
  background: rgba(37, 99, 235, 0.2) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

body.night-mode .time-cell,
body.night-mode .time-range {
  color: #ffffff !important;
  font-weight: 700 !important;
}

body.night-mode .schedule-matkul {
  color: #ffffff !important;
  font-weight: 700 !important;
}

body.night-mode .schedule-kelas,
body.night-mode .schedule-freq,
body.night-mode .schedule-meta-text,
body.night-mode .modul-title,
body.night-mode .asisten-name span {
  color: #cbd5e1 !important;
}

body.night-mode .dosen-name,
body.night-mode .dosen-info,
body.night-mode .dosen-info span,
body.night-mode .dosen-cell,
body.night-mode .dosen-cell span {
  color: #ffffff !important;
  font-weight: 600 !important;
}

body.night-mode .dosen-info i,
body.night-mode .dosen-cell i,
body.night-mode .asisten-name i {
  color: #60a5fa !important;
}

body.night-mode .table-schedule td {
  color: #e2e8f0 !important;
}

body.night-mode .badge-prodi-ti {
  background: rgba(37, 99, 235, 0.2) !important;
  color: #93c5fd !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
}

body.night-mode .badge-prodi-si {
  background: rgba(2, 132, 199, 0.2) !important;
  color: #7dd3fc !important;
  border-color: rgba(14, 165, 233, 0.4) !important;
}

body.night-mode .badge-ongoing {
  background: rgba(22, 101, 52, 0.35) !important;
  color: #4ade80 !important;
  border-color: rgba(74, 222, 128, 0.4) !important;
}

body.night-mode .badge-upcoming {
  background: rgba(37, 99, 235, 0.25) !important;
  color: #60a5fa !important;
  border-color: rgba(96, 165, 250, 0.4) !important;
}

body.night-mode .badge-scheduled {
  background: rgba(30, 58, 138, 0.35) !important;
  color: #93c5fd !important;
  border-color: rgba(96, 165, 250, 0.35) !important;
}

body.night-mode .badge-finished {
  background: rgba(30, 41, 59, 0.9) !important;
  color: #94a3b8 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .badge-inactive {
  background: rgba(220, 38, 38, 0.25) !important;
  color: #fca5a5 !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
}

/* 7. Dropdown Select & Controls */
body.night-mode .custom-select {
  background-color: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #f8fafc !important;
}

body.night-mode .custom-select:focus {
  border-color: #3b82f6 !important;
}

body.night-mode .select-icon {
  color: #94a3b8 !important;
}

/* 8. Download Cards & Buttons */
body.night-mode .file-icon-box {
  background: rgba(37, 99, 235, 0.2) !important;
  color: #60a5fa !important;
  border-color: rgba(96, 165, 250, 0.25) !important;
}

body.night-mode .file-meta {
  color: #94a3b8 !important;
}

body.night-mode .btn-external {
  background-color: #0f172a !important;
  color: #cbd5e1 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.night-mode .btn-external:hover {
  background-color: #1e293b !important;
  color: #ffffff !important;
}

body.night-mode .btn-download-pill {
  background-color: rgba(37, 99, 235, 0.2) !important;
  color: #60a5fa !important;
}

body.night-mode .btn-download-pill:hover {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

body.night-mode .empty-schedule {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

body.night-mode .empty-schedule h3 {
  color: #cbd5e1 !important;
}

body.night-mode .downloads-section {
  border-top-color: rgba(255, 255, 255, 0.1) !important;
}

/* 9. Search Input & Live Clock for Jadwal Page */
body.night-mode #search-input,
body.night-mode #upk-search-input,
body.night-mode #modul-search-input,
body.night-mode .search-input-wrapper input,
body.night-mode .upk-search-wrapper input,
body.night-mode .modul-search-wrapper input {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

body.night-mode #search-input::placeholder,
body.night-mode #upk-search-input::placeholder,
body.night-mode #modul-search-input::placeholder,
body.night-mode .search-input-wrapper input::placeholder,
body.night-mode .upk-search-wrapper input::placeholder,
body.night-mode .modul-search-wrapper input::placeholder {
  color: #94a3b8 !important;
}

body.night-mode .search-input-wrapper i,
body.night-mode .upk-search-wrapper i,
body.night-mode .modul-search-wrapper i {
  color: #94a3b8 !important;
}

body.night-mode .live-clock-badge {
  background: #1d4ed8 !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 10px 25px -5px rgba(29, 78, 216, 0.5) !important;
}

body.night-mode .custom-select,
body.night-mode #day-select,
body.night-mode #lab-select,
body.night-mode #prodi-select,
body.night-mode #upk-lab-select,
body.night-mode #upk-prodi-select,
body.night-mode #modul-prodi-select {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

body.night-mode .custom-select option,
body.night-mode select option {
  background-color: #1e293b !important;
  color: #f8fafc !important;
}

/* ========================================================
   DRESS CODE CARD IMAGES & HOVER STYLES
   ======================================================== */
.dress-code-box {
  height: 360px !important;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
}

.dress-code-img {
  height: 100%;
  width: auto;
  object-fit: contain !important;
  border-radius: 0;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.rule-card:hover .dress-code-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #e2eefe 100%);
  border-color: rgba(59, 130, 246, 0.3);
}

.rule-card:hover .dress-code-img {
  transform: scale(1.04);
  box-shadow: 0 15px 30px rgba(37, 99, 235, 0.12);
}

/* Night Mode Overrides */
body.night-mode .dress-code-box {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

body.night-mode .rule-card:hover .dress-code-box {
  background: linear-gradient(135deg, #1e293b 0%, #1e3a8a 100%) !important;
  border-color: rgba(96, 165, 250, 0.25) !important;
}

body.night-mode .dress-code-img {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

body.night-mode .rule-card:hover .dress-code-img {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.55);
}

/* ========================================================
   MOBILE RESPONSIVE OVERRIDES FOR TATA TERTIB & PRAKTIKUM
   ======================================================== */
@media screen and (max-width: 991px) {

  .rules-section,
  .praktikum-section {
    margin-top: 0 !important;
    padding-top: 24px !important;
    padding-bottom: 40px !important;
  }

  .rules-header,
  .page-header,
  .section-header {
    margin-bottom: 20px !important;
    padding-top: 10px !important;
  }

  .rules-header h1,
  .page-header h1 {
    font-size: 1.55rem !important;
    line-height: 1.25 !important;
  }

  .header-badge {
    font-size: 0.64rem !important;
    padding: 3px 10px !important;
    margin-bottom: 8px !important;
  }

  .rules-header p,
  .page-header p {
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
  }

  /* Grid & Cards Responsive Fixes (Preventing overflow/mentok) */
  .rules-grid,
  .sanksi-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .rule-card {
    padding: 16px 14px !important;
    border-radius: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .rule-card h3 {
    font-size: 1.08rem !important;
    margin-bottom: 10px !important;
  }

  .rule-img-box {
    height: 160px !important;
    margin-bottom: 14px !important;
    border-radius: 12px !important;
  }

  /* Sanksi Section Mobile Sizing & Spacing */
  .sanksi-container {
    padding: 18px 14px !important;
    border-radius: 16px !important;
    margin-top: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .sanksi-title {
    margin-bottom: 16px !important;
    gap: 8px !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .sanksi-title h2 {
    font-size: 1.3rem !important;
    line-height: 1.25 !important;
  }

  .sanksi-title i {
    font-size: 1.4rem !important;
  }

  .sanksi-item {
    padding: 14px 12px !important;
    border-radius: 12px !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .sanksi-icon-box {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 10px !important;
  }

  .sanksi-content h4 {
    font-size: 0.96rem !important;
    margin-bottom: 4px !important;
  }

  .sanksi-content p,
  .sanksi-content li {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
  }

  /* Downloads Section Mobile Overrides */
  .downloads-section {
    margin-top: 24px !important;
    padding-top: 20px !important;
  }

  .downloads-section .section-header h2 {
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
    margin-bottom: 4px !important;
  }

  .downloads-section .section-header p {
    font-size: 0.78rem !important;
    line-height: 1.35 !important;
  }

  .downloads-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    margin-top: 14px !important;
  }

  .download-card {
    padding: 12px 14px !important;
    gap: 12px !important;
    border-radius: 12px !important;
    align-items: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  }

  .file-icon-box {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 10px !important;
    font-size: 1.25rem !important;
  }

  .download-content h4 {
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    margin-bottom: 2px !important;
    line-height: 1.25 !important;
  }

  .file-meta {
    font-size: 0.74rem !important;
    margin-bottom: 8px !important;
  }

  .action-buttons {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 2px !important;
  }

  .btn-download,
  .btn-external {
    flex: 1 !important;
    justify-content: center !important;
    padding: 6px 10px !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    height: 34px !important;
    box-sizing: border-box !important;
  }

  /* ========================================================
     COMPACT MOBILE JADWAL PRAKTIKUM OVERRIDES
     ======================================================== */
  .live-clock-badge {
    font-size: 0.78rem !important;
    padding: 4px 14px !important;
    margin-top: 6px !important;
    border-radius: 6px !important;
  }

  .filter-controls {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .day-selector-wrapper {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: 120px !important;
    margin: 0 !important;
    position: relative !important;
  }

  /* Third wrapper (Prodi) expands to full row on mobile */
  .day-selector-wrapper:nth-child(3) {
    flex: 1 1 100% !important;
  }

  /* UPK page has 2 selects, each takes 50% width */
  .filter-controls:has(#upk-lab-select) .day-selector-wrapper {
    flex: 1 1 calc(50% - 4px) !important;
  }

  /* Modul page has 1 select, takes 100% width */
  .filter-controls:has(#modul-prodi-select) .day-selector-wrapper {
    flex: 1 1 100% !important;
  }

  .custom-select,
  #day-select,
  #lab-select,
  #prodi-select,
  #upk-lab-select,
  #upk-prodi-select,
  #modul-prodi-select {
    width: 100% !important;
    min-width: 0 !important;
    padding: 8px 28px 8px 12px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    height: 42px !important;
    box-sizing: border-box !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    background-color: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
  }

  body.night-mode .custom-select,
  body.night-mode #day-select,
  body.night-mode #lab-select,
  body.night-mode #prodi-select,
  body.night-mode #upk-lab-select,
  body.night-mode #upk-prodi-select,
  body.night-mode #modul-prodi-select {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
  }

  .search-input-wrapper,
  .upk-search-wrapper,
  .modul-search-wrapper {
    flex: 1 1 100% !important;
    width: 100% !important;
    margin-top: 2px !important;
    position: relative !important;
    box-sizing: border-box !important;
  }

  #search-input,
  #upk-search-input,
  #modul-search-input {
    width: 100% !important;
    min-width: 0 !important;
    padding: 8px 14px 8px 40px !important;
    font-size: 0.85rem !important;
    border-radius: 10px !important;
    height: 42px !important;
    border: 1.5px solid #cbd5e1 !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
  }

  body.night-mode #search-input,
  body.night-mode #upk-search-input,
  body.night-mode #modul-search-input {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
  }

  .search-input-wrapper i.fa-search,
  .search-input-wrapper i.search-icon,
  .upk-search-wrapper i.fa-search,
  .modul-search-wrapper i.fa-search {
    left: 14px !important;
    font-size: 0.88rem !important;
    z-index: 5 !important;
    pointer-events: none !important;
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #64748b !important;
  }

  /* Compact Lab Section Wrapper & Headers */
  .schedule-wrapper {
    margin-bottom: 24px !important;
  }

  .lab-header {
    padding: 12px 16px !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
    gap: 10px !important;
  }

  .lab-title {
    font-size: 1.05rem !important;
  }

  .lab-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 0.95rem !important;
    border-radius: 10px !important;
  }

  .badge-prodi {
    display: inline-flex !important;
  }

  /* Mobile Responsive Schedule Card Layout (Zero Horizontal Scroll!) */
  .table-responsive {
    overflow-x: visible !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .table-schedule {
    display: block !important;
    width: 100% !important;
  }

  .table-schedule thead {
    display: none !important;
  }

  .table-schedule tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .mobile-status-badge {
    display: inline-flex !important;
  }

  .desktop-status-cell {
    display: none !important;
  }

  .table-schedule tr {
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 14px 16px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 8px !important;
  }

  body.night-mode .table-schedule tr {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  }

  .table-schedule td {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
  }

  /* Waktu & Status top header row */
  .table-schedule td.time-cell {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding-bottom: 8px !important;
    border-bottom: 1px dashed #e2e8f0 !important;
    font-weight: 800 !important;
    color: #2563eb !important;
    font-size: 0.86rem !important;
  }

  body.night-mode .table-schedule td.time-cell {
    color: #60a5fa !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
  }

  /* Mata Kuliah */
  .table-schedule td.matkul-cell {
    padding-top: 2px !important;
  }

  .matkul-info-box .schedule-matkul {
    font-size: 0.98rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
  }

  body.night-mode .matkul-info-box .schedule-matkul {
    color: #f8fafc !important;
  }

  /* Dosen */
  .table-schedule td.dosen-cell {
    padding-top: 6px !important;
    border-top: 1px solid #f1f5f9 !important;
  }

  body.night-mode .table-schedule td.dosen-cell {
    border-top-color: rgba(255, 255, 255, 0.06) !important;
  }

  .dosen-info-box {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .dosen-name {
    font-weight: 600 !important;
    font-size: 0.84rem !important;
    color: #334155 !important;
  }

  body.night-mode .dosen-name {
    color: #cbd5e1 !important;
  }

  /* Asisten */
  .table-schedule td.asisten-cell {
    padding-top: 6px !important;
    border-top: 1px solid #f1f5f9 !important;
  }

  body.night-mode .table-schedule td.asisten-cell {
    border-top-color: rgba(255, 255, 255, 0.06) !important;
  }

  .asisten-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
  }

  .asisten-name {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.82rem !important;
    color: #475569 !important;
    font-weight: 500 !important;
  }

  body.night-mode .asisten-name {
    color: #cbd5e1 !important;
  }

  .status-label {
    padding: 3px 10px !important;
    font-size: 0.66rem !important;
    letter-spacing: 0.3px !important;
    border-radius: 6px !important;
  }

  .asisten-name {
    font-size: 0.74rem !important;
  }

  /* ========================================================
     MOBILE MODUL PRAKTIKUM CARDS & OVERRIDES (ULTRA COMPACT)
     ======================================================== */
  .modul-grid {
    gap: 14px !important;
    margin-bottom: 24px !important;
  }

  .modul-card {
    border-radius: 12px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden !important;
  }

  .modul-header {
    padding: 10px 14px !important;
    gap: 8px !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .modul-icon {
    display: none !important;
  }

  .header-text {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 1px !important;
  }

  .header-text h3 {
    font-size: 0.96rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    letter-spacing: -0.01em !important;
  }

  .header-text span {
    font-size: 0.68rem !important;
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
  }

  .table-modul {
    display: block !important;
    width: 100% !important;
  }

  .table-modul thead {
    display: none !important;
  }

  .table-modul tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .table-modul tbody tr {
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
    gap: 4px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  body.night-mode .table-modul tbody tr {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
  }

  .table-modul td {
    padding: 0 !important;
    border: none !important;
    width: 100% !important;
    display: block !important;
  }

  .table-modul td.number-col {
    display: none !important;
  }

  .matkul-name {
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
  }

  body.night-mode .matkul-name {
    color: #f8fafc !important;
  }

  .modul-title {
    font-size: 0.78rem !important;
    color: #64748b !important;
    line-height: 1.3 !important;
  }

  body.night-mode .modul-title {
    color: #94a3b8 !important;
  }

  .btn-download-pill {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.76rem !important;
    height: 32px !important;
    margin-top: 2px !important;
    box-sizing: border-box !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15) !important;
  }

  .btn-download-pill:active {
    transform: scale(0.98) !important;
  }
}