:root {
  --bg: #050816;
  --bg-2: #0b1024;
  --bg-3: #111832;

  --card: rgba(15, 23, 42, 0.78);
  --card-solid: #111827;

  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);

  --primary: #8b5cf6;
  --primary-light: #a78bfa;
  --primary-dark: #6d28d9;
  --primary-soft: rgba(139, 92, 246, 0.14);

  --secondary: #22d3ee;
  --secondary-soft: rgba(34, 211, 238, 0.14);

  --danger: #fb7185;
  --success-bg: rgba(16, 185, 129, 0.14);
  --success-text: #6ee7b7;

  --warning-bg: rgba(245, 158, 11, 0.14);
  --warning-text: #fcd34d;

  --error-bg: rgba(244, 63, 94, 0.14);
  --error-text: #fda4af;

  --shadow:
    0 24px 70px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(139, 92, 246, 0.07);

  --shadow-hover:
    0 20px 45px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(139, 92, 246, 0.22);

  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family:
    Inter,
    "Segoe UI",
    Arial,
    Helvetica,
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(139, 92, 246, 0.2),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 0%,
      rgba(34, 211, 238, 0.13),
      transparent 28%
    ),
    radial-gradient(
      circle at 75% 85%,
      rgba(236, 72, 153, 0.1),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      #030712 0%,
      #070b18 45%,
      #0b1024 100%
    );
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px
    );
  background-size: 42px 42px;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.8),
    transparent
  );
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  color: #ffffff;
  background: rgba(139, 92, 246, 0.75);
}

.center-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.pink-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.025),
      transparent
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(139, 92, 246, 0.13),
      transparent 32%
    );
}

.container {
  width: min(1180px, 100%);
  margin: 28px auto;
  padding: 0 18px 42px;
}

/* =========================
   TOPBAR
========================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;

  padding: 16px 24px;

  background: rgba(5, 8, 22, 0.78);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.025);
}

.topbar strong {
  color: #c4b5fd;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
}

/* =========================
   CARD
========================= */

.card {
  position: relative;

  margin-bottom: 22px;
  padding: 28px;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(30, 41, 59, 0.78),
      rgba(10, 15, 31, 0.8)
    );

  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius);

  box-shadow: var(--shadow);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.card:hover {
  border-color: rgba(167, 139, 250, 0.26);
  box-shadow: var(--shadow-hover);
}

.teacher-image-preview {
  display: block;
  width: 150px;
  height: 150px;
  margin: 8px 0 16px;
  object-fit: cover;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 18px;
}

.teacher-table-image {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.pretty-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.pretty-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  padding: 1px;
  border-radius: inherit;

  background: linear-gradient(
    135deg,
    rgba(167, 139, 250, 0.4),
    rgba(34, 211, 238, 0.13),
    transparent 45%,
    rgba(236, 72, 153, 0.16)
  );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;
}

.pretty-card::after {
  content: "";
  position: absolute;
  z-index: -1;

  width: 280px;
  height: 280px;
  top: -120px;
  right: -100px;

  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.24),
    transparent 68%
  );

  filter: blur(3px);
  pointer-events: none;
}

.hero-card,
.login-card {
  width: min(540px, 100%);
}

/* =========================
   BRAND
========================= */

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 14px;
  padding: 8px 14px;

  overflow: hidden;
  position: relative;

  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;

  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;

  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary),
    #2563eb
  );

  box-shadow:
    0 10px 25px rgba(139, 92, 246, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.brand-pill::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -80%;

  width: 45%;
  height: 340%;

  transform: rotate(25deg);

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );

  animation: pill-shine 3.2s infinite ease-in-out;
}

@keyframes pill-shine {
  0%,
  55% {
    left: -80%;
  }

  100% {
    left: 145%;
  }
}


/* =========================
   LOGIN SCHOOL BRAND
========================= */
.login-brand-row {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 24px;
}

.login-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid rgba(167, 139, 250, 0.32);
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.login-back-button span {
  font-size: 20px;
  line-height: 1;
}

.login-back-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.3);
}

.login-school-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-school-logo {
  width: 58px;
  height: 70px;
  flex: 0 0 58px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.25));
}

.login-school-name {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.login-school-name strong {
  color: #f8fafc;
  font-size: clamp(16px, 2.4vw, 22px);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.login-school-name span {
  color: #aabbd0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .login-brand-row {
    align-items: flex-start;
    gap: 14px;
  }

  .login-back-button {
    min-height: 42px;
    padding: 9px 13px;
    font-size: 12px;
  }

  .login-school-brand {
    gap: 10px;
  }

  .login-school-logo {
    width: 44px;
    height: 54px;
    flex-basis: 44px;
  }

  .login-school-name strong {
    font-size: 14px;
  }

  .login-school-name span {
    font-size: 8px;
    white-space: normal;
    line-height: 1.4;
  }
}

/* =========================
   TYPOGRAPHY
========================= */

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;

  color: #f8fafc;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.05em;

  text-shadow:
    0 0 30px rgba(139, 92, 246, 0.12),
    0 6px 25px rgba(0, 0, 0, 0.5);
}

h2 {
  color: #e9d5ff;
  font-size: 25px;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 8px;
  color: #ddd6fe;
}

