
/* ==========================================================================
   CLBTH Modern Design System - Online Judge (clbtinhocued.com)
   Typography: Be Vietnam Pro, Manrope, Inter, Fira Code, Play
   Brand Colors: Ink #17231B, Green #146B3A, Gold #B38A28, Paper #EBEADF
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Source+Serif+4:wght@400;500;600;700&display=swap');

:root {
  --clbth-primary: #146B3A;
  --clbth-primary-hover: #0A3A1C;
  --clbth-primary-light: #E3F3E8;
  --clbth-accent: #B38A28;
  --clbth-blue: #146B3A;
  --clbth-blue-hover: #0A3A1C;
  --clbth-green: #4E9E6D;
  --clbth-border: #D4DAD5;
  --clbth-text-dark: #17231B;
  --clbth-text-muted: #5C6B60;
  --clbth-bg-card: #F6F5EE;
}

body {
  font-family: "Source Serif 4", Georgia, serif !important;
  color: #17231B;
  background-color: #EBEADF;
  -webkit-font-smoothing: antialiased;
}

/* Brand badge in navbar */
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.5rem;
  text-decoration: none;
}
.brand-badge .site-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
}
.brand-badge .brand-name {
  font-family: "Play", "Manrope", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #026599;
  letter-spacing: -0.02em;
}

/* Navigation items & icon styling */
#nav-list > li > a span.nav-fa-icon,
#nav-list > li > a span.nav-fa-icon-active {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  background: #f1f5f9 !important;
  flex-shrink: 0 !important;
  transform: none !important;
  margin: 0 !important;
  transition: all 0.18s ease !important;
}

#nav-list > li > a:hover span.nav-fa-icon,
#nav-list > li > a.active span.nav-fa-icon-active {
  background: #e0f2fe !important;
  transform: scale(1.08) !important;
}

#nav-list > li > a span.nav-fa-icon i,
#nav-list > li > a.active span.nav-fa-icon-active i {
  color: #026599 !important;
}

/* Dropdown popover animations */
@keyframes navPopoverFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown {
  background: #ffffff !important;
  min-width: 195px !important;
  padding: 0.45rem !important;
  border: 1px solid #dbe4f2 !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.16) !important;
  z-index: 99999 !important;
  box-sizing: border-box !important;
  display: none;
}

.dropdown.show,
.dropdown.dropdown-visible {
  display: block !important;
  animation: navPopoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.popper-arrow,
.popper-arrow::before {
  position: absolute;
  width: 10px !important;
  height: 10px !important;
  background: #ffffff !important;
}

.popper-arrow::before {
  visibility: visible;
  content: '' !important;
  transform: rotate(45deg) !important;
  border-left: 1px solid #dbe4f2 !important;
  border-top: 1px solid #dbe4f2 !important;
}

.dropdown-item {
  font-family: "Manrope", "Noto Sans", sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  padding: 0.58rem 0.82rem !important;
  cursor: pointer !important;
  color: #1e293b !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease !important;
}

.dropdown-item:hover {
  color: #026599 !important;
  background-color: #f1f5f9 !important;
  transform: translateX(3px) !important;
}

.dropdown-item i {
  width: 1.3em !important;
  text-align: center !important;
  color: #026599 !important;
  font-size: 0.95rem !important;
}

/* Nav more dropdown item */
.nav-more-item {
  position: relative !important;
}

#nav-more-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  cursor: pointer !important;
}

.nav-more-chevron {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  font-size: 0.82rem !important;
  color: #64748b !important;
  margin-left: 2px !important;
}

@media (min-width: 800px) {
  .nav-more-item #nav-more-dropdown {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    min-width: 200px !important;
    display: none;
  }

  .nav-more-item:hover #nav-more-dropdown,
  .nav-more-item.open #nav-more-dropdown,
  .nav-more-item.show #nav-more-dropdown {
    display: block !important;
    animation: navPopoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }

  .nav-more-item:hover #nav-more-toggle,
  .nav-more-item.open #nav-more-toggle {
    color: #026599 !important;
    background: rgba(2, 101, 153, 0.06) !important;
  }

  .nav-more-item:hover .nav-more-chevron,
  .nav-more-item.open .nav-more-chevron {
    transform: rotate(180deg) !important;
    color: #026599 !important;
  }
}

/* Page content wrapper shell */
#content {
  width: min(94vw, 1500px) !important;
  max-width: 1500px !important;
  margin-top: 88px !important;
  margin-bottom: 50px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-top: 0 !important;
  box-sizing: border-box !important;
}

#content.wrapper {
  padding: clamp(1.4rem, 2.2vw, 2.4rem) !important;
  border-radius: 22px !important;
  border: 1px solid #dce8f6 !important;
  background: #ffffff !important;
  box-shadow: 0 16px 40px rgba(12, 35, 64, 0.05) !important;
  box-sizing: border-box !important;
}



