:root {
  --bg: #0d1117;
  --surface: #161b22;
  --border: #30363d;
  --text: #c9d1d9;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #79c0ff;
  --success: #3fb950;
  --error: #f85149;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 2rem;
  min-height: 100vh;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

/* Typography */
h1 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.index h1 {
  color: var(--accent);
}

.endpoint h1 {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.provider {
  color: var(--accent);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.back:hover {
  color: var(--accent);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr:hover {
  background: var(--surface);
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.date {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Sections */
.endpoints-section {
  margin-bottom: 3rem;
}

.endpoints-section h2 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.endpoints-section h2 .count {
  color: var(--text-muted);
  font-weight: 400;
}

.endpoints-section.inactive {
  opacity: 0.7;
}

.endpoints-section.inactive h2 {
  color: var(--text-muted);
}

/* Stats */
.stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: 6px;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Prompt display */
.prompt code {
  background: var(--surface);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-size: 0.8125rem;
}

/* Status colors */
.success {
  color: var(--success);
}

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

.loading {
  color: var(--text-muted);
  font-style: italic;
}

/* Chart */
.chart {
  background: var(--surface);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 2rem;
  min-height: 300px;
}

.chart .loading,
.chart .no-data {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 280px;
}

/* Footer */
footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
}