p {
  line-height: 1.7;
}

.muted {
  color: var(--muted);
}

/* =========================
   BUTTON
========================= */

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 22px;
}

.button {
  position: relative;
  isolation: isolate;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 44px;
  padding: 12px 18px;

  overflow: hidden;

  color: #f8fafc;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;

  cursor: pointer;

  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      rgba(30, 41, 59, 0.92),
      rgba(15, 23, 42, 0.9)
    );

  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

/* Lapisan cahaya lembut */
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;

  opacity: 0;

  background: radial-gradient(
    circle at center,
    rgba(167, 139, 250, 0.22),
    transparent 68%
  );

  transition: opacity 0.25s ease;
}

/* Kilau bergerak */
.button::after {
  content: "";
  position: absolute;
  top: -130%;
  left: -90%;
  z-index: -1;

  width: 42%;
  height: 380%;

  transform: rotate(25deg);

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.75),
    rgba(255, 255, 255, 0.08),
    transparent
  );

  animation: button-shimmer 3s infinite ease-in-out;
  pointer-events: none;
}

@keyframes button-shimmer {
  0%,
  58% {
    left: -90%;
  }

  100% {
    left: 155%;
  }
}

.button:hover {
  transform: translateY(-2px) scale(1.015);

  border-color: rgba(167, 139, 250, 0.72);

  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.38),
    0 0 24px rgba(139, 92, 246, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.button:hover::before {
  opacity: 1;
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button:focus-visible {
  outline: none;
  border-color: #67e8f9;

  box-shadow:
    0 0 0 4px rgba(34, 211, 238, 0.16),
    0 0 25px rgba(34, 211, 238, 0.18);
}

.button.primary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);

  background: linear-gradient(
    135deg,
    #6d28d9 0%,
    #8b5cf6 42%,
    #2563eb 100%
  );

  box-shadow:
    0 12px 30px rgba(109, 40, 217, 0.38),
    0 0 22px rgba(139, 92, 246, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.button.primary:hover {
  background: linear-gradient(
    135deg,
    #7c3aed 0%,
    #9333ea 45%,
    #2563eb 100%
  );

  box-shadow:
    0 18px 38px rgba(109, 40, 217, 0.46),
    0 0 30px rgba(139, 92, 246, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.button.small {
  min-height: 36px;
  padding: 8px 12px;

  border-radius: 12px;
  font-size: 13px;
}

.button.full {
  width: 100%;
}

.button.disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: grayscale(0.4);
}

.button.disabled:hover {
  transform: none;
  box-shadow: none;
}

.button.danger {
  color: #fecdd3;
  border-color: rgba(251, 113, 133, 0.3);

  background: linear-gradient(
    145deg,
    rgba(136, 19, 55, 0.5),
    rgba(76, 5, 25, 0.62)
  );
}

.button.danger:hover {
  border-color: rgba(251, 113, 133, 0.8);

  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.4),
    0 0 26px rgba(244, 63, 94, 0.25);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button:disabled::after {
  animation: none;
}

/* =========================
   FORM
========================= */

.form {
  display: grid;
  gap: 11px;
  margin-top: 18px;
}

label {
  color: #ddd6fe;
  font-weight: 800;
}

input[type="email"],
input[type="password"],
.input,
textarea.input,
select.input,
input[type="text"],
input[type="number"] {
  width: 100%;
  padding: 13px 14px;

  color: var(--text);
  font-family: inherit;
  font-size: 16px;

  outline: none;

  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;

  background:
    linear-gradient(
      145deg,
      rgba(15, 23, 42, 0.88),
      rgba(10, 15, 31, 0.94)
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 8px 20px rgba(0, 0, 0, 0.18);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
}

select.input option {
  color: var(--text);
  background: #0f172a;
}

input[type="email"]:focus,
input[type="password"]:focus,
.input:focus,
textarea.input:focus,
select.input:focus,
input[type="text"]:focus,
input[type="number"]:focus {
  border-color: rgba(167, 139, 250, 0.85);

  background: rgba(15, 23, 42, 0.98);

  box-shadow:
    0 0 0 4px rgba(139, 92, 246, 0.15),
    0 0 24px rgba(139, 92, 246, 0.12);
}

textarea.input {
  resize: vertical;
}

/* Checkbox dan radio */

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--primary);
}

/* =========================
   MESSAGE
========================= */

.message {
  margin-top: 16px;
  padding: 12px 14px;

  font-weight: 800;

  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.message.hidden,
.verify-action.hidden {
  display: none;
}

.message.error {
  color: var(--error-text);
  background: var(--error-bg);
  border: 1px solid rgba(251, 113, 133, 0.28);
}

.message.success {
  color: var(--success-text);
  background: var(--success-bg);
  border: 1px solid rgba(52, 211, 153, 0.26);
}

.message.warning {
  color: var(--warning-text);
  background: var(--warning-bg);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.verify-action {
  margin-top: 12px;
}

/* =========================
   DEMO BOX
========================= */

.demo-box {
  margin-top: 18px;
  padding: 15px;

  border: 1px dashed rgba(167, 139, 250, 0.42);
  border-radius: 18px;

  background:
    linear-gradient(
      135deg,
      rgba(139, 92, 246, 0.09),
      rgba(34, 211, 238, 0.045)
    );
}

.demo-box p {
  margin: 6px 0;
  color: var(--muted);
}

/* =========================
   GRID DAN EXAM CARD
========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(260px, 100%), 1fr)
  );
  gap: 16px;

  margin-top: 18px;
}

.exam-card {
  position: relative;

  padding: 18px;
  overflow: hidden;

  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 20px;

  background:
    linear-gradient(
      145deg,
      rgba(30, 41, 59, 0.72),
      rgba(15, 23, 42, 0.76)
    );

  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);

  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.exam-card::before {
  content: "";
  position: absolute;

  width: 130px;
  height: 130px;
  top: -70px;
  right: -60px;

  border-radius: 50%;

  background: rgba(139, 92, 246, 0.15);
  filter: blur(15px);

  pointer-events: none;
}

.exam-card:hover {
  transform: translateY(-4px);

  border-color: rgba(167, 139, 250, 0.38);

  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(139, 92, 246, 0.12);
}

/* =========================
   TABLE
========================= */

.table-wrap {
  overflow-x: auto;

  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;

  background: rgba(15, 23, 42, 0.62);

  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
}

table {
  width: 100%;
  min-width: 720px;

  border-collapse: collapse;

  background: rgba(15, 23, 42, 0.5);
}

th,
td {
  padding: 13px 11px;

  text-align: left;
  vertical-align: top;

  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

th {
  color: #c4b5fd;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;

  background:
    linear-gradient(
      135deg,
      rgba(139, 92, 246, 0.13),
      rgba(34, 211, 238, 0.055)
    );
}

tbody tr {
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

tbody tr:hover {
  background: rgba(139, 92, 246, 0.075);
}

/* =========================
   SUMMARY
========================= */

.summary-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(145px, 100%), 1fr)
  );
  gap: 14px;
}

.summary-grid div {
  position: relative;

  padding: 18px;
  overflow: hidden;

  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(30, 41, 59, 0.68),
      rgba(15, 23, 42, 0.7)
    );

  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.summary-grid div::after {
  content: "";
  position: absolute;

  width: 100px;
  height: 100px;
  right: -45px;
  bottom: -55px;

  border-radius: 50%;

  background: rgba(34, 211, 238, 0.11);
  filter: blur(8px);
}

.summary-grid strong {
  display: block;

  color: #a78bfa;
  font-size: 34px;
  line-height: 1;

  text-shadow: 0 0 18px rgba(139, 92, 246, 0.25);
}

.summary-grid span {
  display: block;

  margin-top: 8px;
  color: var(--muted);
}

/* =========================
   QUESTION
========================= */

.question-card {
  margin: 18px 0;
  padding: 18px;

  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 20px;

  background:
    linear-gradient(
      145deg,
      rgba(30, 41, 59, 0.66),
      rgba(15, 23, 42, 0.75)
    );

  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.question-card legend {
  padding: 0 8px;

  color: #ddd6fe;
  font-weight: 900;
}

.option-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  padding: 10px;
  margin: 4px 0;

  font-weight: 600;

  border: 1px solid transparent;
  border-radius: 12px;

  transition:
    background 0.18s ease,
    border-color 0.18s ease;
}

.option-row:hover {
  border-color: rgba(167, 139, 250, 0.18);
  background: rgba(139, 92, 246, 0.07);
}

.option-row input {
  margin-top: 3px;
}

/* =========================
   TIMER
========================= */

.timer {
  display: inline-block;

  margin: 10px 0;
  padding: 10px 13px;

  color: #c4b5fd;
  font-weight: 900;

  border: 1px solid rgba(167, 139, 250, 0.32);
  border-radius: 999px;

  background: rgba(139, 92, 246, 0.12);

  box-shadow:
    0 0 20px rgba(139, 92, 246, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.timer.hidden {
  display: none;
}

.error-text {
  color: var(--danger);
  font-weight: 800;
}

/* =========================
   SECTIONS DAN PANELS
========================= */

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(285px, 100%), 1fr)
  );
  gap: 16px;

  margin: 18px 0 24px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(185px, 100%), 1fr)
  );
  gap: 12px;
}