/* --- Extracted from attendance.html --- */
#content {
      width: min(94vw, 1500px) !important;
      max-width: 1500px !important;
      margin-top: 88px !important;
      margin-bottom: 50px !important;
      margin-left: auto !important;
      margin-right: auto !important;
      padding-top: 0 !important;
      box-sizing: border-box !important;
    }

    #content.wrapper {
      padding: clamp(1.4rem, 2.2vw, 2.4rem) !important;
      border-radius: 22px !important;
      border: 1px solid #dce8f6 !important;
      background: #ffffff !important;
      box-shadow: 0 16px 40px rgba(12, 35, 64, 0.05) !important;
      box-sizing: border-box !important;
    }

    .attendance-page-shell {
      width: 100%;
      box-sizing: border-box;
      padding-top: 0.3rem;
    }

    .att-hero-header {
      border: 1px solid #d4e3f3;
      border-radius: 20px;
      background:
      radial-gradient(circle at top right, rgba(50, 114, 248, 0.2) 0%, rgba(50, 114, 248, 0) 50%),
      linear-gradient(135deg, #f9fcff 0%, #f0f6ff 100%);
      box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
      padding: 1.4rem 1.7rem;
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
      gap: 1.4rem;
      align-items: center;
      margin-top: 0.2rem;
      margin-bottom: 1.6rem;
    }

    .att-hero-copy {
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
    }

    .att-hero-eyebrow {
      margin: 0;
      font-family: "Manrope", "Noto Sans", sans-serif;
      color: #30548f;
      font-size: 0.82rem;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      font-weight: 800;
    }

    .att-hero-title {
      margin: 0;
      color: #14284a;
      font-family: "Manrope", "Noto Sans", sans-serif;
      font-size: clamp(1.3rem, 2.2vw, 1.7rem);
      line-height: 1.3;
      font-weight: 800;
      letter-spacing: -0.01em;
    }

    .att-hero-note {
      margin: 0;
      color: #475569;
      font-size: 0.92rem;
      line-height: 1.45;
    }

    .att-filter-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.75rem;
    }

    .att-filter-card {
      background: #ffffff;
      border: 1px solid #dce8f6;
      border-radius: 14px;
      padding: 0.65rem 0.9rem;
      box-shadow: 0 4px 12px rgba(12, 35, 64, 0.03);
      display: flex;
      flex-direction: column;
      gap: 0.3rem;
    }

    .att-filter-card label {
      font-size: 0.74rem;
      font-weight: 700;
      color: #475569;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin: 0;
    }

    .att-filter-card select,
    .att-filter-card input[type="date"] {
      background: #f8fafc;
      color: #0f172a;
      border: 1px solid #cbd5e1;
      border-radius: 8px;
      padding: 0.4rem 0.55rem;
      font-size: 0.88rem;
      font-weight: 700;
      outline: none;
      cursor: pointer;
      width: 100%;
      box-sizing: border-box;
    }

    .att-filter-card select:focus,
    .att-filter-card input[type="date"]:focus {
      border-color: #026599;
      background: #ffffff;
    }

    .att-nav-tabs-wrapper {
      width: 100%;
      margin-bottom: 1.6rem;
    }

    .att-nav-tabs {
      display: flex;
      align-items: center;
      width: 100%;
      box-sizing: border-box;
      background: #f1f5f9;
      padding: 5px 8px;
      border-radius: 14px;
      gap: 6px;
      border: 1px solid #dce8f6;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      box-shadow: 0 2px 8px rgba(12, 35, 64, 0.03);
    }

    .att-nav-tabs::-webkit-scrollbar {
      display: none;
    }

    .att-tab-btn {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 8px 20px;
      font-size: 0.92rem;
      font-weight: 700;
      color: #334155;
      border-radius: 10px;
      background: transparent;
      border: none;
      cursor: pointer;
      transition: all 0.18s ease;
      text-decoration: none;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .att-tab-btn:hover:not(.active) {
      color: #0f172a;
      background: #ffffff;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    }

    .att-tab-btn.active {
      color: #ffffff !important;
      background: #155eef !important;
      box-shadow: 0 3px 10px rgba(21, 94, 239, 0.35);
    }

    .att-tab-btn.active i {
      color: #ffffff !important;
    }

    .att-tab-btn:not(.active) i {
      color: #64748b;
    }

    .att-stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
      gap: 1.1rem;
      margin-bottom: 1.5rem;
    }

    .att-stat-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 16px;
      padding: 1rem 1.25rem;
      box-shadow: 0 4px 16px rgba(12, 35, 64, 0.04);
      display: flex;
      align-items: center;
      gap: 0.9rem;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      box-sizing: border-box;
    }

    .att-stat-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 24px rgba(12, 35, 64, 0.08);
    }

    .att-stat-icon {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.3rem;
      flex-shrink: 0;
    }

    .att-stat-icon.blue {
      background: #e0f2fe;
      color: #0284c7;
    }

    .att-stat-icon.green {
      background: #dcfce7;
      color: #10b981;
    }

    .att-stat-icon.yellow {
      background: #fef3c7;
      color: #f59e0b;
    }

    .att-stat-icon.red {
      background: #fee2e2;
      color: #ef4444;
    }

    .att-stat-content {
      min-width: 0;
      flex: 1;
    }

    .att-stat-val {
      font-size: 1.45rem;
      font-weight: 800;
      color: #0f172a;
      line-height: 1.2;
      display: flex;
      align-items: baseline;
      gap: 0.35rem;
      flex-wrap: wrap;
    }

    .att-stat-label {
      font-size: 0.8rem;
      font-weight: 600;
      color: #64748b;
      margin-top: 0.2rem;
      white-space: nowrap;
    }

    .att-session-banner {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 16px;
      padding: 1.1rem 1.4rem;
      margin-bottom: 1.4rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 1rem;
      box-shadow: 0 4px 14px rgba(12, 35, 64, 0.03);
      box-sizing: border-box;
    }

    .att-session-controls {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      flex-wrap: wrap;
    }

    .session-status-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.35rem 0.9rem;
      border-radius: 20px;
      font-size: 0.84rem;
      font-weight: 700;
      white-space: nowrap;
    }

    .session-status-badge.open {
      background: #dcfce7;
      color: #166534;
      border: 1px solid #86efac;
    }

    .session-status-badge.upcoming {
      background: #fef3c7;
      color: #92400e;
      border: 1px solid #fde68a;
    }

    .session-status-badge.closed {
      background: #f1f5f9;
      color: #475569;
      border: 1px solid #cbd5e1;
    }

    .session-status-badge.locked {
      background: #fee2e2;
      color: #991b1b;
      border: 1px solid #fca5a5;
    }

    .att-table-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 4px 18px rgba(12, 35, 64, 0.04);
      margin-bottom: 1.8rem;
      box-sizing: border-box;
    }

    .att-table-header {
      padding: 1.1rem 1.4rem;
      background: #f8fafc;
      border-bottom: 1px solid #e2e8f0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 1rem;
    }

    .att-table-header h3 {
      margin: 0;
      font-size: 1.08rem;
      font-weight: 700;
      color: #1e293b;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      flex-wrap: wrap;
    }

    .att-table-responsive {
      width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }

    .att-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.92rem;
    }

    .att-table th {
      background: #f8fafc;
      color: #475569;
      font-weight: 700;
      padding: 0.85rem 1rem;
      text-align: left;
      border-bottom: 1px solid #e2e8f0;
      font-size: 0.82rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      white-space: nowrap;
    }

    .att-table td {
      padding: 0.9rem 1rem;
      border-bottom: 1px solid #f1f5f9;
      color: #1e293b;
      vertical-align: middle;
    }

    .att-table tr:hover td {
      background: #f8fafc;
    }

    .att-table tr:last-child td {
      border-bottom: none;
    }

    .status-pills-group {
      display: inline-flex;
      background: #f8fafc;
      padding: 4px;
      border-radius: 12px;
      gap: 5px;
      border: 1px solid #e2e8f0;
      align-items: center;
      white-space: nowrap;
    }

    .status-pill-btn {
      border: 1.5px solid transparent !important;
      padding: 6px 12px !important;
      border-radius: 9px !important;
      font-size: 0.83rem !important;
      font-weight: 800 !important;
      cursor: pointer !important;
      transition: all 0.18s ease !important;
      display: inline-flex !important;
      align-items: center !important;
      gap: 5px !important;
      outline: none !important;
      text-decoration: none !important;
      white-space: nowrap !important;
    }

    .pill-short-label {
      display: none;
    }

    .status-pill-btn.present {
      background: #ecfdf5 !important;
      border-color: #6ee7b7 !important;
      color: #065f46 !important;
    }

    .status-pill-btn.present i {
      color: #059669 !important;
    }

    .status-pill-btn.present:hover:not(:disabled) {
      background: #d1fae5 !important;
      border-color: #34d399 !important;
      color: #047857 !important;
      transform: translateY(-1px);
    }

    .status-pill-btn.late {
      background: #fffbeb !important;
      border-color: #fcd34d !important;
      color: #92400e !important;
    }

    .status-pill-btn.late i {
      color: #d97706 !important;
    }

    .status-pill-btn.late:hover:not(:disabled) {
      background: #fef3c7 !important;
      border-color: #fbbf24 !important;
      color: #78350f !important;
      transform: translateY(-1px);
    }

    .status-pill-btn.excused {
      background: #eff6ff !important;
      border-color: #93c5fd !important;
      color: #1e40af !important;
    }

    .status-pill-btn.excused i {
      color: #2563eb !important;
    }

    .status-pill-btn.excused:hover:not(:disabled) {
      background: #dbeafe !important;
      border-color: #60a5fa !important;
      color: #1e3a8a !important;
      transform: translateY(-1px);
    }

    .status-pill-btn.absent {
      background: #fef2f2 !important;
      border-color: #fca5a5 !important;
      color: #991b1b !important;
    }

    .status-pill-btn.absent i {
      color: #dc2626 !important;
    }

    .status-pill-btn.absent:hover:not(:disabled) {
      background: #fee2e2 !important;
      border-color: #f87171 !important;
      color: #7f1d1d !important;
      transform: translateY(-1px);
    }

    .status-pill-btn.clear-btn {
      background: #f8fafc !important;
      border-color: #cbd5e1 !important;
      color: #64748b !important;
    }

    .status-pill-btn.clear-btn:hover:not(:disabled) {
      background: #fee2e2 !important;
      border-color: #fca5a5 !important;
      color: #dc2626 !important;
      transform: translateY(-1px);
    }

    .status-pill-btn.clear-btn i {
      color: #94a3b8 !important;
    }

    .status-pill-btn.clear-btn:hover:not(:disabled) i {
      color: #dc2626 !important;
    }

    .status-pill-btn.active.present {
      background: #059669 !important;
      border-color: #047857 !important;
      color: #ffffff !important;
      box-shadow: 0 3px 8px rgba(5, 150, 105, 0.45) !important;
    }

    .status-pill-btn.active.present i {
      color: #ffffff !important;
    }

    .status-pill-btn.active.late {
      background: #d97706 !important;
      border-color: #b45309 !important;
      color: #ffffff !important;
      box-shadow: 0 3px 8px rgba(217, 119, 6, 0.45) !important;
    }

    .status-pill-btn.active.late i {
      color: #ffffff !important;
    }

    .status-pill-btn.active.excused {
      background: #2563eb !important;
      border-color: #1d4ed8 !important;
      color: #ffffff !important;
      box-shadow: 0 3px 8px rgba(37, 99, 235, 0.45) !important;
    }

    .status-pill-btn.active.excused i {
      color: #ffffff !important;
    }

    .status-pill-btn.active.absent {
      background: #dc2626 !important;
      border-color: #b91c1c !important;
      color: #ffffff !important;
      box-shadow: 0 3px 8px rgba(220, 38, 38, 0.45) !important;
    }

    .status-pill-btn.active.absent i {
      color: #ffffff !important;
    }

    .status-pill-btn:disabled,
    .status-pill-btn.disabled {
      cursor: not-allowed;
      opacity: 0.45;
    }

    .badge-att {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 5px 12px;
      border-radius: 8px;
      font-size: 0.84rem;
      font-weight: 700;
      white-space: nowrap;
    }

    .badge-att.present {
      background: #dcfce7;
      color: #15803d;
      border: 1px solid #86efac;
    }

    .badge-att.late {
      background: #fef3c7;
      color: #b45309;
      border: 1px solid #fcd34d;
    }

    .badge-att.excused {
      background: #e0f2fe;
      color: #0369a1;
      border: 1px solid #7dd3fc;
    }

    .badge-att.absent {
      background: #fee2e2;
      color: #b91c1c;
      border: 1px solid #fca5a5;
    }

    .user-avatar-cell {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .user-avatar-img {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid #e2e8f0;
      flex-shrink: 0;
    }

    .user-name-box a {
      font-weight: 700;
      color: #026599;
      text-decoration: none;
      font-size: 0.95rem;
    }

    .user-name-box a:hover {
      text-decoration: underline;
    }

    .btn-att-primary {
      background: #026599;
      background: linear-gradient(135deg, #026599, #0384c7);
      color: #ffffff !important;
      border: none;
      padding: 0.52rem 1.2rem;
      border-radius: 10px;
      font-weight: 700;
      font-size: 0.88rem;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      box-shadow: 0 2px 8px rgba(2, 101, 153, 0.25);
      transition: all 0.2s ease;
      text-decoration: none;
      white-space: nowrap;
    }

    .btn-att-primary:hover {
      box-shadow: 0 4px 14px rgba(2, 101, 153, 0.35);
      transform: translateY(-1px);
    }

    .att-groups-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 1.25rem;
    }

    .att-group-card {
      background: #ffffff;
      border: 1px solid #dce8f6;
      border-radius: 16px;
      padding: 1.25rem 1.35rem;
      box-shadow: 0 4px 14px rgba(12, 35, 64, 0.04);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }

    .att-group-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 24px rgba(12, 35, 64, 0.08);
      border-color: #bfdcfa;
    }

    .att-group-card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.75rem;
      padding-bottom: 0.6rem;
      border-bottom: 1px solid #f1f5f9;
    }

    .att-group-card-title {
      margin: 0;
      color: #026599;
      font-size: 1.15rem;
      font-weight: 800;
    }

    .att-group-card-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.25rem 0.65rem;
      border-radius: 8px;
      background: #eff6ff;
      color: #026599;
      font-size: 0.8rem;
      font-weight: 800;
      border: 1px solid #bfdcfa;
    }

    .att-group-card-body {
      font-size: 0.85rem;
      color: #475569;
      line-height: 1.6;
      margin-bottom: 1rem;
    }

    .att-multi-session-bar {
      background: #ffffff;
      border: 1px solid #dce8f6;
      border-radius: 14px;
      padding: 0.75rem 1.1rem;
      margin-bottom: 1.2rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 0.8rem;
      box-shadow: 0 4px 14px rgba(12, 35, 64, 0.03);
    }

    #att-toast {
      position: fixed;
      bottom: 24px;
      right: 24px;
      background: #0f172a;
      color: #ffffff;
      padding: 12px 20px;
      border-radius: 10px;
      font-size: 0.9rem;
      font-weight: 600;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
      z-index: 99999;
      display: none;
      align-items: center;
      gap: 8px;
      animation: toastSlideIn 0.3s ease-out;
    }

    @keyframes toastSlideIn {
      from {
        transform: translateY(20px);
        opacity: 0;
      }

      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    @media (max-width: 992px) {
      #content {
        width: 95vw !important;
        margin-top: 82px !important;
        margin-bottom: 30px !important;
      }

      #content.wrapper {
        padding: 1.2rem !important;
        border-radius: 16px !important;
      }

      .att-hero-header {
        grid-template-columns: 1fr;
        gap: 1.1rem;
        padding: 1.2rem 1.4rem;
      }

      .pill-full-label {
        display: none;
      }

      .pill-short-label {
        display: inline;
      }

      .status-pills-group {
        padding: 3px;
        gap: 3px;
      }

      .status-pill-btn {
        padding: 5px 8px !important;
        font-size: 0.78rem !important;
        gap: 3px !important;
      }

      .att-table {
        min-width: 660px;
      }
    }

