/* Portal PRAKERIN 2026 — Color System (Tailwind-aligned tokens)
   Source: DS-002 Color System. Colors only; layout untouched. */

:root {
  /* Brand — Primary Blue */
  --color-primary-100: #eff6ff;
  --color-primary-200: #dbeafe;
  --color-primary-300: #bfdbfe;
  --color-primary-400: #93c5fd;
  --color-primary-500: #2563eb;
  --color-primary-600: #1d4ed8;

  /* Brand — Secondary Green */
  --color-secondary-100: #ecfdf5;
  --color-secondary-200: #d1fae5;
  --color-secondary-300: #a7f3d0;
  --color-secondary-400: #6ee7b7;
  --color-secondary-500: #10b981;
  --color-secondary-600: #059669;

  /* Neutrals */
  --color-gray-900: #111827;
  --color-gray-700: #374151;
  --color-gray-500: #6b7280;
  --color-gray-300: #d1d5db;
  --color-gray-200: #e5e7eb;
  --color-gray-100: #f3f4f6;
  --color-gray-50: #f9fafb;

  /* Semantic */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;

  /* UI functional */
  --color-border: #e5e7eb;
  --color-divider: #f1f5f9;
  --color-hover: #eff6ff;
  --color-surface: #f8fafc;
  --color-focus: #2563eb;

  /* Map legacy prototype tokens → DS */
  --canvas: var(--color-gray-50);
  --paper: #ffffff;
  --side: #ffffff;
  --ink: var(--color-gray-900);
  --soft: var(--color-gray-500);
  --border: var(--color-border);
  --shade: var(--color-surface);
  --pub-ink: var(--color-gray-900);
  --pub-muted: var(--color-gray-500);
  --pub-line: var(--color-border);
  --pub-soft: var(--color-gray-50);
  --pub-card: #ffffff;
  --pub-accent: var(--color-primary-500);
}

/* Focus */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-focus) !important;
  outline-offset: 2px;
}

/* ── DS-014 Sidebar Navigation ── */
.app {
  background: var(--color-gray-50);
  gap: 0;
}
.sidebar {
  width: 264px !important;
  flex-basis: 264px !important;
  margin: 12px 0 12px 12px;
  padding: 16px 12px 14px !important;
  background: #ffffff !important;
  border: 1px solid var(--color-border) !important;
  border-right: 1px solid var(--color-border) !important;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.07), 0 1px 2px rgba(17, 24, 39, 0.04);
  z-index: 20;
}
.brand {
  margin: 2px 6px 14px !important;
  padding: 4px 4px 12px;
  border-bottom: 1px solid var(--color-divider);
}
.brand-mark {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px;
  background: var(--color-primary-500);
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}
.brand-mark svg {
  width: 24px;
  height: 24px;
}
.brand strong {
  color: var(--color-gray-900);
  font-size: 16px;
}
.brand small {
  color: var(--color-gray-500);
}

/* User info card */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 4px 14px;
  padding: 10px 11px;
  border-radius: 14px;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #dbeafe;
}
.sidebar-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-primary-500);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  flex: 0 0 38px;
}
.sidebar-user-meta {
  min-width: 0;
}
.sidebar-user-meta strong {
  display: block;
  font-size: 12px;
  color: var(--color-gray-900);
  letter-spacing: -0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
}
.sidebar-user-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-size: 10px;
  color: var(--color-gray-500);
  font-weight: 650;
}
.sidebar-user-meta span::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-secondary-500);
  box-shadow: 0 0 0 3px #d1fae5;
}
.role {
  display: none !important; /* diganti sidebar-user card */
}

