:root {
  --exam-shell-bg: #f6f8fb;
  --exam-surface: #ffffff;
  --exam-border: #e6ebf1;
  --exam-heading: #313a46;
  --exam-text: #6c757d;
  --exam-primary: #64c5b1;
  --exam-primary-dark: #469788;
  --exam-blue: #4489e4;
}

body {
  background: var(--exam-shell-bg);
}

.adminox-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.adminox-brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--exam-primary) 0%, var(--exam-blue) 100%);
  color: #fff;
  font-weight: 700;
  line-height: 1;
}

.adminox-brand-title {
  display: block;
  color: var(--exam-heading);
  font-weight: 700;
}

.adminox-brand-subtitle {
  display: block;
  color: #98a6ad;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.adminox-logo {
  padding-inline: 24px;
}

.adminox-user-panel {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1rem 1rem 1.5rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--exam-border);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(49, 58, 70, 0.05);
}

.adminox-page-body {
  padding-top: 24px;
  padding-bottom: 24px;
}

.adminox-page-kicker {
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
}

.adminox-guest-shell .topbar {
  background: #fff;
}

.adminox-guest-content {
  min-height: calc(100vh - 70px);
}

.landing-page {
  padding-bottom: 1rem;
}

.landing-hero-image {
  min-height: 420px;
  background-image: linear-gradient(105deg, rgba(21, 32, 56, 0.88), rgba(21, 32, 56, 0.44)), url('/adminox/images/big/img-1.jpg');
  background-size: cover;
  background-position: center;
}

.landing-hero-overlay {
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
}

.landing-hero-copy {
  max-width: 620px;
  color: #fff;
}

.landing-hero-subjects {
  width: min(420px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.hero-subject-card {
  padding: 1rem 1rem 1.05rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 40px rgba(8, 15, 30, 0.16);
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.hero-subject-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: #1f2937;
}

.hero-subject-card-math .hero-subject-icon {
  background: rgba(68, 137, 228, 0.14);
  color: #2563eb;
}

.hero-subject-card-physics .hero-subject-icon {
  background: rgba(6, 182, 212, 0.14);
  color: #0891b2;
}

.hero-subject-card-biology .hero-subject-icon {
  background: rgba(34, 197, 94, 0.14);
  color: #15803d;
}

.hero-subject-card-chemistry .hero-subject-icon {
  background: rgba(168, 85, 247, 0.14);
  color: #7c3aed;
}

.hero-subject-title {
  font-size: 1rem;
  font-weight: 800;
  color: #1f2937;
}

.hero-subject-text {
  margin-top: 0.3rem;
  font-size: 0.83rem;
  line-height: 1.55;
  color: #64748b;
}

.landing-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--exam-primary-dark);
}

.landing-hero-copy .landing-eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.landing-title {
  margin-top: 1rem;
  color: #fff !important;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
}

.landing-subtitle {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.board-card {
  border: 1px solid var(--exam-border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
  text-align: center;
}

.board-card-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--exam-heading);
}

.board-card-code {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8391a2;
}

.board-card-cambridge {
  box-shadow: inset 0 0 0 1px rgba(203, 113, 0, 0.08);
}

.board-card-edexcel {
  box-shadow: inset 0 0 0 1px rgba(68, 137, 228, 0.08);
}

.board-card-aqa {
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.08);
}

.board-card-ocr {
  box-shadow: inset 0 0 0 1px rgba(100, 197, 177, 0.08);
}

.subject-landing-card {
  border: 1px solid var(--exam-border);
  border-radius: 1.5rem;
  background: #fff;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(49, 58, 70, 0.06);
}

.subject-landing-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--exam-heading);
  font-size: 1.75rem;
}

.subject-landing-badge {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(100, 197, 177, 0.12);
  color: var(--exam-primary-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.landing-info-card {
  overflow: hidden;
  border: 1px solid var(--exam-border);
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(49, 58, 70, 0.06);
}

.landing-info-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.landing-info-body {
  padding: 1.5rem;
}

.landing-info-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--exam-heading);
}

.landing-info-text {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #687281;
}

.sidenav-menu {
  box-shadow: 8px 0 30px rgba(49, 58, 70, 0.05);
}

.side-nav .side-nav-link.active {
  background: rgba(100, 197, 177, 0.14);
  color: var(--exam-primary-dark);
}

.side-nav .side-nav-link.active i,
.side-nav .side-nav-link:hover,
.side-nav .side-nav-link:hover i {
  color: var(--exam-primary-dark);
}

.page-title {
  color: var(--exam-heading);
  font-weight: 700;
}

.page-content,
.content {
  background: transparent;
}