.panel {
  padding: 18px;

  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 20px;

  background:
    linear-gradient(
      145deg,
      rgba(30, 41, 59, 0.67),
      rgba(15, 23, 42, 0.72)
    );

  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.form-panel {
  display: grid;
  gap: 12px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;

  color: #e2e8f0;
  font-weight: 800;
}

.button-row.compact {
  gap: 8px;
  margin-top: 8px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* =========================
   BADGE
========================= */

.badge {
  display: inline-flex;
  align-items: center;

  padding: 5px 10px;

  color: #c4b5fd;
  font-size: 12px;
  font-weight: 900;

  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: 999px;

  background: rgba(139, 92, 246, 0.12);

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.badge.success {
  color: var(--success-text);
  border-color: rgba(52, 211, 153, 0.25);
  background: var(--success-bg);
}

.warning-badge {
  color: var(--warning-text);
  border-color: rgba(251, 191, 36, 0.25);
  background: var(--warning-bg);
}

.compact-summary {
  margin: 16px 0 6px;
}

.question-list {
  margin-top: 18px;
}

.option-list {
  margin: 12px 0 0;
  padding-left: 20px;
}

.option-list li {
  margin: 8px 0;
  color: #cbd5e1;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.bank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.bank-card {
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.42);
}

.bank-card .option-list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.bank-card .option-list li {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 10px;
}

.bank-card .option-list .correct {
  border-color: rgba(34, 197, 94, 0.7);
  background: rgba(34, 197, 94, 0.12);
}

.exam-select-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 800px) {
  .filter-grid,
  .bank-grid,
  .exam-select-row {
    grid-template-columns: 1fr;
  }
}

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

::-webkit-scrollbar-track {
  background: #050816;
}

::-webkit-scrollbar-thumb {
  border: 3px solid #050816;
  border-radius: 999px;

  background: linear-gradient(
    to bottom,
    #6d28d9,
    #2563eb
  );
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    to bottom,
    #8b5cf6,
    #22d3ee
  );
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;

    padding: 15px 18px;
  }

  .card {
    padding: 20px;
    border-radius: 20px;
  }

  .button-row,
  .button {
    width: 100%;
  }

  .section-heading {
    flex-direction: column;
  }

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

  .action-row .button,
  .button-row.compact .button {
    width: auto;
  }

  h1 {
    font-size: clamp(30px, 11vw, 44px);
  }
}

