:root {
  --bg: #0f172a;
  --panel: #111827;
  --panel-alt: #1f2937;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.15);
  --danger: #ef4444;
  --border: rgba(148, 163, 184, 0.22);
  --font: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 32%),
    linear-gradient(180deg, #020617 0%, #0f172a 100%);
  color: var(--text);
}

a {
  color: #86efac;
  text-decoration: none;
}

.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  padding: 24px;
  border-right: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(12px);
}

.brand {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.brand-copy {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav {
  display: grid;
  gap: 10px;
}

.nav a {
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text);
}

.nav a:hover {
  background: var(--accent-soft);
  border-color: rgba(34, 197, 94, 0.25);
}

.main {
  padding: 28px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}

.page-header h1 {
  margin: 0;
  font-size: 2rem;
}

.page-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: rgba(17, 24, 39, 0.82);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.metric {
  font-size: 2rem;
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

form {
  display: grid;
  gap: 10px;
}

input,
select,
textarea,
button {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-alt);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

button {
  cursor: pointer;
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: #052e16;
  font-weight: 700;
}

button.secondary {
  background: rgba(148, 163, 184, 0.18);
  color: var(--text);
}

button.danger {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: white;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #bbf7d0;
  font-size: 0.82rem;
}

.winner {
  color: #facc15;
  font-weight: 700;
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .grid.cols-2,
  .grid.cols-4 {
    grid-template-columns: 1fr;
  }
}

