body {
  background:
    radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.16), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(99, 102, 241, 0.2), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(20, 184, 166, 0.15), transparent 26%),
    linear-gradient(160deg, #050816 0%, #0b1026 52%, #111830 100%);
  color: #e5ecff;
  min-height: 100vh;
  background-attachment: fixed;
}

.app-navbar {
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.92));
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.45);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.8);
}

.nav-shell {
  border-radius: 12px;
}

.nav-user-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(2, 6, 23, 0.35);
  color: #e2e8f0;
  font-size: 0.86rem;
}

.nav-link-clean {
  color: #cbd5e1 !important;
  font-weight: 500;
}

.nav-link-clean:hover {
  color: #22d3ee !important;
}

.nav-btn {
  min-width: 88px;
}

.app-navbar .btn-light {
  background: linear-gradient(135deg, #0ea5e9, #22d3ee);
  border: none;
  color: #06243a;
  font-weight: 600;
}

.app-navbar .btn-light:hover {
  filter: brightness(1.05);
}

.app-navbar .btn-outline-light {
  border-color: rgba(203, 213, 225, 0.5);
  color: #e2e8f0;
}

.app-navbar .btn-outline-light:hover {
  background: rgba(226, 232, 240, 0.14);
  color: #fff;
}

.theme-toggle {
  font-weight: 600;
}

.hero {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.45), rgba(20, 184, 166, 0.28));
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.26);
  backdrop-filter: blur(10px);
  border-radius: 22px;
  padding: 2.2rem;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.5);
}

.app-card,
.panel,
.stat-card,
.table-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.62));
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.45);
}

.stat-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.6);
}

.stat-label {
  color: #9fb1d4;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: #f8fafc;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.25);
}

.exam-chip {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(99, 102, 241, 0.3));
  border: 1px solid rgba(125, 211, 252, 0.35);
  color: #c7d2fe;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
}

.app-table th {
  font-size: 0.85rem;
  color: #9fb1d4;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom-color: rgba(148, 163, 184, 0.2);
}

.app-table {
  --bs-table-bg: transparent;
  --bs-table-color: #dbeafe;
  --bs-table-striped-bg: rgba(148, 163, 184, 0.06);
  --bs-table-hover-bg: rgba(56, 189, 248, 0.08);
  --bs-table-border-color: rgba(148, 163, 184, 0.16);
}

.app-table td {
  vertical-align: middle;
  color: #dbeafe;
  border-bottom-color: rgba(148, 163, 184, 0.12);
}

.app-table strong {
  color: #f8fafc;
}

.exam-row {
  transition: background-color 0.2s ease;
}

.exam-row:hover {
  background: rgba(56, 189, 248, 0.06);
}

.exam-action-group .exam-action-btn {
  min-width: 74px;
}

.app-alert {
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 8px 16px rgba(2, 6, 23, 0.35);
}

.form-control,
.form-select,
.btn {
  border-radius: 10px;
}

.form-control,
.form-select {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
}

.form-control:focus,
.form-select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 0.2rem rgba(56, 189, 248, 0.2);
  background: rgba(15, 23, 42, 0.86);
  color: #f8fafc;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  border: none;
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.page-title {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #f8fafc;
}

.muted-note {
  color: #a7b6d4;
  font-size: 0.92rem;
}

.futuristic-grid {
  position: relative;
  overflow: hidden;
}

.futuristic-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 95%);
}

.question-jump-btn {
  width: 40px;
  height: 36px;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
}

.question-jump-btn.is-current {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.8);
  color: #f8fafc;
}

.question-jump-btn.is-attempted {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.75);
  color: #d1fae5;
}

.question-jump-btn.is-pending {
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.status-current { background: #38bdf8; box-shadow: 0 0 8px rgba(56, 189, 248, 0.8); }
.status-attempted { background: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
.status-pending { background: #94a3b8; }

.current-question {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35), 0 14px 30px rgba(2, 6, 23, 0.45);
}

@media (max-width: 991px) {
  .nav-shell {
    margin-top: 0.7rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.6);
  }

  .nav-user-pill {
    margin-bottom: 0.35rem;
  }
}

[data-theme="light"] body {
  background:
    radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.12), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(99, 102, 241, 0.1), transparent 30%),
    linear-gradient(180deg, #f6f8ff 0%, #eaf0fb 100%);
  color: #0f172a;
}

[data-theme="light"] .app-navbar {
  background: linear-gradient(120deg, rgba(226, 232, 240, 0.98), rgba(241, 245, 249, 0.95));
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 8px 20px rgba(148, 163, 184, 0.25);
}

[data-theme="light"] .navbar-brand,
[data-theme="light"] .nav-link-clean,
[data-theme="light"] .nav-user-pill {
  color: #0f172a !important;
}

[data-theme="light"] .nav-user-pill {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(148, 163, 184, 0.4);
}

[data-theme="light"] .app-navbar .btn-outline-light {
  color: #1e293b;
  border-color: rgba(71, 85, 105, 0.45);
}

[data-theme="light"] .app-navbar .btn-outline-light:hover {
  background: rgba(30, 41, 59, 0.08);
  color: #0f172a;
}

[data-theme="light"] .app-card,
[data-theme="light"] .panel,
[data-theme="light"] .stat-card,
[data-theme="light"] .table-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.92));
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: 0 12px 24px rgba(148, 163, 184, 0.2);
}

[data-theme="light"] .exam-row:hover {
  background: rgba(29, 78, 216, 0.06);
}

[data-theme="light"] .page-title,
[data-theme="light"] .stat-value,
[data-theme="light"] .app-table td,
[data-theme="light"] .app-table strong {
  color: #0f172a;
  text-shadow: none;
}

[data-theme="light"] .stat-label,
[data-theme="light"] .muted-note,
[data-theme="light"] .app-table th {
  color: #475569;
}

[data-theme="light"] .form-control,
[data-theme="light"] .form-select {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.4);
}

[data-theme="light"] .exam-chip {
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.12), rgba(79, 70, 229, 0.12));
  border: 1px solid rgba(14, 116, 144, 0.35);
  color: #0f172a;
}

[data-theme="light"] .question-jump-btn {
  border-color: rgba(148, 163, 184, 0.45);
  color: #334155;
  background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .question-jump-btn.is-current {
  background: rgba(14, 165, 233, 0.2);
  border-color: rgba(14, 165, 233, 0.8);
  color: #0f172a;
}

[data-theme="light"] .question-jump-btn.is-attempted {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(5, 150, 105, 0.7);
  color: #065f46;
}

[data-theme="light"] .question-jump-btn.is-pending {
  background: rgba(226, 232, 240, 0.9);
  border-color: rgba(148, 163, 184, 0.5);
  color: #334155;
}

[data-theme="light"] .current-question {
  border-color: rgba(14, 165, 233, 0.7);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.28), 0 10px 22px rgba(148, 163, 184, 0.24);
}

[data-theme="light"] .btn-outline-primary {
  color: #1d4ed8;
  border-color: #93c5fd;
}

[data-theme="light"] .btn-outline-primary:hover {
  background: rgba(29, 78, 216, 0.08);
  color: #1e3a8a;
}

[data-theme="light"] .modal-content.app-card .modal-title,
[data-theme="light"] .modal-content.app-card p {
  color: #0f172a;
}

[data-theme="light"] .modal-content .btn-close-white {
  filter: invert(1) grayscale(1);
}

@media (max-width: 991px) {
  .attempt-palette {
    position: static !important;
    top: auto !important;
  }

  .attempt-nav-btns {
    flex-direction: column;
  }

  .attempt-nav-btns .btn {
    width: 100%;
  }
}