/* Mengurangi animasi untuk pengguna yang memilih reduced motion */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================
   PROFILE INFO
========================= */

.profile-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.profile-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: all 0.3s ease;
}

.profile-item:hover {
  border-color: rgba(167, 139, 250, 0.26);
  background: rgba(15, 23, 42, 0.8);
}

.profile-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.profile-value {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

.profile-item:nth-child(1),
.profile-item:nth-child(4) {
  grid-column: 1 / 2;
}

.profile-item:nth-child(2),
.profile-item:nth-child(3),
.profile-item:nth-child(5) {
  grid-column: 2 / 3;
}

.profile-item:nth-child(6),
.profile-item:nth-child(7) {
  grid-column: 1 / -1;
}

/* =========================
   TEACHER GALLERY
========================= */

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
  margin-top: 28px;
}

.teacher-card {
  position: relative;
  text-align: center;
  padding: 24px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: all 0.3s ease;
  overflow: hidden;
}

.teacher-card:hover {
  transform: translateY(-8px);
  border-color: rgba(167, 139, 250, 0.26);
  box-shadow: var(--shadow-hover);
}

.teacher-card img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--primary);
  transition: transform 0.3s ease;
}

.teacher-card:hover img {
  transform: scale(1.05);
}

.teacher-card h3 {
  color: #f8fafc;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.teacher-card p {
  color: #94a3b8;
  font-size: 0.95rem;
  font-style: italic;
}

/* Tema terang biru langit untuk login dan seluruh halaman CBT. */
:root {
  color-scheme: light;
  --bg: #f3faff;
  --bg-2: #e9f6ff;
  --bg-3: #ffffff;
  --card: #ffffff;
  --card-solid: #ffffff;
  --panel: #f7fbff;
  --text: #17364f;
  --muted: #607b91;
  --line: rgba(48, 113, 154, .17);
  --primary: #218bd0;
  --primary-light: #55b5ed;
  --primary-dark: #1269ad;
  --primary-soft: rgba(59, 166, 225, .12);
  --secondary: #168fc5;
  --secondary-soft: rgba(64, 181, 229, .13);
  --danger: #c83c56;
  --success-bg: #e7f8ef;
  --success-text: #187346;
  --warning-bg: #fff6df;
  --warning-text: #8a5a06;
  --error-bg: #fff0f2;
  --error-text: #a92b42;
  --shadow: 0 16px 42px rgba(34, 89, 124, .09);
  --shadow-hover: 0 20px 48px rgba(34, 89, 124, .14);
}

html {
  color-scheme: light;
}

body {
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(100, 194, 239, .18), transparent 30%),
    radial-gradient(circle at 92% 4%, rgba(184, 229, 252, .5), transparent 28%),
    linear-gradient(135deg, #f8fcff 0%, #eff8ff 48%, #eaf6ff 100%);
}

body::after {
  opacity: .38;
  background-image:
    linear-gradient(rgba(65, 142, 184, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 142, 184, .045) 1px, transparent 1px);
}

.pink-page::before {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .6), transparent),
    radial-gradient(circle at 70% 80%, rgba(91, 187, 234, .16), transparent 34%);
}

::selection {
  color: #fff;
  background: rgba(28, 139, 205, .76);
}

.topbar {
  background: rgba(255, 255, 255, .9);
  border-bottom-color: rgba(48, 113, 154, .14);
  box-shadow: 0 8px 28px rgba(34, 89, 124, .08);
}

.topbar strong {
  color: #176fa8;
  text-shadow: none;
}

