/* ==================== Admin Login ==================== */
.auth-page {
  background: radial-gradient(circle at top left, var(--va-navy-light), var(--va-navy) 65%);
}

.auth-card-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--va-white);
  border-radius: var(--va-radius);
  box-shadow: var(--va-shadow-lg);
  padding: 2.5rem 2rem 2rem;
}

.auth-card .brand-logo { justify-content: center; }
.auth-card .brand-wordmark { text-align: center; }

.auth-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--va-navy);
  margin-bottom: .25rem;
}

.auth-subtitle {
  color: var(--va-text-muted);
  font-size: .9rem;
  margin-bottom: 1.75rem;
}

.auth-card .form-label { font-weight: 500; font-size: .875rem; }
.auth-card .input-group-text { background: #fff; border-right: 0; color: var(--va-text-muted); }
.auth-card .form-control { border-left: 0; }
.auth-card .form-control:focus { box-shadow: none; border-color: var(--va-navy-light); }
.auth-card .input-group:focus-within .input-group-text { border-color: var(--va-navy-light); }

.auth-footer {
  font-size: .75rem;
  color: var(--va-text-muted);
  margin-top: 1.75rem;
  margin-bottom: 0;
}

/* ==================== Admin Shell ==================== */
.admin-shell { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 250px;
  flex-shrink: 0;
  background: var(--va-navy);
  color: #fff;
}

.admin-sidebar-brand { padding: 1.5rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-sidebar-brand .brand-wordmark,
.admin-sidebar-brand .brand-wordmark-accent { color: #fff; }
.admin-sidebar-brand .brand-wordmark small { color: rgba(255,255,255,.55); }
/* The logo artwork's wordmark text is navy, same as this sidebar's
   background — a light chip keeps the full-color logo legible without
   recoloring/distorting the image itself (same fix as the public footer). */
.admin-sidebar-brand .brand-logo {
  display: inline-flex;
  background: #fff;
  border-radius: var(--va-radius-sm, 10px);
  padding: .5rem .75rem;
}

.admin-nav { padding: .75rem 0; }
.admin-nav .nav-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem 1.25rem;
  color: rgba(255,255,255,.75);
  font-size: .92rem;
  border-left: 3px solid transparent;
}
.admin-nav .nav-link i { font-size: 1.05rem; width: 1.2rem; }
.admin-nav .nav-link:hover:not(.disabled) { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav .nav-link.active {
  background: rgba(255, 153, 51, .12);
  color: #fff;
  border-left-color: var(--va-saffron);
}
.admin-nav .nav-link.disabled { opacity: .4; cursor: not-allowed; }

/* Final Phase-1 admin wrap-up — grouped nav section labels (Academic /
   Users & Payments / Content / Future CMS) + a small "Soon" tag on
   still-disabled items, additive only, no existing rule changed. */
.admin-nav-section-label {
  padding: .9rem 1.25rem .35rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.admin-nav-soon {
  margin-left: auto;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.7);
  padding: .1rem .4rem;
  border-radius: 4px;
}

.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.admin-topbar {
  background: #fff;
  box-shadow: var(--va-shadow);
  padding: .85rem 1.5rem;
}

.admin-menu-toggle { color: var(--va-navy); padding: 0; }
.admin-user-name { font-size: .9rem; color: var(--va-text); }

.admin-content { flex: 1; padding: 1.5rem; padding-bottom: 5rem; }

.page-title { font-size: 1.4rem; font-weight: 700; color: var(--va-navy); margin-bottom: .15rem; }
.page-subtitle { color: var(--va-text-muted); margin-bottom: 0; }

/* ---- Module cards on the dashboard shell ---- */
.module-card {
  border-radius: var(--va-radius);
  display: block;
  color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}
.module-card:not(.disabled):hover { box-shadow: var(--va-shadow-lg); transform: translateY(-2px); color: inherit; }
.module-card.disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.module-icon { font-size: 1.8rem; color: var(--va-navy-light); margin-bottom: .5rem; display: block; }
.module-name { font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.module-badge { background: var(--va-bg); color: var(--va-text-muted); font-weight: 500; font-size: .7rem; }

/* ==================== Mobile bottom navigation ==================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--va-border);
  display: flex;
  justify-content: space-around;
  padding: .5rem 0;
  z-index: 1030;
}

.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: .68rem;
  color: var(--va-text-muted);
  gap: .15rem;
}
.mobile-bottom-nav a i { font-size: 1.15rem; }
.mobile-bottom-nav a.active { color: var(--va-navy); }
.mobile-bottom-nav a.disabled { opacity: .4; pointer-events: none; }

@media (max-width: 767.98px) {
  .admin-content { padding: 1rem 1rem 5.5rem; }
}

/* ====================================================================
   A10 — Admin Dashboard, Reports & Public Result Declaration
   Built purely from the existing --va-* design tokens (see app.css'
   :root) — no new colors introduced. Admin surfaces in this project
   have never had a dark-theme variant (that toggle is scoped to
   body.public-body only), so none is added here either.
   ==================================================================== */

.report-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
}

@media (min-width: 576px) {
  .report-stat-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1200px) {
  .report-stat-grid { grid-template-columns: repeat(8, 1fr); }
}

.report-stat-card {
  background: var(--va-white);
  border: 1px solid var(--va-border);
  border-radius: var(--va-radius);
  padding: 1.1rem 1rem;
  text-align: center;
}

.report-stat-icon { font-size: 1.5rem; color: var(--va-navy-light); display: block; margin-bottom: .4rem; }
.report-stat-icon.is-live { color: var(--va-green); }
.report-stat-icon.is-declared { color: var(--va-saffron); }

.report-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--va-navy); line-height: 1.15; }
.report-stat-label { font-size: .78rem; color: var(--va-text-muted); text-transform: uppercase; letter-spacing: .02em; margin-top: .15rem; }
.report-stat-note { font-size: .7rem; color: var(--va-text-muted); margin-top: .15rem; }

/* Report tables reuse .va-card + Bootstrap's table classes already used
   by every other admin list (see templates/admin/tests/list.html) — no
   new table styling needed beyond the stat cards/badges above. */