.app-topbar {
  box-shadow: 0 8px 24px rgba(49, 58, 70, 0.08);
}

.button-toggle-menu {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.35rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidenav-menu .logo.logo-light {
  display: flex;
  align-items: center;
}

.sidenav-menu .logo .logo-lg,
.sidenav-menu .logo .logo-sm {
  display: inline-flex;
  align-items: center;
}

.alert {
  border: 0;
  box-shadow: 0 10px 24px rgba(49, 58, 70, 0.08);
}

.btn-light.active {
  color: var(--exam-primary-dark);
  background-color: rgba(100, 197, 177, 0.12);
  border-color: rgba(100, 197, 177, 0.24);
}

.auth-submit-btn {
  background: var(--exam-primary-dark) !important;
  border: 1px solid var(--exam-primary-dark) !important;
  color: #fff !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-submit-btn:hover,
.auth-submit-btn:focus {
  background: #3f8c7e !important;
  border-color: #3f8c7e !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(70, 151, 136, 0.22);
}

.card,
.tw-card {
  border: 1px solid var(--exam-border);
  box-shadow: 0 8px 24px rgba(49, 58, 70, 0.05);
}

.shadow-soft {
  box-shadow: 0 10px 30px rgba(49, 58, 70, 0.08);
}

.sample-question,
.rounded-\[2rem\],
.rounded-\[1\.75rem\],
.rounded-3xl {
  border-color: var(--exam-border) !important;
}

.text-brand-900,
.text-brand-700,
.text-ink,
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--exam-heading);
}

.bg-brand-900 {
  background-color: var(--exam-primary-dark) !important;
}

.bg-brand-50 {
  background-color: rgba(100, 197, 177, 0.12) !important;
}

.bg-white\/95,
.bg-white {
  background-color: #fff !important;
}

.bg-slate-50 {
  background-color: #f8fafc !important;
}

.text-brand-700 {
  color: var(--exam-primary-dark) !important;
}

.border-slate-200,
.border-slate-100,
.border {
  border-color: var(--exam-border) !important;
}

.text-slate-700 {
  color: #596272 !important;
}

.text-slate-600,
.text-slate-500,
.text-muted {
  color: #98a6ad !important;
}

.text-white {
  color: #fff !important;
}

.bg-accent {
  background-color: var(--exam-blue) !important;
}

.hover\:border-brand-300:hover {
  border-color: rgba(100, 197, 177, 0.45) !important;
}

.hover\:-translate-y-1:hover {
  transform: translateY(-4px);
}

.transition {
  transition: all 0.2s ease;
}

.form-control,
input:not([type=checkbox]):not([type=radio]):not([type=file]),
select,
textarea {
  border-radius: 0.7rem;
}

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

.table thead th {
  color: #8391a2;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge.bg-label-primary {
  background: rgba(100, 197, 177, 0.12) !important;
  color: var(--exam-primary-dark) !important;
}