.card,
.panel,
.exam-card,
.summary-grid div,
.question-card,
.table-wrap,
.teacher-card {
  border-color: var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.card:hover,
.teacher-card:hover {
  border-color: rgba(33, 139, 208, .3);
  box-shadow: var(--shadow-hover);
}

.pretty-card::before {
  background: linear-gradient(135deg, rgba(76, 177, 230, .3), rgba(34, 153, 211, .1), transparent 52%);
}

.pretty-card::after {
  background: radial-gradient(circle, rgba(109, 202, 243, .2), transparent 70%);
}

.login-school-name strong,
h1,
h2,
h3,
.teacher-card h3 {
  color: #17364f;
}

h1 {
  text-shadow: 0 3px 14px rgba(28, 90, 130, .08);
}

h2,
h3,
.question-card legend,
label,
.check-row {
  color: #244b66;
}

.profile-label {
  color: #1681b9;
  text-shadow: none;
}

.muted,
.summary-grid span,
.teacher-card p,
.demo-box p {
  color: var(--muted);
}

.login-school-name span {
  color: #607b91;
}

.login-back-button {
  border-color: rgba(24, 125, 184, .18);
  background: linear-gradient(135deg, #48b3eb, #1782c7);
  box-shadow: 0 10px 24px rgba(33, 139, 208, .18);
}

.brand-pill,
.button,
.button.primary {
  color: #fff;
  border-color: rgba(20, 112, 168, .16);
  background: linear-gradient(135deg, #45b2eb, #1682c8);
  box-shadow: 0 10px 24px rgba(33, 139, 208, .18);
}

.button:hover,
.button.primary:hover,
.login-back-button:hover {
  border-color: rgba(20, 112, 168, .28);
  background: linear-gradient(135deg, #55bdf0, #1178bd);
  box-shadow: 0 14px 30px rgba(33, 139, 208, .24);
}

.button:focus-visible {
  border-color: #168bd2;
  box-shadow: 0 0 0 4px rgba(33, 139, 208, .16);
}

.button.danger {
  color: #a92b42;
  border-color: rgba(200, 60, 86, .2);
  background: #fff0f2;
  box-shadow: none;
}

.button.danger:hover {
  border-color: rgba(200, 60, 86, .38);
  background: #ffe4e9;
  box-shadow: 0 8px 18px rgba(165, 49, 71, .1);
}

input[type="email"],
input[type="password"],
.input,
textarea.input,
select.input,
input[type="text"],
input[type="number"] {
  color: #17364f;
  border-color: rgba(48, 113, 154, .2);
  background: #fff;
  box-shadow: 0 3px 10px rgba(34, 89, 124, .04);
}

input::placeholder,
textarea::placeholder {
  color: #8299aa;
}

select.input option {
  color: #17364f;
  background: #fff;
}

input[type="email"]:focus,
input[type="password"]:focus,
.input:focus,
textarea.input:focus,
select.input:focus,
input[type="text"]:focus,
input[type="number"]:focus {
  border-color: rgba(33, 139, 208, .75);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(33, 139, 208, .12);
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--primary);
}

.message.error {
  color: var(--error-text);
  background: var(--error-bg);
  border-color: rgba(200, 60, 86, .2);
}

.message.success {
  color: var(--success-text);
  background: var(--success-bg);
  border-color: rgba(39, 143, 88, .2);
}

.message.warning {
  color: var(--warning-text);
  background: var(--warning-bg);
  border-color: rgba(183, 127, 19, .2);
}

.demo-box {
  border-color: rgba(33, 139, 208, .28);
  background: linear-gradient(135deg, #f0f9ff, #f8fcff);
}

.exam-card:hover {
  border-color: rgba(33, 139, 208, .3);
  box-shadow: 0 16px 36px rgba(34, 89, 124, .12);
}

.exam-card::before,
.summary-grid div::after {
  background: rgba(75, 183, 232, .14);
}

.table-wrap {
  background: #fff;
}

table {
  color: #24465e;
  background: #fff;
}

th,
td {
  border-bottom-color: rgba(48, 113, 154, .12);
}

th {
  color: #195c86;
  background: linear-gradient(135deg, #e7f5ff, #f3faff);
}

tbody tr:hover {
  background: #f1f9ff;
}

.summary-grid strong {
  color: #1681bf;
  text-shadow: none;
}

.option-row:hover {
  border-color: rgba(33, 139, 208, .18);
  background: #eff8ff;
}

.timer {
  color: #176fa8;
  border-color: rgba(33, 139, 208, .24);
  background: #eaf6ff;
  box-shadow: 0 4px 14px rgba(34, 89, 124, .08);
}

.badge {
  color: #176fa8;
  border-color: rgba(33, 139, 208, .2);
  background: #eaf6ff;
  box-shadow: none;
}

.badge.success {
  color: var(--success-text);
  border-color: rgba(39, 143, 88, .2);
  background: var(--success-bg);
}

.warning-badge {
  color: var(--warning-text);
  border-color: rgba(183, 127, 19, .2);
  background: var(--warning-bg);
}

.option-list li {
  color: #24465e;
}

.profile-item {
  background: #f5faff;
  border-color: rgba(48, 113, 154, .14);
}

.profile-item:hover {
  background: #edf8ff;
  border-color: rgba(33, 139, 208, .24);
}

.profile-value {
  color: #24465e;
}

.teacher-card img {
  border-color: var(--primary);
}

.stat,
.bank-card {
  color: var(--text);
  background: #fff;
  border-color: var(--line);
}

.status-pill {
  color: #195c86;
  background: #e7f5ff;
}

::-webkit-scrollbar-track {
  background: #e8f3fa;
}

::-webkit-scrollbar-thumb {
  border-color: #e8f3fa;
  background: linear-gradient(to bottom, #48afe3, #1682c8);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #1682c8, #71c9ef);
}

/* =========================
   PROFESSIONAL LOGIN PAGE
========================= */
.auth-page {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 42px 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(91, 194, 239, .24), transparent 30%),
    radial-gradient(circle at 92% 88%, rgba(36, 145, 211, .14), transparent 30%),
    linear-gradient(135deg, #f8fcff 0%, #eef8ff 52%, #e6f3fc 100%);
}

.auth-page::before,
.auth-page::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(33, 139, 208, .12);
  border-radius: 50%;
}

.auth-page::before {
  width: 520px;
  height: 520px;
  top: -270px;
  right: -120px;
}

.auth-page::after {
  width: 360px;
  height: 360px;
  bottom: -190px;
  left: -150px;
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, .95fr);
  width: min(1080px, 100%);
  min-height: 650px;
  overflow: hidden;
  border: 1px solid rgba(48, 113, 154, .16);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(34, 89, 124, .16), 0 8px 24px rgba(34, 89, 124, .08);
}

.auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 650px;
  padding: 42px 48px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 75%, rgba(74, 211, 244, .22), transparent 30%),
    linear-gradient(145deg, #073c68 0%, #0a6da6 54%, #168bc4 100%);
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .2;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.auth-brand,
.auth-visual-copy,
.auth-highlights {
  position: relative;
  z-index: 2;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.auth-brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 15px;
  background: rgba(255,255,255,.14);
  box-shadow: 0 12px 26px rgba(0, 32, 64, .18);
}

.auth-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-visual-copy {
  max-width: 470px;
  margin: auto 0;
  padding: 70px 0 50px;
}

.auth-visual-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5vw, 68px);
  line-height: .98;
  letter-spacing: -.06em;
  text-shadow: 0 12px 30px rgba(0, 39, 74, .18);
}

.auth-visual-copy h1 em {
  color: #b9f2ff;
  font-style: normal;
}

.auth-visual-copy > p:last-child {
  max-width: 390px;
  margin: 26px 0 0;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  line-height: 1.8;
}

.auth-highlights {
  display: flex;
  gap: 12px;
}

.auth-highlights div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
}

.auth-highlights strong {
  color: #ffe09a;
  font-size: 10px;
  letter-spacing: .12em;
}

.auth-highlights span {
  color: rgba(255,255,255,.86);
  font-size: 10px;
  white-space: nowrap;
}

.auth-orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  pointer-events: none;
}