@media (max-width: 768px) {
      #content {
        width: 96vw !important;
        margin-top: 78px !important;
        margin-bottom: 20px !important;
      }

      #content.wrapper {
        padding: 0.85rem !important;
        border-radius: 14px !important;
      }

      .att-hero-header {
        padding: 1rem 1.1rem;
        border-radius: 14px;
        margin-bottom: 1.2rem;
        gap: 0.9rem;
      }

      .att-hero-title {
        font-size: 1.3rem !important;
      }

      .att-hero-note {
        font-size: 0.84rem;
      }

      .att-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
        margin-bottom: 1.2rem;
      }

      .att-stat-card {
        padding: 0.8rem 0.9rem;
        border-radius: 12px;
        gap: 0.65rem;
      }

      .att-stat-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
        border-radius: 10px;
      }

      .att-stat-val {
        font-size: 1.25rem;
      }

      .att-stat-label {
        font-size: 0.74rem;
        white-space: normal;
        line-height: 1.2;
      }

      .att-session-banner {
        padding: 0.9rem 1.1rem;
        border-radius: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        margin-bottom: 1.2rem;
      }

      .att-session-controls {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.5rem;
      }

      .att-session-controls select,
      .att-session-controls button {
        width: 100%;
        box-sizing: border-box;
        justify-content: center;
      }

      .att-table-card {
        border-radius: 12px;
        margin-bottom: 1.2rem;
      }

      .att-table-header {
        padding: 0.85rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
      }

      .att-table-header h3 {
        font-size: 0.98rem;
      }

      .att-table th {
        padding: 0.65rem 0.75rem;
        font-size: 0.76rem;
      }

      .att-table td {
        padding: 0.75rem 0.75rem;
        font-size: 0.86rem;
      }

      .att-tab-btn {
        padding: 7px 12px;
        font-size: 0.84rem;
        gap: 5px;
      }

      #att-toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
        font-size: 0.84rem;
        padding: 10px 16px;
        justify-content: center;
  }
}

/* Fix active problem/course tabs: keep label and icons readable on dark green. */
.left-sidebar-item.active,
.left-sidebar-item.active:visited,
.left-sidebar-item.active:hover,
.left-sidebar-item.active:focus,
.left-sidebar-item.active .sidebar-text,
.left-sidebar-item.active .sidebar-icon,
.left-sidebar-item.active .sidebar-icon i {
  color: #F6F5EE !important;
  background-color: #146B3A !important;
  -webkit-text-fill-color: #F6F5EE !important;
}

.left-sidebar-item.active:hover,
.left-sidebar-item.active:focus-visible {
  background-color: #0A3A1C !important;
}

.tabs li.active a,
.tabs li.active a:hover,
.tabs li.active a:focus,
.tabs li.active span,
.tabs li.active i {
  color: #F6F5EE !important;
  background: #146B3A !important;
  -webkit-text-fill-color: #F6F5EE !important;
}

.tabs li a:hover:not(.active),
.tabs li span:hover:not(.active) {
  color: #146B3A !important;
  background: #E3F3E8 !important;
}

/* ========================================================================
   CLBTH reference UI polish
   Shared visual layer for the home, problem, submission and member views.
   ======================================================================== */
:root {
  --clbth-surface: #ffffff;
  --clbth-page: #f1f6fb;
  --clbth-panel: #eef5ff;
  --clbth-line: #d5e3f3;
  --clbth-ink: #1d3557;
  --clbth-link: #1755b8;
  --clbth-tab: #1554c7;
  --clbth-radius: 16px;
}

html, body { background: var(--clbth-page) !important; }
body { color: var(--clbth-ink) !important; }

#navigation {
  top: 8px !important;
  left: 0 !important;
  right: 0 !important;
  height: 52px !important;
  padding: 0 8px !important;
  box-sizing: border-box !important;
}
#nav-container {
  width: min(94vw, 1500px) !important;
  margin: 0 auto !important;
  min-height: 52px !important;
  border: 1px solid #e1eaf5 !important;
  border-radius: 28px !important;
  background: rgba(255,255,255,.96) !important;
  box-shadow: 0 10px 28px rgba(30, 64, 110, .10) !important;
  padding: 0 10px !important;
}
#nav-list > li > a, #nav-list > li > span { border-radius: 22px !important; }
#nav-list > li > a:hover, #nav-list > li > a.active {
  background: #fff0ed !important;
  color: #ef5739 !important;
}
#nav-list > li > a.active span.nav-icon-container,
#nav-list > li > a:hover span.nav-icon-container { color: #ef5739 !important; }

