body {
  font-family: system-ui, sans-serif;
  background: #0f1115;
  color: #e6e6e6;
  margin: 0;
  padding: 2rem;
}

main {
  max-width: 900px;
  margin: auto;
}

h1 {
  margin-bottom: 0;
}

.subtitle {
  opacity: 0.6;
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: #161a22;
  border-radius: 12px;
  padding: 1rem;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  opacity: 0.8;
}

.value {
  font-size: 1.6rem;
  font-weight: bold;
}

.footer {
  margin-top: 2rem;
  opacity: 0.4;
  font-size: 0.9rem;
}

.charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
canvas {
  background: #0f0f14;
  border-radius: 12px;
  padding: 12px;
}

.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 6px;
}

.uid {
  font-family: monospace;
}

.count {
  font-weight: 600;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 220px;
  background: #0f172a;
  color: white;
  padding: 20px;
}

.logo {
  margin-bottom: 24px;
  font-size: 1.4rem;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-btn {
  background: transparent;
  border: none;
  color: #cbd5f5;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  font-size: 1rem;
}

.nav-btn:hover {
  background: #1e293b;
}

.nav-btn.active {
  background: #334155;
  color: white;
}

/* Pages */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* Main spacing */
main {
  flex: 1;
  padding: 24px;
}

.value.ok {
  color: #22c55e;
}

.value.warn {
  color: #facc15;
}

.value.bad {
  color: #ef4444;
}