.auth-orbit-one {
  width: 390px;
  height: 390px;
  right: -170px;
  top: 130px;
}

.auth-orbit-two {
  width: 280px;
  height: 280px;
  right: -115px;
  top: 185px;
}

.auth-form-card.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: auto;
  min-height: 650px;
  margin: 0;
  padding: 48px clamp(34px, 5vw, 68px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.auth-form-card.login-card:hover {
  border-color: transparent;
  box-shadow: none;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  color: #57809a;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.auth-back span {
  color: #168bc4;
  font-size: 18px;
  line-height: 1;
}

.auth-back:hover {
  color: #1682c0;
  transform: translateX(-3px);
}

.auth-form-heading {
  margin-top: 56px;
}

.auth-form-heading h2 {
  color: #17364f;
  font-size: clamp(32px, 4vw, 45px);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.auth-form-heading > p:last-child {
  max-width: 340px;
  margin: 16px 0 0;
  color: #718a9c;
  font-size: 13px;
  line-height: 1.65;
}

.auth-form {
  gap: 19px;
  margin-top: 34px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field label,
.auth-label-row label {
  color: #315873;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: none;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-label-row > span {
  color: #8ba2b1;
  font-size: 10px;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(48, 113, 154, .18);
  border-radius: 14px;
  background: #f8fcff;
  box-shadow: inset 0 1px 2px rgba(34, 89, 124, .025);
  font-size: 13px;
}

.auth-form input:focus {
  border-color: rgba(33, 139, 208, .72);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(33, 139, 208, .1), 0 7px 18px rgba(34, 89, 124, .06);
}

.auth-password-field {
  position: relative;
}

.auth-password-field input {
  padding-right: 88px !important;
}

.auth-toggle-password {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  padding: 5px 0;
  border: 0;
  color: #1682c0;
  background: transparent;
  font: 800 10px/1 var(--font);
  cursor: pointer;
}

.auth-toggle-password:hover {
  color: #0b5f91;
}

.auth-submit {
  min-height: 54px;
  justify-content: space-between;
  padding: 0 18px 0 22px;
  border-radius: 14px;
  font-size: 11px;
  letter-spacing: .04em;
}

.auth-submit strong {
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.auth-form-card .message {
  margin-top: 18px;
}

.auth-form-card .verify-action {
  margin-top: 12px;
}

.auth-footnote {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 30px 0 0;
  color: #8ba2b1;
  font-size: 10px;
}

.auth-footnote span {
  color: #168bc4;
  font-size: 13px;
}

@media (max-width: 850px) {
  .auth-page {
    padding: 24px 16px;
  }

  .auth-shell {
    display: block;
    width: min(520px, 100%);
    min-height: 0;
    border-radius: 26px;
  }

  .auth-visual {
    display: none;
  }

  .auth-form-card.login-card {
    min-height: 0;
    padding: 38px clamp(24px, 8vw, 48px);
    border-radius: 26px;
  }

  .auth-form-heading {
    margin-top: 42px;
  }
}

@media (max-width: 420px) {
  .auth-page {
    padding: 12px;
  }

  .auth-form-card.login-card {
    padding: 30px 22px;
  }

  .auth-form-heading h2 {
    font-size: 32px;
  }
}

/* =========================
   LOGO SEKOLAH
========================= */
.topbar-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  min-width: max-content;
  text-decoration: none;
}

.topbar-logo-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 5px;
  border: 1px solid rgba(48, 113, 154, .18);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(34, 89, 124, .12);
}

.topbar-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.topbar-logo-copy {
  display: grid;
  gap: 3px;
  line-height: 1.2;
}
.topbar-logo-copy strong {
  color: #176fa8;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-shadow: none;
}

.topbar-logo-copy small {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* Logo untuk halaman tanpa topbar (mis. verifikasi email) */
.page-logo {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 18px;
  text-align: center;
}

.page-logo-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  padding: 7px;
  border: 1px solid rgba(48, 113, 154, .18);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(34, 89, 124, .14);
}

.page-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-logo strong {
  color: #176fa8;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: none;
}

.page-logo small {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .topbar-logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .topbar-logo-copy small {
    display: none;
  }
}

/* =========================
   ADMIN DASHBOARD
========================= */
.admin-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f3f9fd;
  color: #47697f;
  font-size: 11px;
  font-weight: 800;
}

.admin-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
}