@media (max-width: 991.98px) {
  .adminox-guest-shell .navbar-header,
  .navbar-header {
    gap: 1rem;
  }

  .adminox-guest-shell .navbar-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-hero-overlay {
    min-height: 320px;
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-hero-subjects {
    width: 100%;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .adminox-guest-content .container-fluid,
  .adminox-page-body {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .adminox-guest-shell .topbar {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .adminox-brand {
    gap: 0.65rem;
  }

  .adminox-brand-mark {
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.65rem;
    font-size: 0.95rem;
  }

  .adminox-brand-title {
    font-size: 0.98rem;
  }

  .adminox-brand-subtitle {
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }

  .adminox-guest-shell .navbar-header .btn {
    padding: 0.45rem 0.75rem;
    font-size: 0.82rem;
  }

  .landing-page {
    padding-bottom: 0.25rem;
  }

  .landing-hero {
    border-radius: 1.25rem !important;
  }

  .landing-hero-image,
  .landing-hero-overlay {
    min-height: auto;
  }

  .landing-hero-overlay {
    gap: 1.15rem;
    padding: 1rem;
  }

  .landing-title {
    margin-top: 0.65rem;
    font-size: 1.6rem;
    line-height: 1.2;
  }

  .landing-subtitle {
    margin-top: 0.7rem;
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .landing-hero-copy .btn,
  .landing-page .btn-lg {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
  }

  .landing-hero-copy .mt-4.flex {
    gap: 0.65rem !important;
  }

  .hero-subject-card {
    gap: 0.7rem;
    padding: 0.8rem 0.85rem;
    border-radius: 1rem;
  }

  .hero-subject-icon {
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 0.75rem;
    font-size: 1.05rem;
  }

  .hero-subject-title {
    font-size: 0.92rem;
  }

  .hero-subject-text {
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .board-card,
  .subject-landing-card,
  .landing-info-card {
    border-radius: 1.15rem;
  }

  .board-card,
  .subject-landing-card,
  .landing-info-body {
    padding: 1rem;
  }

  .board-card-name {
    font-size: 1rem;
  }

  .board-card-code,
  .subject-landing-badge {
    font-size: 0.68rem;
  }

  .subject-landing-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    font-size: 1.35rem;
  }

  .subject-landing-card h3,
  .landing-page .text-2xl {
    font-size: 1.25rem !important;
    line-height: 1.3;
  }

  .landing-page .text-3xl {
    font-size: 1.45rem !important;
    line-height: 1.3;
  }

  .landing-page .max-w-3xl,
  .landing-page .max-w-7xl {
    max-width: 100%;
  }

  .landing-info-image {
    height: 140px;
  }

  .landing-info-title {
    font-size: 1.12rem;
  }

  .landing-info-text {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .space-y-6 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 1rem;
  }

  .space-y-8 > :not([hidden]) ~ :not([hidden]) {
    margin-top: 1.25rem;
  }

  .rounded-\[2rem\],
  .rounded-\[1\.75rem\],
  .rounded-3xl {
    border-radius: 1.1rem !important;
  }

  .rounded-2xl {
    border-radius: 0.9rem !important;
  }

  .rounded-full {
    border-radius: 9999px !important;
  }

  .p-8,
  .p-7,
  .p-6 {
    padding: 1rem !important;
  }

  .p-5 {
    padding: 0.9rem !important;
  }

  .px-6 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .px-5 {
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
  }

  .px-4 {
    padding-left: 0.8rem !important;
    padding-right: 0.8rem !important;
  }

  .py-5,
  .py-4 {
    padding-top: 0.9rem !important;
    padding-bottom: 0.9rem !important;
  }

  .py-3 {
    padding-top: 0.7rem !important;
    padding-bottom: 0.7rem !important;
  }

  .mt-8 {
    margin-top: 1.25rem !important;
  }

  .mt-7,
  .mt-6,
  .mt-5 {
    margin-top: 1rem !important;
  }

  .mt-4 {
    margin-top: 0.85rem !important;
  }

  .mt-3 {
    margin-top: 0.7rem !important;
  }

  .gap-6 {
    gap: 1rem !important;
  }

  .gap-5,
  .gap-4 {
    gap: 0.85rem !important;
  }

  .text-4xl {
    font-size: 1.65rem !important;
    line-height: 1.25 !important;
  }

  .text-3xl {
    font-size: 1.4rem !important;
    line-height: 1.25 !important;
  }

  .text-2xl {
    font-size: 1.18rem !important;
    line-height: 1.3 !important;
  }

  .text-xl {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
  }

  .text-lg {
    font-size: 0.98rem !important;
  }

  .text-base {
    font-size: 0.92rem !important;
  }

  .text-sm {
    font-size: 0.84rem !important;
    line-height: 1.5 !important;
  }

  .text-xs {
    font-size: 0.7rem !important;
  }

  .leading-7,
  .leading-6 {
    line-height: 1.55 !important;
  }

  .grid.md\:grid-cols-2,
  .grid.md\:grid-cols-4,
  .grid.lg\:grid-cols-3,
  .grid.lg\:grid-cols-\[1fr_0\.9fr\],
  .grid.xl\:grid-cols-4 {
    grid-template-columns: 1fr !important;
  }

  .d-flex.flex-column.flex-lg-row,
  .d-flex.flex-column.flex-lg-row.justify-content-between {
    align-items: stretch !important;
  }

  .table thead th,
  .table tbody td {
    white-space: nowrap;
  }

  .sample-question .flex.items-center.justify-between,
  .sample-question .flex.flex-wrap.items-center,
  .space-y-6 .flex.items-center.justify-between {
    gap: 0.55rem;
  }

  .app-topbar .navbar-header {
    min-height: auto;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
  }

  .app-topbar .page-title {
    font-size: 1rem;
  }

  .adminox-user-panel {
    margin: 0.75rem;
    padding: 0.8rem;
    border-radius: 0.9rem;
  }

  .sidenav-menu .side-nav .side-nav-link {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .btn,
  button,
  .check-answer,
  .reveal-answer {
    font-size: 0.9rem;
  }

  .card,
  .tw-card {
    border-radius: 1rem;
  }

  .table-responsive {
    font-size: 0.88rem;
  }

  .form-control,
  input:not([type=checkbox]):not([type=radio]):not([type=file]),
  select,
  textarea {
    font-size: 0.95rem;
    padding: 0.65rem 0.8rem;
  }
}