.nav {
  gap: 4px !important;
  padding: 0 2px;
}
.nav-item {
  min-height: 44px !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  color: var(--color-gray-700) !important;
  font-weight: 620 !important;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.nav-item .icon {
  color: var(--color-primary-500);
}
.nav-item .icon svg {
  stroke: currentColor;
}
.nav-item:hover,
.nav-item.hovered {
  background: #eff6ff !important;
  color: var(--color-primary-600) !important;
}
.nav-item:hover .icon,
.nav-item.hovered .icon {
  color: var(--color-primary-600);
}
.nav-item.active {
  background: var(--color-primary-500) !important;
  color: #ffffff !important;
  font-weight: 750 !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}
.nav-item.active .icon,
.nav-item.active .icon svg,
.nav-item.active .chev,
.nav-item.active .chev svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}
.nav-item .chev {
  color: var(--color-gray-500);
  opacity: 0.85;
}
.nav-item[aria-expanded='true']:not(.active) {
  background: #eff6ff !important;
  color: var(--color-primary-600) !important;
}

/* Sub menu */
.nav-children {
  margin: 2px 0 6px 18px !important;
  padding: 4px 0 4px 12px;
  border-left: 2px solid #dbeafe;
  gap: 2px !important;
}
.nav-child {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 8px 12px 8px 10px !important;
  border-radius: 10px !important;
  color: var(--color-gray-700) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}
.nav-child::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #93c5fd;
  flex: 0 0 7px;
}
.nav-child:hover {
  background: #eff6ff !important;
  color: var(--color-primary-600) !important;
}
.nav-child:hover::before {
  background: var(--color-primary-500);
}
.nav-child.active {
  background: #dbeafe !important;
  color: var(--color-primary-600) !important;
  font-weight: 750 !important;
}
.nav-child.active::before {
  background: var(--color-primary-500);
  box-shadow: 0 0 0 3px #bfdbfe;
}

/* Logout */
.logout {
  margin-top: auto !important;
  margin-left: 2px;
  margin-right: 2px;
  min-height: 44px;
  border-radius: 12px !important;
  padding: 11px 12px !important;
  color: var(--color-gray-700) !important;
  border: 1px solid transparent;
  font-weight: 650 !important;
}
.logout .icon {
  color: #ef4444;
}
.logout:hover {
  background: #fef2f2 !important;
  color: #b91c1c !important;
  border-color: #fecaca;
}

/* Mobile sidebar overlay — dark sheet */
@media (max-width: 720px) {
  .sidebar {
    margin: 0 !important;
    border-radius: 0 18px 18px 0 !important;
    background: #0f172a !important;
    border: 0 !important;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.35) !important;
    color: #e2e8f0;
  }
  .brand {
    border-bottom-color: rgba(148, 163, 184, 0.2);
  }
  .brand strong,
  .brand small {
    color: #f8fafc !important;
  }
  .brand-mark {
    background: var(--color-primary-500);
  }
  .sidebar-user {
    background: rgba(37, 99, 235, 0.18);
    border-color: rgba(147, 197, 253, 0.25);
  }
  .sidebar-user-meta strong {
    color: #f8fafc;
  }
  .sidebar-user-meta span {
    color: #94a3b8;
  }
  .nav-item {
    color: #cbd5e1 !important;
  }
  .nav-item .icon {
    color: #93c5fd;
  }
  .nav-item:hover,
  .nav-item.hovered,
  .nav-item[aria-expanded='true']:not(.active) {
    background: rgba(37, 99, 235, 0.18) !important;
    color: #ffffff !important;
  }
  .nav-item.active {
    background: var(--color-primary-500) !important;
    color: #ffffff !important;
  }
  .nav-children {
    border-left-color: rgba(147, 197, 253, 0.35);
  }
  .nav-child {
    color: #cbd5e1 !important;
  }
  .nav-child:hover,
  .nav-child.active {
    background: rgba(37, 99, 235, 0.22) !important;
    color: #ffffff !important;
  }
  .logout {
    color: #fecaca !important;
  }
  .logout:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #fecaca !important;
    border-color: rgba(252, 165, 165, 0.35);
  }
}