.admin-pill.open {
  border-color: rgba(24, 160, 96, .28);
  background: #e9f9f1;
  color: #187346;
}

.admin-pill.open::before {
  background: #22a06b;
}

.admin-pill.closed {
  border-color: rgba(200, 60, 86, .26);
  background: #fdecef;
  color: #c83c56;
}

.admin-pill.closed::before {
  background: #c83c56;
}

.admin-shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 14px;
  margin-top: 18px;
}

.admin-shortcut {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.65));
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.admin-shortcut:hover,
.admin-shortcut:focus-visible {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.35), 0 0 20px rgba(139, 92, 246, 0.15);
  transform: translateY(-2px);
  outline: none;
}

.admin-shortcut-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(99, 102, 241, 0.2));
  color: #c4b5fd;
  font-size: 14px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.admin-shortcut strong {
  color: #f1f5f9;
  font-size: 15px;
}

.admin-shortcut span {
  color: #94a3b8;
  font-size: 12.5px;
  line-height: 1.6;
}

.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-list-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.65));
}

.admin-list-item strong {
  color: #f1f5f9;
  font-size: 13.5px;
}

.admin-list-item span {
  color: #94a3b8;
  font-size: 11.5px;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef4f8;
  color: #47697f;
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
  white-space: nowrap;
}

.admin-status.diterima {
  background: #e9f9f1;
  color: #187346;
}

.admin-status.ditolak {
  background: #fdecef;
  color: #c83c56;
}

.admin-status.menunggu {
  background: #fff6e5;
  color: #a76a10;
}

.admin-status.diverifikasi {
  background: #e8f2fd;
  color: #1682c0;
}

.admin-empty {
  margin-top: 14px;
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* =========================
   DASHBOARD NAVIGATION
========================= */
.topbar {
  flex-wrap: wrap;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.dashboard-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-left: 0;
  margin-right: auto;
  padding: 4px;
  border: 1px solid rgba(48, 113, 154, .14);
  border-radius: 14px;
  background: #f3f9fd;
}

.dashboard-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 10px;
  color: #557287;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.dashboard-nav a:hover,
.dashboard-nav a:focus-visible {
  color: #126da4;
  background: #fff;
  box-shadow: 0 5px 14px rgba(34, 89, 124, .1);
  transform: translateY(-1px);
  outline: none;
}

.dashboard-nav a:last-child {
  color: #126da4;
}

.topbar-logout {
  flex: 0 0 auto;
  margin-left: 8px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.topbar-actions .dashboard-nav {
  margin: 0;
}

@media (max-width: 900px) {
  .topbar {
    gap: 10px;
  }

  .dashboard-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .topbar-actions .dashboard-nav {
    order: 0;
    width: auto;
    overflow-x: visible;
  }
}

@media (max-width: 640px) {
  .topbar-brand {
    width: 100%;
  }

  .dashboard-nav {
    margin-left: 0;
    justify-content: flex-start;
    border-radius: 12px;
  }

  .dashboard-nav a {
    flex: 0 0 auto;
    padding: 0 11px;
  }

  .topbar-logout {
    width: auto;
    margin-left: 0;
  }

  .topbar-actions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Sidebar navigasi dashboard — Elegant Professional */
.dashboard-sidebar {
  position: fixed;
  z-index: 15;
  top: 70px;
  bottom: 0;
  left: 0;
  width: 272px;
  padding: 22px 14px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid rgba(148, 163, 184, 0.10);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(8, 12, 28, 0.99) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    4px 0 32px rgba(0, 0, 0, 0.38),
    inset -1px 0 0 rgba(255, 255, 255, 0.04);
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, 0.25) transparent;
}

.dashboard-sidebar::-webkit-scrollbar {
  width: 4px;
}
.dashboard-sidebar::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.25);
  border-radius: 999px;
}
.dashboard-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-heading {
  display: grid;
  gap: 6px;
  padding: 6px 12px 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.sidebar-heading span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a78bfa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.95;
}

