.admin-page {
  min-height: 100vh;
  background:
    url("assets/cloud.png") 8% 18% / 150px auto no-repeat,
    url("assets/cloud.png") 88% 12% / 120px auto no-repeat,
    linear-gradient(180deg, #45b9ef, #0b51bd 55%, #042e77);
}

.admin-page .nav {
  position: static;
  display: flex;
  min-width: auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.admin-shell {
  min-height: calc(100vh - 64px);
  padding: clamp(28px, 7vw, 80px) clamp(18px, 6vw, 80px);
}

.login-card,
.dashboard {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.login-card {
  max-width: 560px;
  padding: clamp(24px, 5vw, 42px);
  border-radius: 8px;
  color: var(--white);
  background: rgba(4, 46, 119, 0.88);
  box-shadow: var(--shadow);
}

.login-card p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
}

.login-card h1 {
  max-width: 100%;
  font-size: clamp(2.05rem, 5vw, 3rem);
  line-height: 1;
}

.code-form {
  display: grid;
  gap: 16px;
}

.code-form label {
  color: var(--white);
  font-weight: 900;
}

.code-form input {
  width: 100%;
  margin-top: 8px;
  padding: 14px 12px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.2em;
}

.hidden {
  display: none;
}

.dashboard {
  color: var(--ink);
}

.dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-head h1 {
  max-width: 100%;
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  line-height: 1;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.stat-card {
  padding: 20px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 2.5rem;
  line-height: 1;
}

.stat-card.yes strong {
  color: var(--green);
}

.stat-card.no strong {
  color: var(--red);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e9f2;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--blue-dark);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #f4f8ff;
}

td {
  color: #263142;
}

.empty-state {
  margin: 0;
  padding: 22px;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 760px) {
  .dashboard-head {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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