.main {
  background: var(--color-gray-50);
  border-radius: 0;
}
.panel,
.student-workspace,
.chart-panel {
  background: #ffffff;
  border-color: var(--color-border);
}
.head h1,
.page-intro h2,
.detail-top h2 {
  color: var(--color-gray-900);
}
.head p,
.page-intro p,
.detail-top p,
.crumb,
.workspace-help {
  color: var(--color-gray-500) !important;
}
.demo-pill {
  color: var(--color-primary-600);
  background: var(--color-primary-100);
  border: 1px solid var(--color-primary-200);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.04em;
}
.demo-pill.live-pill {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.live-api-badge {
  display: none !important;
}

/* Jangan sembunyikan judul halaman di header */
body.student-view .head-titles,
body.dudi-view .head-titles {
  display: block !important;
}
body.student-view .head,
body.dudi-view .head {
  justify-content: space-between !important;
}

/* Buttons */
.action-btn {
  border-color: var(--color-gray-300);
  background: #ffffff;
  color: var(--color-gray-700);
}
.action-btn:hover {
  background: var(--color-gray-50);
  border-color: var(--color-gray-300);
}
.action-btn.primary {
  background: var(--color-primary-500);
  border-color: var(--color-primary-500);
  color: #ffffff;
}
.action-btn.primary:hover {
  background: var(--color-primary-600);
  border-color: var(--color-primary-600);
}
.dark-button,
#review-dialog {
  background: var(--color-primary-500);
  color: #ffffff;
}
.dark-button:hover,
#review-dialog:hover {
  background: var(--color-primary-600);
}
.soft-button,
#close-dialog {
  background: var(--color-gray-100);
  color: var(--color-gray-700);
}
.reset-btn {
  border-color: var(--color-gray-300);
  color: var(--color-gray-700);
}
.reset-btn:hover {
  background: var(--color-hover);
  border-color: var(--color-primary-300);
  color: var(--color-primary-600);
}

/* ── DS-015 Header ── */
.head {
  position: sticky;
  top: 0;
  z-index: 24;
  margin: 0 0 18px !important;
  padding: 0 !important;
  background: transparent;
}
.head-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.06), 0 1px 2px rgba(17, 24, 39, 0.04);
  backdrop-filter: blur(12px);
}
.head-titles {
  min-width: 0;
  flex: 0 1 auto;
}
.head-titles h1 {
  font-size: 20px !important;
  margin: 0 0 2px !important;
  color: var(--color-gray-900);
  letter-spacing: -0.04em;
}
.head-titles p {
  margin: 0 !important;
  font-size: 12px !important;
  color: var(--color-gray-500) !important;
}
.head-search {
  flex: 1 1 280px;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px 0 14px;
  border-radius: 999px;
  background: var(--color-gray-100);
  border: 1px solid transparent;
  color: var(--color-gray-500);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.head-search:focus-within {
  background: #ffffff;
  border-color: var(--color-primary-300);
  box-shadow: 0 0 0 3px var(--color-primary-100);
  color: var(--color-primary-600);
}
.head-search-ico {
  font-size: 16px;
  line-height: 1;
  opacity: 0.8;
}
.head-search input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 10px 0 !important;
  font-size: 12.5px !important;
  color: var(--color-gray-900) !important;
}
.head-search input::placeholder {
  color: #9ca3af;
}
.head-search-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 7px;
  border: 1px solid var(--color-gray-200);
  background: #ffffff;
  color: var(--color-gray-500);
  font-size: 10px;
  font-family: inherit;
  font-weight: 650;
}
.head-right {
  display: flex;
  align-items: center;
  gap: 10px !important;
  margin-left: auto;
}
.period-group > label {
  display: none;
}
.period-trigger,
.trigger.period-trigger {
  min-width: 0 !important;
  min-height: 40px !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  border: 1px solid #dbeafe !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  gap: 8px !important;
}
.period-trigger:hover,
.trigger.period-trigger:hover,
.period-trigger[aria-expanded='true'] {
  background: #dbeafe !important;
  border-color: #93c5fd !important;
}
.h-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  border: 1px solid var(--color-border) !important;
  background: #ffffff !important;
  color: var(--color-gray-700) !important;
  position: relative;
}
.h-btn:hover,
.h-btn[aria-expanded='true'] {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: var(--color-primary-600) !important;
}
.notif-dot,
#notif-dot {
  top: -3px !important;
  right: -3px !important;
  width: auto !important;
  min-width: 16px;
  height: 16px !important;
  padding: 0 4px;
  border-radius: 999px !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
  font-size: 9px !important;
  font-weight: 800;
  line-height: 12px;
  display: inline-grid;
  place-items: center;
}
.v-divider {
  height: 28px !important;
  background: var(--color-border) !important;
}
.account-trigger {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  min-height: 44px;
  padding: 4px 8px 4px 4px !important;
  border-radius: 999px !important;
  border: 1px solid var(--color-border) !important;
  background: #ffffff !important;
}
.account-trigger:hover,
.account-trigger[aria-expanded='true'] {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
}
.avatar,
.account-trigger .avatar {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: var(--color-primary-500) !important;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 750;
  display: grid !important;
  place-items: center;
}
.account-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}
.account-name {
  font-size: 12px !important;
  font-weight: 750 !important;
  color: var(--color-gray-900) !important;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-role {
  font-size: 10px;
  font-weight: 600;
  color: var(--color-gray-500);
  line-height: 1.2;
}
.account-trigger .dropchev {
  color: var(--color-gray-500);
}
.mobile-menu {
  border: 1px solid var(--color-border) !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  color: var(--color-primary-600) !important;
}
.popover {
  border: 1px solid #dbeafe !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.12), 0 2px 6px rgba(17, 24, 39, 0.06) !important;
  padding: 8px !important;
}
.popover strong {
  color: var(--color-gray-900);
}
.popover button:hover,
.popover button.selected {
  background: #eff6ff !important;
  color: var(--color-primary-600) !important;
}
#account-popover [data-account='Keluar'] {
  color: #b91c1c !important;
}
#account-popover [data-account='Keluar']:hover {
  background: #fef2f2 !important;
  color: #991b1b !important;
}
.notification i {
  background: var(--color-primary-500) !important;
}
.notification:nth-child(2) i {
  background: var(--color-secondary-500) !important;
}