.sidebar-heading span::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b5cf6, transparent);
  opacity: 0.9;
}

.sidebar-heading strong {
  color: #f1f5f9;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 1px 0 rgba(0,0,0,0.3);
}

.dashboard-sidebar .dashboard-nav {
  display: grid;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 6px;
  justify-content: stretch;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.dashboard-sidebar .dashboard-nav a {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  padding: 0 14px 0 14px;
  border-radius: 12px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}

.dashboard-sidebar .dashboard-nav a::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-right: 0;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.42);
  box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
  transition: all 0.22s ease;
}

.dashboard-sidebar .dashboard-nav a:hover {
  color: #e2e8f0;
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.14);
  transform: translateX(2px);
}

.dashboard-sidebar .dashboard-nav a:hover::before {
  background: #a78bfa;
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.55);
  transform: scale(1.18);
}

.dashboard-sidebar .dashboard-nav a:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.45);
  outline-offset: 2px;
}

.dashboard-sidebar .dashboard-nav a[aria-current="page"] {
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(99, 102, 241, 0.14));
  border-color: rgba(139, 92, 246, 0.28);
  box-shadow:
    0 6px 18px rgba(139, 92, 246, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dashboard-sidebar .dashboard-nav a[aria-current="page"]::before {
  background: #8b5cf6;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.7);
  transform: scale(1.25);
}

.dashboard-sidebar .dashboard-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 22px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #8b5cf6, #6366f1);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.dashboard-sidebar .dashboard-nav a:last-child {
  color: #94a3b8;
}
.dashboard-sidebar .dashboard-nav a:last-child:hover {
  color: #e2e8f0;
}

.dashboard-content {
  width: min(1180px, calc(100% - 320px));
  margin: 28px 24px 28px 296px;
}

@media (max-width: 900px) {
  .dashboard-sidebar {
    position: relative;
    top: auto;
    bottom: auto;
    width: 100%;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  }

  .sidebar-heading {
    padding-bottom: 12px;
  }

  .dashboard-content {
    width: min(1180px, 100%);
    margin: 24px auto;
  }
}

@media (max-width: 640px) {
  .dashboard-sidebar {
    padding: 14px 16px;
  }

  .dashboard-sidebar .dashboard-nav {
    overflow: hidden;
  }
}

.teacher-order-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.teacher-order-controls span {
  min-width: 22px;
  color: #315873;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.teacher-order-button {
  width: 31px;
  min-height: 31px;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}

.teacher-order-button:disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.parent-data-card {
  margin: 0 24px 28px;
}

.parent-data-card .container {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0;
}

.parent-data-table td {
  vertical-align: top;
  line-height: 1.65;
}

.parent-data-table strong {
  color: #315873;
}

@media (max-width: 900px) {
  .parent-data-card {
    margin: 0 18px 24px;
  }
}

/* Section marker untuk halaman login, CBT, dan admin. */
.section-marker{display:flex;align-items:center;gap:10px;width:max-content;margin:0 0 18px;color:#1682c0;font-size:10px;font-weight:800;letter-spacing:.12em;line-height:1.2;text-transform:uppercase}
.section-marker::after{content:'';display:block;width:34px;height:1px;background:linear-gradient(90deg,#55b5ed,transparent)}
.section-marker-number{display:grid;place-items:center;width:28px;height:28px;border:1px solid #b9dff2;border-radius:9px;background:#eaf6ff;color:#1682c0;font-size:10px;letter-spacing:.04em;box-shadow:0 5px 14px rgba(33,139,208,.1)}
.section-marker.compact{gap:8px;margin-bottom:11px;font-size:9px}
.section-marker.compact .section-marker-number{width:24px;height:24px;border-radius:7px}
.card>h1,.card>h2{letter-spacing:-.04em}
.card>h1{font-size:clamp(32px,4.2vw,52px);line-height:1.08}
.card>h2{font-size:clamp(24px,3vw,34px);line-height:1.15}
.card>p.muted{max-width:68ch;line-height:1.8;font-size:14px}
.card,.panel{border-radius:26px}
.section-heading{gap:20px}
.section-heading h2{line-height:1.15}
.auth-visual-copy .section-marker{color:#d6f6ff}
.auth-visual-copy .section-marker-number{border-color:rgba(255,255,255,.3);background:rgba(255,255,255,.1);color:#fff;box-shadow:none}
.auth-form-heading .section-marker{margin-bottom:16px}
.auth-form-heading{margin-top:44px}
@media(max-width:700px){.section-marker{margin-bottom:15px}.section-marker::after{width:24px}.card{padding:22px 18px;border-radius:20px}.auth-form-heading{margin-top:34px}}