#page-container { border: 0 !important; background: transparent !important; }
#content {
  width: min(94vw, 1500px) !important;
  margin-top: 76px !important;
  padding-bottom: 2rem !important;
}
#content.wrapper {
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.page-title, .tabs {
  border: 1px solid var(--clbth-line) !important;
  border-radius: var(--clbth-radius) !important;
  background: linear-gradient(135deg, #f6f9ff, #eaf2ff) !important;
  box-shadow: 0 8px 22px rgba(37, 78, 130, .06) !important;
}
.page-title { margin-bottom: 16px !important; }
.tabs { min-height: 58px !important; padding: 8px !important; }
.tabs h2 { display: none !important; }
.tabs ul { display: flex !important; flex-wrap: wrap !important; gap: 4px !important; }
.tabs li, .tabs li a, .tabs li span {
  border-radius: 12px !important;
  color: #465d80 !important;
  font-weight: 700 !important;
}
.tabs li a, .tabs li span { padding: 11px 18px !important; }
.tabs li.active a, .tabs li.active span {
  color: #fff !important;
  background: linear-gradient(135deg, #1d5bd5, #1248b4) !important;
  box-shadow: 0 7px 16px rgba(21,84,199,.22) !important;
}

#content-body .box, #content-body .panel, #content-body .card,
.content-description, .problem-list, .submission-list, .sidebar,
.sidebox, .user-list, .contest-list {
  border: 1px solid var(--clbth-line) !important;
  border-radius: var(--clbth-radius) !important;
  background: var(--clbth-surface) !important;
  box-shadow: 0 9px 24px rgba(35, 72, 119, .07) !important;
}

table { border-color: var(--clbth-line) !important; overflow: hidden; }
table thead th, table th {
  background: #e9f2ff !important;
  color: #36567d !important;
  font-weight: 800 !important;
  border-color: var(--clbth-line) !important;
}
table tbody tr:nth-child(even) { background: #f7faff !important; }
table tbody tr:hover { background: #eef5ff !important; }
table td { border-color: #e5edf7 !important; }
a { color: var(--clbth-link); }
input, select, textarea { border-radius: 10px !important; border-color: #c9dbee !important; }
button, .button, input[type=submit] { border-radius: 10px !important; }

@media (max-width: 800px) {
  #navigation { top: 4px !important; }
  #nav-container { width: calc(100vw - 12px) !important; }
  #content { width: calc(100vw - 20px) !important; margin-top: 68px !important; }
  .tabs li a, .tabs li span { padding: 9px 12px !important; }
}

    @media (max-width: 480px) {
      #content {
        width: 98vw !important;
        margin-top: 76px !important;
        margin-bottom: 16px !important;
      }

      #content.wrapper {
        padding: 0.65rem !important;
        border-radius: 10px !important;
      }

      .att-hero-header {
        padding: 0.85rem 0.95rem;
      }

      .att-hero-title {
        font-size: 1.18rem !important;
      }

      .att-filter-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
      }

      .att-filter-card {
        padding: 0.5rem 0.7rem;
      }

      .att-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.45rem;
      }

      .att-stat-card {
        padding: 0.65rem 0.75rem;
        gap: 0.5rem;
      }

      .att-stat-icon {
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
        border-radius: 8px;
      }

      .att-stat-val {
        font-size: 1.15rem;
      }

      .att-stat-label {
        font-size: 0.7rem;
      }

      .att-tab-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
      }
    }


/* --- Extracted from materials.html --- */
#content {
      width: min(95vw, 1440px) !important;
      max-width: 1440px !important;
      margin-top: 86px !important;
      margin-bottom: 60px !important;
      margin-left: auto !important;
      margin-right: auto !important;
      padding-top: 0 !important;
      box-sizing: border-box !important;
    }

    .doc-page,
    .doc-hero,
    .doc-hero-title,
    .doc-hero-desc,
    .doc-section-heading,
    .doc-folder-title,
    .doc-card-title,
    .doc-card-desc,
    .btn-doc {
      font-family: "Inter", "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif !important;
      letter-spacing: normal !important;
      word-spacing: normal !important;
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    .doc-page {
      width: 100%;
      color: #0f172a;
    }

    .doc-hero {
      border: 1px solid #dce8f6;
      border-radius: 20px;
      background: linear-gradient(135deg, #ffffff 0%, #f6faff 50%, #edf6ff 100%);
      box-shadow: 0 12px 30px rgba(12, 35, 64, 0.05);
      padding: clamp(1.2rem, 2vw, 1.8rem);
      margin-bottom: 1.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1.2rem;
    }

    .doc-hero-left {
      flex: 1;
      min-width: 260px;
    }

    .doc-hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.3rem 0.8rem;
      border-radius: 999px;
      background: #eff6ff;
      border: 1px solid #bfdcfa;
      color: #1854d6;
      font-size: 0.8rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.04em !important;
      margin-bottom: 0.45rem;
    }

    .doc-hero-title {
      margin: 0;
      font-size: clamp(1.35rem, 2.2vw, 1.7rem);
      color: #0f172a;
      font-weight: 700 !important;
      letter-spacing: -0.01em !important;
      line-height: 1.35;
      display: flex;
      align-items: center;
      gap: 0.65rem;
    }

    .doc-hero-title i {
      color: #1854d6;
    }

    .doc-hero-desc {
      margin: 0.35rem 0 0;
      color: #475569;
      font-size: 0.92rem;
      line-height: 1.5;
      font-weight: 500;
    }

    .doc-hero-actions {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex-wrap: wrap;
    }

    .btn-doc {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.45rem;
      height: 40px;
      padding: 0 1.15rem;
      border-radius: 11px;
      font-size: 0.88rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.18s ease;
      border: 1px solid transparent;
      text-decoration: none !important;
      outline: none;
      box-sizing: border-box !important;
      white-space: nowrap;
    }

    .btn-doc-primary {
      background: linear-gradient(135deg, #1854d6 0%, #2563eb 100%);
      color: #ffffff !important;
      box-shadow: 0 4px 14px rgba(24, 84, 214, 0.25);
      border: none;
    }

    .btn-doc-primary:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 18px rgba(24, 84, 214, 0.35);
      color: #ffffff !important;
    }

    .btn-doc-secondary {
      background: #ffffff;
      color: #1854d6 !important;
      border: 1px solid #bfdcfa;
      box-shadow: 0 2px 6px rgba(12, 35, 64, 0.03);
    }

    .btn-doc-secondary:hover {
      background: #eff6ff;
      border-color: #93c5fd;
      transform: translateY(-2px);
    }

    .doc-toolbar {
      background: #ffffff;
      border: 1px solid #dce8f6;
      border-radius: 20px;
      padding: 1rem 1.25rem;
      margin-bottom: 1.5rem;
      box-shadow: 0 4px 20px rgba(12, 35, 64, 0.04);
      display: flex;
      flex-direction: column;
      gap: 0.85rem;
    }

    .doc-toolbar-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 0.85rem;
    }

    .doc-breadcrumbs {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      flex-wrap: wrap;
      font-size: 0.92rem;
      font-weight: 700;
      color: #64748b;
    }

    .doc-crumb {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      color: #026599;
      text-decoration: none !important;
      padding: 0.35rem 0.75rem;
      border-radius: 9px;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      transition: all 0.15s ease;
      font-weight: 700;
    }

    .doc-crumb:hover {
      background: #eff6ff;
      border-color: #bfdcfa;
      color: #025580;
    }

    .doc-crumb.active {
      color: #0f172a;
      background: #f1f5f9;
      border-color: transparent;
      pointer-events: none;
    }

    .doc-crumb-sep {
      color: #94a3b8;
      font-size: 0.75rem;
    }

    .doc-toolbar-right {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      flex-wrap: wrap;
    }

    .doc-select {
      height: 40px;
      padding: 0 2.2rem 0 0.95rem;
      border-radius: 11px;
      border: 1px solid #cbd5e1;
      background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23026599'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") no-repeat right 0.7rem center;
      background-size: 0.85rem;
      font-size: 0.88rem;
      font-weight: 700;
      color: #1e293b;
      outline: none;
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      box-sizing: border-box;
      transition: all 0.18s ease;
    }

    .doc-select:hover {
      border-color: #026599;
      background-color: #f8fafc;
    }

    .doc-select:focus {
      border-color: #026599;
      box-shadow: 0 0 0 3px rgba(2, 101, 153, 0.12);
    }

    .doc-view-switch {
      height: 40px;
      display: inline-flex;
      align-items: center;
      border: 1px solid #cbd5e1;
      border-radius: 11px;
      background: #f1f5f9;
      padding: 3px;
      gap: 3px;
      box-sizing: border-box;
    }

    .doc-view-btn {
      height: 32px;
      min-width: 36px;
      padding: 0 0.75rem;
      border: none;
      border-radius: 8px;
      background: transparent;
      color: #475569 !important;
      font-size: 0.95rem;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: all 0.18s ease;
      outline: none;
    }

    .doc-view-btn i {
      color: inherit !important;
    }

    .doc-view-btn:hover:not(.active) {
      background: #e2e8f0;
      color: #0f172a !important;
    }

    .doc-view-btn.active {
      background: #026599 !important;
      color: #ffffff !important;
      box-shadow: 0 2px 8px rgba(2, 101, 153, 0.28);
    }

    .doc-view-btn.active i {
      color: #ffffff !important;
    }

    .doc-toolbar-bottom {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 0.85rem;
      padding-top: 0.85rem;
      border-top: 1px solid #f1f5f9;
    }

    .doc-search-box {
      position: relative;
      flex: 1;
      min-width: 260px;
      max-width: 400px;
    }

    .doc-search-input {
      width: 100%;
      height: 40px;
      box-sizing: border-box;
      padding: 0 0.9rem 0 2.4rem;
      border-radius: 11px;
      border: 1px solid #cbd5e1;
      background: #ffffff;
      font-size: 0.88rem;
      font-weight: 600;
      color: #0f172a;
      outline: none;
      transition: all 0.2s ease;
    }

    .doc-search-input:focus {
      background: #ffffff;
      border-color: #026599;
      box-shadow: 0 0 0 3px rgba(2, 101, 153, 0.12);
    }

    .doc-search-icon {
      position: absolute;
      left: 0.85rem;
      top: 50%;
      transform: translateY(-50%);
      color: #026599;
      font-size: 0.92rem;
      pointer-events: none;
    }

    .doc-type-pills {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      overflow-x: auto;
      scrollbar-width: none;
      padding: 2px 0;
    }

    .doc-type-pills::-webkit-scrollbar {
      display: none;
    }

    .doc-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      height: 36px;
      padding: 0 0.85rem;
      border-radius: 999px;
      font-size: 0.82rem;
      font-weight: 700;
      color: #334155 !important;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      text-decoration: none !important;
      white-space: nowrap;
      transition: all 0.15s ease;
      box-sizing: border-box;
    }

    .doc-pill:hover {
      background: #eff6ff;
      border-color: #bfdcfa;
      color: #026599 !important;
    }

    .doc-pill.active {
      background: #026599 !important;
      color: #ffffff !important;
      border-color: #026599 !important;
      box-shadow: 0 2px 8px rgba(2, 101, 153, 0.25);
    }

    .doc-pill-badge {
      padding: 0.1rem 0.45rem;
      border-radius: 999px;
      font-size: 0.72rem;
      font-weight: 800;
      background: #e2e8f0;
      color: #475569;
    }

    .doc-pill.active .doc-pill-badge {
      background: rgba(255, 255, 255, 0.28);
      color: #ffffff;
    }

    .doc-pill-badge {
      padding: 0.05rem 0.4rem;
      border-radius: 999px;
      font-size: 0.7rem;
      background: rgba(0, 0, 0, 0.08);
    }

    .doc-pill.active .doc-pill-badge {
      background: rgba(255, 255, 255, 0.25);
      color: #ffffff;
    }

    .doc-section-heading {
      font-size: 1.05rem;
      font-weight: 800;
      color: #1e293b;
      margin: 1.25rem 0 0.75rem;
      display: flex;
      align-items: center;
      gap: 0.45rem;
    }

    .doc-section-heading i {
      color: #026599;
    }

    .doc-folders-wrap {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 0.9rem;
      margin-bottom: 1.25rem;
    }

    .doc-folder-item {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 16px;
      padding: 0.95rem 1.1rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      box-shadow: 0 2px 8px rgba(12, 35, 64, 0.02);
      transition: all 0.18s ease;
      cursor: pointer;
      position: relative;
    }

    .doc-folder-item:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 18px rgba(12, 35, 64, 0.06);
      border-color: #bfdcfa;
    }

    .doc-folder-left {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      min-width: 0;
      flex: 1;
    }

    .doc-folder-icon {
      width: 40px;
      height: 40px;
      border-radius: 11px;
      background: #eff6ff;
      color: #026599;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      flex-shrink: 0;
    }

    .doc-folder-info {
      min-width: 0;
      flex: 1;
    }

    .doc-folder-title {
      font-size: 0.94rem;
      font-weight: 800;
      color: #0f172a;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin: 0;
    }

    .doc-folder-count {
      font-size: 0.78rem;
      font-weight: 600;
      color: #64748b;
      margin-top: 0.15rem;
    }

    .doc-menu-btn {
      width: 32px;
      height: 32px;
      border-radius: 9px;
      border: 1px solid #dce8f6;
      background: #ffffff;
      color: #334155 !important;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.15s ease;
      font-size: 0.95rem;
      flex-shrink: 0;
      box-shadow: 0 1px 4px rgba(12, 35, 64, 0.04);
      outline: none;
    }

    .doc-menu-btn i {
      color: #334155 !important;
      font-size: 1rem;
    }

    .doc-menu-btn:hover {
      background: #eff6ff;
      border-color: #bfdcfa;
      color: #026599 !important;
    }

    .doc-menu-btn:hover i {
      color: #026599 !important;
    }

    .doc-files-wrap {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
      gap: 1rem;
      margin-bottom: 2rem;
    }

    .doc-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 18px;
      padding: 1.15rem;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 0.85rem;
      box-shadow: 0 2px 10px rgba(12, 35, 64, 0.03);
      transition: all 0.18s ease;
      position: relative;
    }

    .doc-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 22px rgba(12, 35, 64, 0.07);
      border-color: #cbd5e1;
    }

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

    .doc-file-icon {
      width: 44px;
      height: 44px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.45rem;
      flex-shrink: 0;
    }

    .doc-card-title {
      font-size: 0.98rem;
      font-weight: 800;
      color: #0f172a;
      line-height: 1.35;
      margin: 0.35rem 0 0;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      cursor: pointer;
      transition: color 0.15s ease;
    }

    .doc-card-title:hover {
      color: #026599;
    }

    .doc-card-desc {
      font-size: 0.8rem;
      color: #64748b;
      line-height: 1.4;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      margin-top: 0.2rem;
    }

    .doc-card-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.78rem;
      font-weight: 600;
      color: #64748b;
      padding-top: 0.65rem;
      border-top: 1px solid #f1f5f9;
    }

    .doc-card-actions {
      display: flex;
      align-items: center;
      gap: 0.45rem;
      margin-top: 0.2rem;
    }

    .btn-card-action {
      flex: 1;
      padding: 0.48rem 0.75rem;
      border-radius: 10px;
      font-size: 0.82rem;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.35rem;
      cursor: pointer;
      transition: all 0.15s ease;
      border: 1px solid #e2e8f0;
      background: #f8fafc;
      color: #334155 !important;
      text-decoration: none !important;
    }

    .btn-card-action:hover {
      background: #eff6ff;
      border-color: #bfdcfa;
      color: #026599 !important;
    }

    .btn-card-preview {
      background: #026599;
      color: #ffffff !important;
      border: none;
    }

    .btn-card-preview:hover {
      background: #025580;
      color: #ffffff !important;
    }

    .doc-table-wrap {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 18px;
      overflow: hidden;
      box-shadow: 0 4px 16px rgba(12, 35, 64, 0.03);
      margin-bottom: 2rem;
    }

    .doc-table {
      width: 100%;
      border-collapse: collapse;
      text-align: left;
      font-size: 0.88rem;
    }

    .doc-table th {
      background: #f8fafc;
      padding: 0.75rem 1rem;
      font-weight: 800;
      color: #475569;
      border-bottom: 1px solid #e2e8f0;
      font-size: 0.76rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .doc-table td {
      padding: 0.85rem 1rem;
      border-bottom: 1px solid #f1f5f9;
      vertical-align: middle;
    }

    .doc-table tr:hover td {
      background: #f8fbfe;
    }

    .doc-menu {
      position: absolute;
      top: 100%;
      right: 0;
      z-index: 1050;
      min-width: 175px;
      background: #ffffff !important;
      border: 1px solid #dce8f6;
      border-radius: 14px;
      box-shadow: 0 12px 30px rgba(12, 35, 64, 0.15);
      padding: 0.45rem;
      display: none;
      flex-direction: column;
      gap: 0.25rem;
      margin-top: 0.4rem;
    }

    .doc-menu.show {
      display: flex !important;
      animation: docFade 0.15s ease-out;
    }

    @keyframes docFade {
      from {
        opacity: 0;
        transform: translateY(-4px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .doc-menu-item {
      display: flex !important;
      align-items: center !important;
      gap: 0.6rem !important;
      padding: 0.55rem 0.85rem !important;
      border-radius: 9px !important;
      font-size: 0.86rem !important;
      font-weight: 700 !important;
      color: #1e293b !important;
      cursor: pointer !important;
      border: none !important;
      background: transparent !important;
      width: 100% !important;
      text-align: left !important;
      transition: all 0.15s ease !important;
      font-family: inherit !important;
      line-height: 1.4 !important;
      box-sizing: border-box !important;
      text-decoration: none !important;
      white-space: nowrap !important;
    }

    .doc-menu-item i {
      font-size: 0.95rem !important;
      color: #026599 !important;
      width: 16px;
      text-align: center;
    }

    .doc-menu-item:hover {
      background: #eff6ff !important;
      color: #026599 !important;
    }

    .doc-menu-item.danger {
      color: #dc2626 !important;
    }

    .doc-menu-item.danger i {
      color: #dc2626 !important;
    }

    .doc-menu-item.danger:hover {
      background: #fef2f2 !important;
      color: #b91c1c !important;
    }

    .doc-empty {
      background: #ffffff;
      border: 2px dashed #cbd5e1;
      border-radius: 20px;
      padding: 3.5rem 1.5rem;
      text-align: center;
      margin-bottom: 2rem;
    }

    .doc-empty-icon {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      background: #eff6ff;
      color: #026599;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1.8rem;
      margin-bottom: 0.85rem;
    }

    .doc-modal-backdrop {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(15, 23, 42, 0.75);
      backdrop-filter: blur(6px);
      z-index: 99999;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      box-sizing: border-box;
    }

    .doc-modal-backdrop.show {
      display: flex;
    }

    .doc-preview-dialog {
      background: #ffffff;
      border-radius: 20px;
      width: 100%;
      max-width: 1200px;
      height: 90vh;
      display: flex;
      flex-direction: column;
      box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
      overflow: hidden;
    }

    .doc-preview-head {
      padding: 0.85rem 1.4rem;
      border-bottom: 1px solid #e2e8f0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      background: #ffffff;
      flex-shrink: 0;
    }

    .doc-preview-content {
      flex: 1;
      background: #334155;
      overflow-y: auto !important;
      overflow-x: auto !important;
      position: relative;
      padding: 1.5rem 1rem;
      box-sizing: border-box;
      display: block !important;
      text-align: left;
    }

    .doc-paper-view {
      background: #ffffff;
      width: 100%;
      max-width: 860px;
      min-height: 100%;
      padding: 3rem 3.5rem;
      box-sizing: border-box;
      border-radius: 10px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
      font-size: 1.05rem;
      line-height: 1.75;
      color: #1e293b;
      overflow-x: auto;
      margin: 0 auto;
    }

    .doc-paper-view h1 {
      font-size: 1.8rem;
      color: #026599;
      font-weight: 800;
      margin-top: 0;
      margin-bottom: 0.8rem;
    }

    .doc-paper-view h2 {
      font-size: 1.4rem;
      color: #0f172a;
      font-weight: 800;
      margin-top: 1.2rem;
      margin-bottom: 0.6rem;
    }

    .doc-paper-view h3 {
      font-size: 1.2rem;
      color: #1e293b;
      font-weight: 700;
      margin-top: 1rem;
      margin-bottom: 0.5rem;
    }

    .doc-paper-view p {
      margin-bottom: 0.9rem;
    }

    .doc-paper-view table {
      width: 100%;
      border-collapse: collapse;
      margin: 1rem 0;
    }

    .doc-paper-view table th,
    .doc-paper-view table td {
      border: 1px solid #cbd5e1;
      padding: 0.55rem 0.85rem;
      text-align: left;
    }

    .doc-paper-view table th {
      background: #f8fafc;
      font-weight: 700;
    }

    .doc-paper-view ul,
    .doc-paper-view ol {
      padding-left: 1.5rem;
      margin-bottom: 1rem;
    }

    .doc-paper-view li {
      margin-bottom: 0.35rem;
    }

    .docx-wrapper {
      background: transparent !important;
      padding: 0 !important;
      width: 100% !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
    }

    .docx-wrapper>section.docx {
      background: #ffffff !important;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
      border-radius: 4px !important;
      margin-bottom: 2rem !important;
      box-sizing: border-box !important;
      max-width: 100% !important;
    }

    .doc-form-dialog {
      background: #ffffff !important;
      border-radius: 20px;
      width: 100%;
      max-width: 520px;
      box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      box-sizing: border-box;
      animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes modalFadeIn {
      0% {
        transform: scale(0.95);
        opacity: 0;
      }

      100% {
        transform: scale(1);
        opacity: 1;
      }
    }

    .doc-form-head {
      padding: 1.15rem 1.4rem;
      border-bottom: 1px solid #f1f5f9;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-weight: 800;
      font-size: 1.1rem;
      color: #0f172a;
      background: #ffffff;
    }

    .doc-form-head-left {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      color: #026599;
    }

    .doc-form-close {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      border: none;
      background: #f1f5f9;
      color: #64748b;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.15s ease;
      outline: none;
    }

    .doc-form-close:hover {
      background: #e2e8f0;
      color: #0f172a;
    }

    .doc-form-body {
      padding: 1.35rem 1.4rem;
      background: #ffffff;
      max-height: 75vh;
      overflow-y: auto;
      box-sizing: border-box;
    }

    .doc-form-footer {
      padding: 1rem 1.4rem;
      background: #f8fafc;
      border-top: 1px solid #f1f5f9;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 0.75rem;
    }

    .doc-input-group {
      margin-bottom: 1.1rem;
    }

    .doc-label {
      display: block;
      font-size: 0.85rem;
      font-weight: 700;
      color: #334155;
      margin-bottom: 0.4rem;
    }

    .doc-input,
    .doc-textarea,
    .doc-dropdown-select {
      width: 100%;
      box-sizing: border-box;
      padding: 0.65rem 0.9rem;
      border-radius: 11px;
      border: 1px solid #cbd5e1;
      background: #f8fafc;
      font-size: 0.9rem;
      font-weight: 600;
      color: #0f172a;
      outline: none;
      font-family: inherit;
      transition: all 0.2s ease;
    }

    .doc-input:focus,
    .doc-textarea:focus,
    .doc-dropdown-select:focus {
      background: #ffffff;
      border-color: #026599;
      box-shadow: 0 0 0 3px rgba(2, 101, 153, 0.12);
    }

    .doc-drop-area {
      border: 2px dashed #94a3b8;
      border-radius: 14px;
      padding: 1.8rem 1rem;
      text-align: center;
      background: #f8fafc;
      cursor: pointer;
      transition: all 0.2s ease;
      margin-bottom: 1.1rem;
    }

    .doc-drop-area:hover,
    .doc-drop-area.dragover {
      border-color: #026599;
      background: #eff6ff;
    }

    .doc-drop-icon {
      font-size: 2.4rem;
      color: #026599;
      margin-bottom: 0.5rem;
    }

    .doc-drop-title {
      font-size: 0.95rem;
      font-weight: 700;
      color: #0f172a;
      margin-bottom: 0.2rem;
    }

    .doc-drop-sub {
      font-size: 0.8rem;
      color: #64748b;
    }

    .doc-toast {
      position: fixed;
      bottom: 24px;
      right: 24px;
      z-index: 999999;
      background: #0f172a;
      color: #ffffff;
      padding: 0.8rem 1.3rem;
      border-radius: 12px;
      font-size: 0.88rem;
      font-weight: 700;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
      display: none;
      align-items: center;
      gap: 0.5rem;
    }

    .doc-toast.success {
      background: #065f46;
      border: 1px solid #34d399;
    }

    .doc-toast.error {
      background: #991b1b;
      border: 1px solid #f87171;
    }

    /* PPTX In-Browser Viewer Styles */
    .pptx-viewer {
      width: 100% !important;
      height: 100% !important;
      min-height: 520px;
      user-select: none;
      border-radius: 0 0 16px 16px;
      background: #0f172a !important;
    }
    .pptx-slide-container {
      padding: 16px !important;
      background: #0f172a !important;
    }
    .pptx-slide-container svg {
      border-radius: 8px;
      box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45) !important;
      max-width: 100% !important;
      max-height: 100% !important;
    }
    .pptx-controls {
      background: rgba(15, 23, 42, 0.9) !important;
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255, 255, 255, 0.15) !important;
      border-radius: 12px !important;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
      padding: 8px 18px !important;
      margin-bottom: 16px !important;
      z-index: 10;
    }
    .pptx-controls button {
      background: #334155 !important;
      color: #f8fafc !important;
      border-radius: 8px !important;
      font-weight: 600 !important;
      transition: all 0.2s ease !important;
      border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    .pptx-controls button:hover:not(:disabled) {
      background: #0284c7 !important;
      transform: translateY(-1px);
    }
    .pptx-controls .pptx-counter {
      font-weight: 700 !important;
      color: #f8fafc !important;
      font-size: 0.92rem !important;
      letter-spacing: 0.5px;
    }


/* --- Extracted from teaching.html --- */
#content {
      width: min(95vw, 1440px) !important;
      max-width: 1440px !important;
      margin-top: 86px !important;
      margin-bottom: 60px !important;
      margin-left: auto !important;
      margin-right: auto !important;
      padding-top: 0 !important;
      box-sizing: border-box !important;
    }

    .teach-page,
    .teach-card,
    .teach-card-title,
    .teach-btn,
    .teach-modal {
      font-family: "Inter", "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
      letter-spacing: normal !important;
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
    }

    .teach-page {
      width: 100%;
      color: #0f172a;
    }

    .teach-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.45rem;
      padding: 0.55rem 1.15rem;
      border-radius: 10px;
      font-size: 0.86rem;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.18s ease;
      border: 1px solid transparent;
      text-decoration: none !important;
      outline: none;
      box-sizing: border-box !important;
      white-space: nowrap;
    }

    .teach-btn-primary {
      background: linear-gradient(135deg, #026599 0%, #0384c7 100%);
      color: #ffffff !important;
      box-shadow: 0 2px 8px rgba(2, 101, 153, 0.2);
      border: none;
    }

    .teach-btn-primary:hover {
      background: linear-gradient(135deg, #025682 0%, #0275b0 100%);
      transform: translateY(-1px);
      box-shadow: 0 4px 14px rgba(2, 101, 153, 0.3);
      color: #ffffff !important;
    }

    .teach-btn-start {
      background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
      color: #ffffff !important;
      font-size: 0.88rem;
      padding: 0 1.25rem;
      box-shadow: 0 3px 10px rgba(22, 163, 74, 0.25);
      border: none;
    }

    .teach-btn-start:hover {
      background: linear-gradient(135deg, #15803d 0%, #166534 100%);
      transform: translateY(-1px);
      box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35);
      color: #ffffff !important;
    }

    .teach-btn-secondary {
      background: #ffffff;
      color: #026599 !important;
      border: 1px solid #bfdcfa;
      box-shadow: 0 2px 6px rgba(2, 101, 153, 0.06);
    }

    .teach-btn-secondary:hover {
      background: #eff6ff;
      border-color: #026599;
      transform: translateY(-1px);
    }

    .teach-join-box {
      background: #ffffff;
      border: 1px solid #dce8f6;
      border-radius: 18px;
      padding: 1.15rem 1.4rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      margin-bottom: 1.8rem;
      flex-wrap: wrap;
      box-shadow: 0 4px 16px rgba(12, 35, 64, 0.04);
    }

    .teach-section-title {
      font-size: 1.15rem;
      font-weight: 800;
      color: #0f172a;
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 0.55rem;
    }

    .teach-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 1.25rem;
      margin-bottom: 2.2rem;
    }

    .teach-card {
      background: #ffffff;
      border: 1px solid #dce8f6;
      border-radius: 16px;
      padding: 1.2rem 1.25rem;
      box-shadow: 0 4px 14px rgba(12, 35, 64, 0.04);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 0.9rem;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
      box-sizing: border-box !important;
    }

    .teach-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 24px rgba(12, 35, 64, 0.08);
      border-color: #bfdcfa;
    }

    .teach-card-live {
      border: 1px solid #bbf7d0;
      background: #ffffff;
      position: relative;
    }

    .teach-card-live:hover {
      border-color: #86efac;
      box-shadow: 0 10px 24px rgba(16, 185, 129, 0.09);
    }

    .teach-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
      margin-bottom: 0.65rem;
      padding-bottom: 0.55rem;
      border-bottom: 1px solid #f1f5f9;
    }

    .teach-badge-live {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.22rem 0.65rem;
      border-radius: 999px;
      background: #f0fdf4;
      border: 1px solid #bbf7d0;
      color: #166534;
      font-size: 0.76rem;
      font-weight: 700;
    }

    .teach-badge-past {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.2rem 0.6rem;
      border-radius: 999px;
      background: #f1f5f9;
      border: 1px solid #e2e8f0;
      color: #64748b;
      font-size: 0.74rem;
      font-weight: 700;
    }

    .teach-pulse-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #16a34a;
      box-shadow: 0 0 6px rgba(22, 163, 74, 0.6);
      animation: pulse 1.5s infinite;
    }

    @keyframes pulse {
      0% {
        transform: scale(0.95);
        opacity: 0.8;
      }

      50% {
        transform: scale(1.25);
        opacity: 1;
      }

      100% {
        transform: scale(0.95);
        opacity: 0.8;
      }
    }

    .teach-room-tag {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      padding: 0.18rem 0.55rem;
      border-radius: 6px;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      color: #475569;
      font-family: "Fira Code", monospace;
      font-size: 0.78rem;
      font-weight: 700;
    }

    .teach-card-title {
      font-size: 1.05rem;
      font-weight: 800;
      color: #0f172a;
      line-height: 1.45;
      margin: 0.4rem 0 0.5rem;
    }

    .teach-card-meta {
      font-size: 0.85rem;
      color: #64748b;
      display: flex;
      flex-direction: column;
      gap: 0.35rem;
    }

    .teach-meta-item {
      display: flex;
      align-items: center;
      gap: 0.45rem;
    }

    .teach-meta-item strong {
      color: #026599;
    }

    .teach-modal-backdrop {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(15, 23, 42, 0.65);
      backdrop-filter: blur(4px);
      z-index: 99999;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .teach-modal {
      background: #ffffff;
      border-radius: 20px;
      width: 90%;
      max-width: 520px;
      padding: 1.75rem;
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
      animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .teach-modal-close-btn {
      width: 32px !important;
      height: 32px !important;
      min-width: 32px !important;
      min-height: 32px !important;
      flex: 0 0 32px !important;
      flex-shrink: 0 !important;
      border-radius: 50% !important;
      padding: 0 !important;
      margin: 0 !important;
      box-sizing: border-box !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      background: #f1f5f9 !important;
      border: 1px solid #cbd5e1 !important;
      color: #475569 !important;
      cursor: pointer !important;
      line-height: 1 !important;
      outline: none !important;
      transition: all 0.15s ease !important;
    }

    .teach-modal-close-btn:hover {
      background: #fee2e2 !important;
      border-color: #fca5a5 !important;
      color: #ef4444 !important;
    }

    .teach-modal-close-btn i {
      font-size: 13px !important;
      line-height: 1 !important;
      display: block !important;
    }

    @keyframes modalPop {
      from {
        transform: scale(0.95);
        opacity: 0;
      }

      to {
        transform: scale(1);
        opacity: 1;
      }
    }

    .teach-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 1.25rem;
    }

    .teach-modal-title {
      font-size: 1.25rem;
      font-weight: 800;
      color: #0f172a;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .teach-form-group {
      margin-bottom: 1rem;
    }

    .teach-label {
      display: block;
      font-size: 0.88rem;
      font-weight: 700;
      color: #334155;
      margin-bottom: 0.4rem;
    }

    .teach-input,
    .teach-select,
    .teach-textarea {
      width: 100%;
      padding: 0.65rem 0.85rem;
      border-radius: 10px;
      border: 1px solid #cbd5e1;
      font-size: 0.92rem;
      font-family: inherit;
      outline: none;
      transition: border-color 0.15s ease;
      box-sizing: border-box !important;
    }

    .teach-input:focus,
    .teach-select:focus,
    .teach-textarea:focus {
      border-color: #026599;
      box-shadow: 0 0 0 3px rgba(2, 101, 153, 0.15);
    }


/* --- Extracted from students.html --- */
#content {
      width: min(94vw, 1480px) !important;
      max-width: 1480px !important;
      margin-top: 88px !important;
      margin-bottom: 50px !important;
      margin-left: auto !important;
      margin-right: auto !important;
      padding-top: 0 !important;
      box-sizing: border-box !important;
    }

    .students-modern-view,
    .students-header-title,
    .students-header-desc,
    .students-header-badge,
    .students-kpi-card,
    .students-filter-card,
    .students-table-card,
    .students-table,
    .btn-student {
      font-family: "Inter", "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif !important;
      letter-spacing: normal !important;
      word-spacing: normal !important;
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    .students-modern-view {
      width: 100%;
      box-sizing: border-box;
      color: #1e293b;
    }

    .students-header-card {
      border: 1px solid #dce8f6;
      border-radius: 20px;
      background: linear-gradient(135deg, #ffffff 0%, #f6faff 50%, #edf6ff 100%);
      box-shadow: 0 12px 30px rgba(12, 35, 64, 0.05);
      padding: clamp(1.2rem, 2vw, 1.8rem);
      margin-bottom: 1.5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1.2rem;
    }

    .students-header-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.3rem 0.8rem;
      border-radius: 999px;
      background: #eff6ff;
      border: 1px solid #bfdcfa;
      color: #1854d6;
      font-size: 0.8rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.04em !important;
      margin-bottom: 0.45rem;
    }

    .students-header-title {
      margin: 0;
      font-size: clamp(1.35rem, 2.2vw, 1.7rem);
      color: #0f172a;
      font-weight: 700 !important;
      letter-spacing: -0.01em !important;
      line-height: 1.35;
      display: flex;
      align-items: center;
      gap: 0.65rem;
    }

    .students-header-title i {
      color: #1854d6;
    }

    .students-header-desc {
      margin: 0.35rem 0 0;
      color: #475569;
      font-size: 0.92rem;
      line-height: 1.5;
      font-weight: 500;
    }

    .students-kpi-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1rem;
      margin-bottom: 1.5rem;
    }

    .students-kpi-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 16px;
      padding: 1.1rem 1.25rem;
      box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
      display: flex;
      align-items: center;
      gap: 1rem;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .students-kpi-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
    }

    .students-kpi-icon {
      width: 48px;
      height: 48px;
      border-radius: 14px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1.25rem;
      flex-shrink: 0;
    }

    .kpi-blue {
      background: #eff6ff;
      color: #1854d6;
      border: 1px solid #bfdbfe;
    }

    .kpi-emerald {
      background: #ecfdf5;
      color: #059669;
      border: 1px solid #a7f3d0;
    }

    .kpi-purple {
      background: #f5f3ff;
      color: #7c3aed;
      border: 1px solid #ddd6fe;
    }

    .kpi-amber {
      background: #fffbeb;
      color: #d97706;
      border: 1px solid #fde68a;
    }

    .students-kpi-info h4 {
      margin: 0;
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: #64748b;
      font-weight: 700;
    }

    .students-kpi-info .kpi-num {
      margin: 0.25rem 0 0;
      font-size: 1.55rem;
      font-weight: 800;
      color: #0f172a;
      line-height: 1;
    }

    .students-toolbar {
      background: #ffffff;
      border: 1px solid #dce8f6;
      border-radius: 16px;
      padding: 0.85rem 1rem;
      margin-bottom: 1.25rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 0.85rem;
      box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
    }

    .students-toolbar-left {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex-wrap: wrap;
      flex: 1;
    }

    .students-search-wrap {
      position: relative;
      min-width: 260px;
      max-width: 380px;
      width: 100%;
    }

    .students-search-wrap input {
      width: 100%;
      height: 40px;
      padding: 0 2.2rem 0 2.4rem;
      border: 1px solid #cbd5e1;
      border-radius: 10px;
      font-size: 0.9rem;
      font-family: inherit;
      outline: none;
      transition: border-color 0.2s, box-shadow 0.2s;
      box-sizing: border-box;
    }

    .students-search-wrap input:focus {
      border-color: #1854d6;
      box-shadow: 0 0 0 3px rgba(24, 84, 214, 0.12);
    }

    .students-search-wrap .search-icon {
      position: absolute;
      left: 0.8rem;
      top: 50%;
      transform: translateY(-50%);
      color: #94a3b8;
      font-size: 0.88rem;
      pointer-events: none;
    }

    .students-group-select {
      height: 40px;
      padding: 0 1rem;
      border: 1px solid #cbd5e1;
      border-radius: 10px;
      font-size: 0.88rem;
      font-weight: 600;
      color: #334155;
      background: #ffffff;
      outline: none;
      cursor: pointer;
      transition: border-color 0.2s;
    }

    .students-group-select:focus {
      border-color: #1854d6;
    }

    .btn-toolbar-action {
      height: 40px;
      padding: 0 1.1rem;
      border-radius: 10px;
      font-size: 0.88rem;
      font-weight: 700;
      border: none;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      transition: transform 0.15s, box-shadow 0.2s;
    }

    .btn-primary-grad {
      background: linear-gradient(135deg, #1854d6 0%, #0070f3 100%);
      color: #ffffff;
      box-shadow: 0 4px 14px rgba(24, 84, 214, 0.25);
    }

    .btn-primary-grad:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 18px rgba(24, 84, 214, 0.35);
      color: #ffffff;
    }

    .students-table-shell {
      background: #ffffff;
      border: 1px solid #dce8f6;
      border-radius: 18px;
      box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
      overflow: hidden;
    }

    .students-table-scroll {
      width: 100%;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }

    .students-table {
      width: 100%;
      border-collapse: collapse;
      text-align: left;
      font-size: 0.91rem;
      min-width: 900px;
    }

    .students-table thead {
      background: linear-gradient(140deg, #f8fbff 0%, #edf4fe 100%);
      border-bottom: 1px solid #dce8f6;
    }

    .students-table thead th {
      padding: 0.9rem 1rem;
      color: #334155;
      font-weight: 700;
      white-space: nowrap;
      font-size: 0.86rem;
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }

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

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

    .students-table tbody tr:hover {
      background: #f8fbff;
    }

    .students-table tbody td {
      padding: 0.85rem 1rem;
      vertical-align: middle;
      color: #1e293b;
    }

    .student-user-cell {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .student-avatar {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      border: 2px solid #e2e8f0;
      object-fit: cover;
      flex-shrink: 0;
    }

    .student-handle {
      font-weight: 700;
      color: #1854d6;
      text-decoration: none;
      display: inline-block;
    }

    .student-handle:hover {
      text-decoration: underline;
    }

    .student-fullname {
      font-size: 0.82rem;
      color: #64748b;
      margin-top: 2px;
    }

    .student-group-tag {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.25rem 0.65rem;
      border-radius: 8px;
      background: #f1f5f9;
      border: 1px solid #cbd5e1;
      font-size: 0.82rem;
      font-weight: 700;
      color: #334155;
      margin: 2px 2px;
      vertical-align: middle;
    }

    .student-group-tag i {
      color: #1854d6;
    }

    .student-group-tag.tag-leader {
      background: #fffbeb;
      border-color: #fde68a;
      color: #92400e;
    }

    .student-group-tag.tag-leader i {
      color: #d97706;
    }

    .student-group-tag.tag-vice {
      background: #eff6ff;
      border-color: #bfdbfe;
      color: #1e40af;
    }

    .student-group-tag.tag-vice i {
      color: #2563eb;
    }

    .student-group-tag.tag-supporter {
      background: #ecfdf5;
      border-color: #a7f3d0;
      color: #065f46;
    }

    .student-group-tag.tag-supporter i {
      color: #059669;
    }

    .group-role-pill {
      font-size: 0.68rem;
      font-weight: 800;
      padding: 1px 5px;
      border-radius: 4px;
      letter-spacing: 0.02em;
      margin-left: 2px;
    }

    .pill-leader {
      background: #fef3c7;
      color: #b45309;
      border: 1px solid #fcd34d;
    }

    .pill-vice {
      background: #dbeafe;
      color: #1d4ed8;
      border: 1px solid #93c5fd;
    }

    .pill-supporter {
      background: #d1fae5;
      color: #047857;
      border: 1px solid #6ee7b7;
    }

    .stat-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0.22rem 0.6rem;
      border-radius: 7px;
      font-weight: 700;
      font-size: 0.86rem;
      min-width: 32px;
    }

    .stat-blue {
      background: #eff6ff;
      color: #1854d6;
      border: 1px solid #bfdbfe;
    }

    .stat-green {
      background: #ecfdf5;
      color: #059669;
      border: 1px solid #a7f3d0;
    }

    .action-btn-group {
      display: flex;
      align-items: center;
      gap: 0.45rem;
    }

    .btn-action-sm {
      height: 32px;
      padding: 0 0.75rem;
      border-radius: 8px;
      font-size: 0.82rem;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      transition: all 0.15s ease;
      text-decoration: none !important;
      outline: none;
      box-sizing: border-box;
    }

    .btn-edit-student {
      border: 1px solid #bfdbfe !important;
      color: #1d4ed8 !important;
      background: #eff6ff !important;
    }

    .btn-edit-student i {
      color: #1d4ed8 !important;
    }

    .btn-edit-student:hover {
      background: #1d4ed8 !important;
      color: #ffffff !important;
      border-color: #1d4ed8 !important;
    }

    .btn-edit-student:hover i {
      color: #ffffff !important;
    }

    .btn-pwd-student {
      border: 1px solid #fde68a !important;
      color: #b45309 !important;
      background: #fffbeb !important;
    }

    .btn-pwd-student i {
      color: #b45309 !important;
    }

    .btn-pwd-student:hover {
      background: #d97706 !important;
      color: #ffffff !important;
      border-color: #d97706 !important;
    }

    .btn-pwd-student:hover i {
      color: #ffffff !important;
    }

    .btn-pwd-disabled {
      opacity: 0.45;
      cursor: not-allowed;
      border: 1px solid #e2e8f0 !important;
      color: #94a3b8 !important;
      background: #f8fafc !important;
    }

    .btn-pwd-disabled i {
      color: #94a3b8 !important;
    }

    .empty-state-box {
      text-align: center;
      padding: 3rem 1.5rem;
      color: #64748b;
    }

    .empty-state-box i {
      font-size: 2.5rem;
      color: #cbd5e1;
      margin-bottom: 0.75rem;
    }

    .student-modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.55);
      backdrop-filter: blur(4px);
      z-index: 1100;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 1rem;
      box-sizing: border-box;
      opacity: 0;
      transition: opacity 0.2s ease;
    }

    .student-modal-backdrop.active {
      display: flex;
      opacity: 1;
    }

    .student-modal-card {
      background: #ffffff;
      border-radius: 20px;
      border: 1px solid #dce8f6;
      box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
      width: min(100%, 540px);
      max-height: 90vh;
      overflow-y: auto;
      box-sizing: border-box;
      animation: modalSlideUp 0.25s ease-out;
    }

    @keyframes modalSlideUp {
      from {
        transform: translateY(20px);
        opacity: 0;
      }

      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    .student-modal-header {
      padding: 1.25rem 1.5rem;
      border-bottom: 1px solid #f1f5f9;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .student-modal-title {
      margin: 0;
      font-size: 1.15rem;
      font-weight: 800;
      color: #0f172a;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .student-modal-close {
      width: 34px !important;
      height: 34px !important;
      border-radius: 50% !important;
      border: 1px solid #e2e8f0 !important;
      background: #f8fafc !important;
      color: #64748b !important;
      cursor: pointer !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      font-size: 1.1rem !important;
      transition: all 0.15s ease !important;
      outline: none !important;
    }

    .student-modal-close:hover {
      background: #fee2e2 !important;
      color: #dc2626 !important;
      border-color: #fecaca !important;
    }

    .student-modal-body {
      padding: 1.5rem;
    }

    .form-group-field {
      margin-bottom: 1.1rem;
    }

    .form-group-field label {
      display: block;
      font-size: 0.85rem;
      font-weight: 700;
      color: #334155;
      margin-bottom: 0.35rem;
      text-align: left !important;
    }

    .form-group-field input,
    .form-group-field select,
    .form-group-field textarea {
      width: 100% !important;
      height: 42px !important;
      padding: 0.6rem 0.9rem !important;
      border: 1px solid #cbd5e1 !important;
      border-radius: 10px !important;
      font-size: 0.92rem !important;
      font-family: inherit !important;
      box-sizing: border-box !important;
      outline: none !important;
      text-align: left !important;
      color: #0f172a !important;
      background: #ffffff !important;
      transition: border-color 0.2s, box-shadow 0.2s !important;
    }

    .form-group-field textarea {
      height: auto !important;
      min-height: 80px !important;
    }

    .form-group-field input::placeholder,
    .form-group-field textarea::placeholder {
      color: #94a3b8 !important;
      text-align: left !important;
      font-style: normal !important;
      font-size: 0.9rem !important;
    }

    .form-group-field input:focus,
    .form-group-field select:focus,
    .form-group-field textarea:focus {
      border-color: #1854d6 !important;
      box-shadow: 0 0 0 3px rgba(24, 84, 214, 0.12) !important;
    }

    .form-group-field input[readonly],
    .form-group-field input:disabled {
      background: #f8fafc !important;
      color: #64748b !important;
      cursor: not-allowed !important;
      border-color: #e2e8f0 !important;
    }

    .field-hint-locked {
      display: flex;
      align-items: center;
      gap: 0.35rem;
      font-size: 0.78rem;
      color: #64748b;
      margin-top: 0.3rem;
      text-align: left !important;
    }

    /* Giao diện phân nhóm sinh hoạt theo môn học tối ưu */
    .edit-group-box {
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      background: #f8fafc;
      padding: 0.75rem 0.85rem;
      margin-top: 0.35rem;
    }

    .edit-group-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 0.55rem;
      gap: 0.5rem;
    }

    .edit-group-title {
      font-size: 0.86rem !important;
      font-weight: 700 !important;
      color: #0f172a !important;
      margin-bottom: 2px !important;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .edit-group-subtitle {
      font-size: 0.75rem;
      color: #64748b;
    }

    .edit-group-summary-bar {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.45rem;
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 0.4rem 0.65rem;
      margin-bottom: 0.65rem;
      min-height: 36px;
    }

    .summary-caption {
      font-size: 0.75rem;
      font-weight: 600;
      color: #475569;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    .summary-chips {
      display: inline-flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      align-items: center;
    }

    .summary-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 3px 8px;
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      border-radius: 6px;
      font-size: 0.76rem;
      color: #1e40af;
      font-weight: 600;
    }

    .summary-chip .chip-subj {
      color: #2563eb;
      font-weight: 700;
    }

    .summary-chip .chip-remove {
      color: #94a3b8;
      cursor: pointer;
      font-size: 0.72rem;
      transition: color 0.15s;
    }

    .summary-chip .chip-remove:hover {
      color: #ef4444;
    }

    .empty-chips-text {
      font-size: 0.75rem;
      color: #94a3b8;
      font-style: italic;
    }

    .subject-groups-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 10px;
      overflow: hidden;
      max-height: 220px;
      overflow-y: auto;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    }

    .subject-group-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.5rem 0.75rem;
      border-bottom: 1px solid #f1f5f9;
      gap: 0.75rem;
      transition: all 0.15s ease;
    }

    .subject-group-row:last-child {
      border-bottom: none;
    }

    .subject-group-row:hover {
      background: #f8fafc;
    }

    .subject-group-row.row-active {
      background: #fbfdff;
      border-left: 3px solid #1854d6;
    }

    .subject-meta {
      display: flex;
      align-items: center;
      gap: 0.55rem;
      min-width: 0;
      flex: 1;
    }

    .subject-icon-box {
      width: 28px;
      height: 28px;
      border-radius: 7px;
      background: #eff6ff;
      color: #1854d6;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.78rem;
      flex-shrink: 0;
    }

    .subject-group-row.row-active .subject-icon-box {
      background: #1854d6;
      color: #ffffff;
    }

    .subject-text-info {
      min-width: 0;
    }

    .subject-title {
      font-size: 0.83rem;
      font-weight: 600;
      color: #1e293b;
      display: flex;
      align-items: center;
      gap: 5px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .subject-code-tag {
      font-size: 0.68rem;
      font-weight: 500;
      background: #f1f5f9;
      color: #475569;
      padding: 1px 4px;
      border-radius: 4px;
    }

    .subject-hint {
      font-size: 0.7rem;
      color: #94a3b8;
    }

    .subject-select-col {
      width: 200px;
      flex-shrink: 0;
    }

    .edit-subject-select {
      width: 100%;
      height: 32px;
      border: 1.5px solid #cbd5e1;
      border-radius: 7px;
      font-size: 0.8rem;
      color: #334155;
      padding: 0 0.45rem;
      background-color: #ffffff;
      outline: none;
      cursor: pointer;
      transition: all 0.15s ease;
    }

    .edit-subject-select:focus {
      border-color: #1854d6;
      box-shadow: 0 0 0 3px rgba(24, 84, 214, 0.1);
    }

    .edit-subject-select.has-selected-group {
      border-color: #1854d6;
      background-color: #eff6ff;
      color: #1854d6;
      font-weight: 600;
    }

    .btn-clear-groups {
      background: #fff5f5 !important;
      background-color: #fff5f5 !important;
      border: 1px solid #fca5a5 !important;
      font-size: 0.76rem !important;
      color: #dc2626 !important;
      cursor: pointer !important;
      font-weight: 700 !important;
      padding: 4px 10px !important;
      min-height: unset !important;
      height: 30px !important;
      border-radius: 8px !important;
      transition: all 0.15s ease !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 5px !important;
      flex-shrink: 0 !important;
      box-shadow: none !important;
      line-height: 1 !important;
      text-decoration: none !important;
    }

    .btn-clear-groups:hover {
      background: #fee2e2 !important;
      background-color: #fee2e2 !important;
      border-color: #ef4444 !important;
      color: #b91c1c !important;
    }

    .btn-clear-groups i,
    .btn-clear-groups span {
      color: inherit !important;
      font-size: inherit !important;
    }

    .btn-clear-groups:hover i,
    .btn-clear-groups:hover span {
      color: #b91c1c !important;
    }

    .student-modal-footer {
      padding: 1rem 1.5rem;
      border-top: 1px solid #f1f5f9;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      gap: 0.65rem;
      background: #f8fafc;
      border-bottom-left-radius: 20px;
      border-bottom-right-radius: 20px;
    }

    .btn-secondary-modal {
      height: 40px !important;
      padding: 0 1.25rem !important;
      border-radius: 11px !important;
      border: 1px solid #cbd5e1 !important;
      background: #ffffff !important;
      color: #334155 !important;
      font-weight: 700 !important;
      font-size: 0.88rem !important;
      cursor: pointer !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 0.35rem !important;
      transition: all 0.15s ease !important;
      outline: none !important;
      box-sizing: border-box !important;
      text-decoration: none !important;
    }

    .btn-secondary-modal:hover {
      background: #f1f5f9 !important;
      border-color: #94a3b8 !important;
      color: #0f172a !important;
    }

    .student-modal-footer .btn-toolbar-action {
      height: 40px !important;
      padding: 0 1.3rem !important;
      border-radius: 11px !important;
      font-weight: 700 !important;
      font-size: 0.88rem !important;
      border: none !important;
      cursor: pointer !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 0.45rem !important;
      transition: all 0.15s ease !important;
      box-sizing: border-box !important;
      text-decoration: none !important;
      box-shadow: 0 4px 14px rgba(24, 84, 214, 0.25) !important;
    }

    .student-toast {
      position: fixed;
      top: 85px;
      right: 24px;
      padding: 0.85rem 1.25rem;
      border-radius: 12px;
      font-weight: 700;
      font-size: 0.9rem;
      color: #ffffff;
      background: #059669;
      box-shadow: 0 10px 25px rgba(5, 150, 105, 0.25);
      z-index: 1200;
      display: none;
      align-items: center;
      gap: 0.5rem;
      animation: toastIn 0.25s ease-out;
    }

    .student-toast.toast-error {
      background: #dc2626;
      box-shadow: 0 10px 25px rgba(220, 38, 38, 0.25);
    }

    @keyframes toastIn {
      from {
        transform: translateX(30px);
        opacity: 0;
      }

      to {
        transform: translateX(0);
        opacity: 1;
      }
    }


/* --- Extracted from status.html --- */
#content {
    width: min(95vw, 1440px) !important;
    max-width: 1440px !important;
    margin-top: 86px !important;
    margin-bottom: 60px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-top: 0 !important;
    box-sizing: border-box !important;
  }

  .status-page,
  .status-nav-tabs,
  .status-modern-table {
    font-family: "Inter", "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .status-page {
    width: 100%;
    color: #0f172a;
  }

  .status-nav-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
    width: fit-content;
    flex-wrap: wrap;
  }

  .status-tab-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .status-tab-item:hover {
    color: #1854d6;
    background: rgba(255, 255, 255, 0.7);
  }

  .status-tab-item.active {
    background: #ffffff;
    color: #1854d6;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    border: 1px solid #dce8f6;
  }

  .status-tab-item i {
    font-size: 0.92rem;
  }

  .status-card-shell {
    background: #ffffff;
    border: 1px solid #dce8f6;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    margin-bottom: 1.5rem;
  }

  .status-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table.status-modern-table,
  table#judge-versions,
  table#judge-status {
    display: table !important;
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
    margin: 0 !important;
    background: #ffffff !important;
    font-size: 0.91rem !important;
  }

  table.status-modern-table thead,
  table#judge-versions thead,
  table#judge-status thead {
    display: table-header-group !important;
    background: linear-gradient(140deg, #f8fbff 0%, #edf4fe 100%) !important;
    border-bottom: 1px solid #dce8f6 !important;
    width: 100% !important;
  }

  table.status-modern-table tbody,
  table#judge-versions tbody,
  table#judge-status tbody {
    display: table-row-group !important;
    width: 100% !important;
  }

  table.status-modern-table tr,
  table#judge-versions tr,
  table#judge-status tr {
    display: table-row !important;
    flex: none !important;
    flex-direction: unset !important;
    position: static !important;
    border-bottom: 1px solid #f1f5f9 !important;
    transition: background 0.15s ease !important;
  }

  table.status-modern-table tbody tr:last-child,
  table#judge-versions tbody tr:last-child,
  table#judge-status tbody tr:last-child {
    border-bottom: none !important;
  }

  table.status-modern-table tbody tr:hover,
  table#judge-versions tbody tr:hover,
  table#judge-status tbody tr:hover {
    background: #f8fafc !important;
  }

  table.status-modern-table th,
  table#judge-versions th,
  table#judge-status th {
    display: table-cell !important;
    flex: none !important;
    height: auto !important;
    padding: 0.9rem 1.1rem !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: #475569 !important;
    border: none !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    background: transparent !important;
  }

  table.status-modern-table td,
  table#judge-versions td,
  table#judge-status td {
    display: table-cell !important;
    flex: none !important;
    height: auto !important;
    padding: 0.95rem 1.1rem !important;
    color: #1e293b !important;
    vertical-align: middle !important;
    border: none !important;
    background: transparent !important;
  }

  .judge-name-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    color: #1854d6 !important;
    text-decoration: none !important;
    font-size: 0.95rem;
  }

  .judge-name-badge i {
    color: #026599;
    font-size: 0.95rem;
  }

  .judge-name-badge:hover {
    color: #026599 !important;
    text-decoration: underline !important;
  }

  .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
  }

  .status-pill-online {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
  }

  .status-pill-offline {
    background: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
  }

  .status-pill i {
    font-size: 0.82rem;
  }

  .badge-metric {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: #334155;
    white-space: nowrap;
  }

  .badge-metric i {
    color: #64748b;
    font-size: 0.85rem;
  }

  .ping-fast {
    color: #059669;
    font-weight: 700;
  }

  .ping-fast i {
    color: #059669;
  }

  .ping-slow {
    color: #d97706;
    font-weight: 700;
  }

  .ping-slow i {
    color: #d97706;
  }

  .runtime-pill {
    display: inline-block;
    padding: 0.18rem 0.55rem;
    border-radius: 7px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #1e293b !important;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    margin: 2px;
    transition: all 0.15s ease;
  }

  .runtime-pill:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1854d6 !important;
    transform: translateY(-1px);
  }

  .version-cell-latest {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #059669;
    font-weight: 700;
    font-size: 0.84rem;
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }

  .version-cell-outdated {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #d97706;
    font-weight: 700;
    font-size: 0.84rem;
    border-radius: 8px;
    padding: 0.35rem 0.75rem;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
  }

  .version-cell-blank {
    color: #94a3b8;
    font-weight: 600;
  }

  .empty-state-cell {
    text-align: center;
    padding: 3rem 1.5rem !important;
    color: #64748b;
  }

  .empty-state-icon {
    font-size: 2.5rem;
    color: #cbd5e1;
    margin-bottom: 0.6rem;
  }

  @media (max-width: 768px) {
    #content {
      width: 100% !important;
      padding: 0 10px !important;
    }
  }