@media (max-width: 1100px) {
  .head-search {
    max-width: 280px;
  }
  .account-role {
    display: none;
  }
}
@media (max-width: 900px) {
  .head-bar {
    flex-wrap: wrap;
    min-height: 0;
    padding: 10px 12px 12px;
  }
  .head-search {
    order: 5;
    flex: 1 1 100%;
    max-width: none;
    margin: 0;
  }
  .head-search-kbd {
    display: none;
  }
  .period-group {
    display: none;
  }
}
@media (max-width: 720px) {
  .head {
    margin: 0 0 12px !important;
  }
  .head-bar {
    border-radius: 14px;
    gap: 8px;
  }
  .account-meta {
    display: none;
  }
  .account-trigger {
    padding: 3px !important;
    border-radius: 12px !important;
  }
}

/* Stats */
.student-stat,
.panel.student-stat {
  border-color: var(--color-border);
  background: #ffffff;
}
.stat-icon {
  background: var(--color-primary-100);
  color: var(--color-primary-600);
}
.stat-caption {
  color: var(--color-gray-500);
}
.stat-value {
  color: var(--color-gray-900);
}

/* ── DS-010 Table Style ── */
.student-workspace,
.dudi-workspace,
.panel.student-workspace,
.placement-table-wrap,
.dudi-table-wrap,
.students-table-wrap,
.pub-table-wrap,
.issues-panel {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 8px 24px rgba(37, 99, 235, 0.04);
  overflow: hidden;
}
.students-table-wrap,
.dudi-table-wrap,
.placement-table-wrap {
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.students-table,
.teacher-table,
.dudi-table,
.placement-table,
.issue-table,
.pub-table,
.monitor-table,
.report-table,
.recap-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}

.students-table thead,
.teacher-table thead,
.dudi-table thead,
.placement-table thead,
.issue-table thead,
.pub-table thead,
.monitor-table thead,
.report-table thead,
.recap-table thead,
.placement-table thead {
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
}

.students-table th,
.teacher-table th,
.dudi-table th,
.placement-table th,
.issue-table th,
.pub-table th,
.monitor-table th,
.report-table th,
.recap-table th {
  text-align: left;
  background: transparent !important;
  color: #1e3a8a !important;
  font-size: 11px !important;
  font-weight: 780 !important;
  letter-spacing: 0.01em;
  white-space: nowrap;
  padding: 13px 12px !important;
  border-bottom: 1px solid #dbeafe !important;
}

