:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020617;
  color: #e2e8f0;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.12), transparent 30%),
    #020617;
}
.page-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}
.header-shell {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(14px);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.header-title strong {
  display: block;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.header-title span {
  display: block;
  color: #94a3b8;
  margin-top: 0.35rem;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
a {
  text-decoration: none;
  color: inherit;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.15rem;
  border-radius: 0.95rem;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.primary {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
}
.secondary {
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
}
.primary:hover,
.secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
}
.main-content {
  display: grid;
  gap: 1.25rem;
}
.hero-card,
.dashboard-card,
.login-card {
  background: rgba(15, 23, 42, 0.94);
  padding: 1.75rem;
  border-radius: 1.5rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.24);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.hero-card h1,
.dashboard-card h2,
.dashboard-card h3,
.login-card h2,
.section-title h2 {
  margin: 0;
}
.hero-card p,
.dashboard-card p,
.login-card p,
.section-title p {
  margin-top: 0.75rem;
  color: #cbd5e1;
}
.button-row,
.button-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.button-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.section-title {
  border-left: 4px solid #6366f1;
  padding-left: 1rem;
}
.top-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.large-number {
  font-size: 2.3rem;
  margin: 1rem 0 0;
}
.table-shell {
  overflow-x: auto;
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.12);
  padding: 1rem;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
 td {
  text-align: left;
  padding: 0.95rem 0.85rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}
th {
  font-size: 0.95rem;
  color: #94a3b8;
}
tbody tr:hover {
  background: rgba(148, 163, 184, 0.05);
}
label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
  color: #e2e8f0;
}
input {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.82);
  color: #e2e8f0;
}
input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}
.form-error {
  color: #fda4af;
  min-height: 1.25rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.15);
  color: #e0e7ff;
  font-size: 0.95rem;
}
.page-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}
@media (max-width: 720px) {
  .header-inner,
  .button-row,
  .site-nav,
  .page-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .button-row {
    grid-template-columns: 1fr;
  }
}