.students-table td,
.teacher-table td,
.dudi-table td,
.placement-table td,
.issue-table td,
.pub-table td,
.monitor-table td,
.report-table td,
.recap-table td {
  padding: 12px !important;
  vertical-align: middle;
  line-height: 1.45;
  color: var(--color-gray-700);
  border-bottom: 1px solid #eef2f7 !important;
  background: #ffffff;
}

.students-table tbody tr:last-child td,
.teacher-table tbody tr:last-child td,
.dudi-table tbody tr:last-child td,
.placement-table tbody tr:last-child td,
.issue-table tbody tr:last-child td,
.pub-table tbody tr:last-child td {
  border-bottom: none !important;
}

.students-table tbody tr:hover td,
.teacher-table tbody tr:hover td,
.dudi-table tbody tr:hover td,
.placement-table tbody tr:hover td,
.issue-table tbody tr:hover td,
.pub-table tbody tr:hover td,
.monitor-table tbody tr:hover td {
  background: #f8fbff !important;
}

.students-table tbody tr:hover td:first-child,
.teacher-table tbody tr:hover td:first-child,
.dudi-table tbody tr:hover td:first-child,
.placement-table tbody tr:hover td:first-child,
.issue-table tbody tr:hover td:first-child,
.pub-table tbody tr:hover td:first-child {
  box-shadow: inset 3px 0 0 var(--color-primary-500);
}

.students-table tbody tr.is-selected td,
.teacher-table tbody tr.is-selected td,
.dudi-table tbody tr.is-selected td,
.placement-table tbody tr.is-selected td {
  background: #eff6ff !important;
}

.student-avatar,
.pub-avatar {
  background: linear-gradient(145deg, #dbeafe, #eff6ff);
  color: var(--color-primary-600);
  border: 1px solid #bfdbfe;
  font-weight: 750;
}
.name-primary,
.students-table .name-cell,
.teacher-table .name-cell {
  color: var(--color-gray-900);
  font-weight: 700;
}

/* Status badges — Aktif / Pending / Selesai */
.status-pill,
.issue-table .status,
.pub-status,
.monitor-status {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  border-radius: 999px !important;
  padding: 5px 10px !important;
  font-size: 10.5px !important;
  font-weight: 720 !important;
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
}
.status-pill::before,
.issue-table .status::before,
.pub-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 7px;
  opacity: 0.9;
}

/* Default / incomplete / pending */
.status-pill.is-pending {
  background: #fff7ed !important;
  color: #c2410c !important;
  border-color: #fed7aa !important;
}

/* Legacy .line without decorate → treat as pending */
.status-pill.line:not(.is-aktif):not(.is-selesai):not(.is-nonaktif):not(.is-lengkap) {
  background: #fff7ed !important;
  color: #c2410c !important;
  border-color: #fed7aa !important;
}

/* Aktif / dark / success */
.status-pill.dark,
.status-pill.is-aktif,
.status-pill.is-success {
  background: #ecfdf5 !important;
  color: #047857 !important;
  border-color: #a7f3d0 !important;
}

/* Selesai / info / lengkap */
.status-pill.is-selesai,
.status-pill.is-info,
.status-pill.is-lengkap,
.status-pill.line.is-selesai {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
}

/* Error / ditolak / nonaktif */
.status-pill.is-error,
.status-pill.is-ditolak,
.status-pill.is-nonaktif {
  background: #fef2f2 !important;
  color: #b91c1c !important;
  border-color: #fecaca !important;
}

.status {
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 700;
}

/* Action buttons in tables */
.table-tools {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.icon-action {
  width: 32px !important;
  height: 32px !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #1d4ed8 !important;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.icon-action:hover {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
  color: #1d4ed8 !important;
  transform: translateY(-1px);
}
.icon-action.danger,
.icon-action[data-live-student-action='activate'] {
  border-color: #a7f3d0 !important;
  color: #047857 !important;
}
.icon-action.danger:hover,
.icon-action[data-live-student-action='activate']:hover {
  background: #ecfdf5 !important;
  border-color: #6ee7b7 !important;
}
.action-cell .action-btn,
.students-table .action-btn,
.placement-table .action-btn {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #ffffff;
  min-height: 32px;
  padding: 6px 11px;
  font-size: 11px;
}
.action-cell .action-btn:hover,
.students-table .action-btn:hover {
  background: #eff6ff;
}
.action-cell .action-btn.primary {
  background: var(--color-primary-500);
  border-color: var(--color-primary-500);
  color: #fff;
}

/* Pagination footer */
.student-bottom,
.placement-bottom {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb !important;
  color: var(--color-gray-500);
  padding: 12px 16px !important;
}
.page-nav {
  height: 32px !important;
  width: 32px !important;
  border: 1px solid #dbeafe !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  color: #1d4ed8 !important;
}
.page-nav:hover:not(:disabled) {
  background: #eff6ff !important;
  border-color: #93c5fd !important;
}
.page-nav:disabled {
  opacity: 0.4;
}
.student-paging select,
.placement-page-size select,
#student-page-size,
#teacher-page-size,
#dudi-page-size,
#placement-page-size {
  border: 1px solid #dbeafe !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  color: #1e3a8a !important;
}
#student-page-index,
#teacher-page-index,
#dudi-page-index,
#placement-page-index {
  color: #1d4ed8;
  font-weight: 720;
  min-width: 48px;
  text-align: center;
}

/* Compact mobile cards aligned to table language */
.student-card,
.dudi-cards .student-card,
.placement-cards .student-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.05);
}
.student-card:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}

/* Public activity table */
.pub-table-wrap {
  border: 1px solid #dbeafe;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.05);
}
.pub-table thead {
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%) !important;
}
.pub-table th {
  color: #1e3a8a !important;
  border-bottom: 1px solid #dbeafe !important;
}
.pub-table td {
  border-top-color: #eef2f7 !important;
}
.pub-table tr:hover td {
  background: #f8fbff !important;
}

/* Forms */
.student-filters label,
.teacher-filters label,
.dudi-filters label,
input,
select,
textarea {
  color: var(--color-gray-700);
}
input,
select,
textarea {
  border-color: var(--color-gray-300) !important;
  background: #ffffff;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary-500) !important;
  box-shadow: 0 0 0 3px var(--color-primary-100);
}
.search-field {
  border-color: var(--color-gray-300);
}
.search-field:focus-within {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px var(--color-primary-100);
}

/* Modals */
.student-modal-layer,
.dudi-form-layer,
.placement-modal-layer,
#dialog-layer.open {
  background: rgba(17, 24, 39, 0.45);
}
.student-modal,
.dudi-form-dialog,
.placement-modal,
.dialog {
  border-color: var(--color-border);
  background: #ffffff;
}
.student-modal-header h2,
.dudi-form-head h3,
.placement-modal-header h3,
#dialog-title {
  color: var(--color-gray-900);
}
.student-modal-header p,
.dudi-form-head p,
.placement-modal-header p,
#dialog-subtitle {
  color: var(--color-gray-500);
}
.modal-x:hover {
  background: var(--color-gray-100);
  color: var(--color-gray-900);
}

/* Charts */
.legend-top,
.chart-h h2 {
  color: var(--color-gray-700);
}
.small-dot {
  background: var(--color-primary-500);
}
.ring svg circle:last-child {
  stroke: var(--color-primary-500) !important;
}

/* Icon actions */
.icon-action {
  border-color: var(--color-gray-300);
  color: var(--color-gray-700);
  background: #ffffff;
}
.icon-action:hover {
  background: var(--color-hover);
  border-color: var(--color-primary-300);
  color: var(--color-primary-600);
}

/* Live API badge (legacy) — disembunyikan */
.live-api-badge {
  display: none !important;
}

/* Toast */
#live-toast,
.student-toast {
  background: var(--color-gray-900) !important;
  color: #ffffff !important;
}

/* ── Public portal ── */
#public-root,
.pub-shell {
  background: linear-gradient(180deg, var(--color-primary-100) 0%, var(--color-gray-50) 28%, #ffffff 100%);
  color: var(--color-gray-900);
}
.pub-btn {
  border-color: var(--color-primary-200);
  color: var(--color-gray-700);
  background: #ffffff;
}
.pub-btn:hover {
  background: var(--color-hover);
  border-color: var(--color-primary-300);
  color: var(--color-primary-600);
}
.pub-btn.primary,
.pub-btn-primary,
#pub-attend,
#pub-login-form [type='submit'],
.pub-cta,
a.pub-btn.dark {
  background: var(--color-primary-500) !important;
  border-color: var(--color-primary-500) !important;
  color: #ffffff !important;
}
.pub-btn.primary:hover,
.pub-btn-primary:hover,
#pub-attend:hover,
#pub-login-form [type='submit']:hover {
  background: var(--color-primary-600) !important;
  border-color: var(--color-primary-600) !important;
}
.pub-brand,
.pub-logo-mark,
.pub-hero h1,
.pub-title {
  color: var(--color-gray-900);
}
.pub-muted,
.pub-sub,
.pub-hero p {
  color: var(--color-gray-500);
}
.pub-card,
.pub-panel,
.pub-feed-card {
  background: #ffffff;
  border-color: var(--color-border);
}
.pub-chip,
.pub-pill {
  background: var(--color-primary-100);
  color: var(--color-primary-600);
  border-color: var(--color-primary-200);
}
.pub-link,
.pub-nav a:hover {
  color: var(--color-primary-600);
}
#pub-login-error,
#pub-change-error,
.pub-error,
.placement-inline-error,
.dudi-form-error,
.student-inline-error {
  color: var(--color-error);
}

/* ── Peserta portal ── */
#pv-root {
  background: var(--color-gray-50);
  color: var(--color-gray-900);
}
.pv-button {
  border-color: var(--color-gray-300);
  background: #ffffff;
  color: var(--color-gray-700);
}
.pv-button:hover {
  background: var(--color-hover);
  border-color: var(--color-primary-300);
  color: var(--color-primary-600);
}
.pv-primary {
  background: var(--color-primary-500) !important;
  border-color: var(--color-primary-500) !important;
  color: #ffffff !important;
}
.pv-primary:hover {
  background: var(--color-primary-600) !important;
  border-color: var(--color-primary-600) !important;
}
.pv-card,
.pv-panel {
  background: #ffffff;
  border-color: var(--color-border);
}
#live-peserta-bar {
  border-color: var(--color-primary-200) !important;
  background: linear-gradient(180deg, var(--color-primary-100), #ffffff) !important;
}

/* Page nav */
.page-nav {
  border-color: var(--color-gray-300);
  background: #ffffff;
  color: var(--color-gray-700);
}
.page-nav:hover {
  background: var(--color-hover);
  border-color: var(--color-primary-300);
  color: var(--color-primary-600);
}

/* Empty states */
.student-empty,
.placement-empty,
.dudi-empty {
  color: var(--color-gray-500);
}
.student-empty strong,
.placement-empty strong {
  color: var(--color-gray-900);
}

/* Public tokens — force DS primary over legacy greyscale override */
#public-root {
  --pub-blue: #2563eb;
  --pub-ink: #111827;
  --pub-muted: #6b7280;
  --pub-line: #e5e7eb;
  --pub-white: #fff;
  background: linear-gradient(180deg, #eff6ff 0%, #f9fafb 32%, #ffffff 100%);
  color: #111827;
}
.pub-brand-icon {
  background: #2563eb !important;
  box-shadow: 0 6px 18px #2563eb24;
}
.pub-nav-link[aria-current="page"] {
  color: #2563eb;
  background: #eff6ff;
}
.pub-hero h1 em {
  color: #2563eb;
}
.pub-live:before {
  background: #10b981;
  box-shadow: 0 0 0 3px #d1fae5;
}
.pub-footer {
  background: #f8fafc;
}
