﻿:root {
  --bg: #f5f1ea;
  --ink: #202022;
  --muted: #6b6b6b;
  --accent: #1f6f8b;
  --accent-2: #e07a5f;
  --card: #ffffff;
  --shadow: rgba(32, 32, 34, 0.12);
  --radius: 16px;
  font-family: "Source Serif 4", "Source Serif Pro", "Georgia", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 20% 20%, #fdf8f1 0%, #f5f1ea 50%, #efe6da 100%);
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  display: grid;
  gap: 24px;
}

.hero {
  display: grid;
  gap: 16px;
  align-items: end;
  grid-template-columns: 1fr;
}

.hero h1 {
  margin: 0 0 6px 0;
  font-size: 2.4rem;
  letter-spacing: 0.5px;
}

.hero p {
  margin: 0;
  color: var(--muted);
}

.actions {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.actions label {
  font-size: 0.9rem;
  color: var(--muted);
}

.actions select,
.actions button {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d2c8bb;
  background: #fff;
  font-size: 1rem;
}

.actions button {
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  border: none;
}

.actions button.ghost {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 10px 30px var(--shadow);
}

.subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.chart {
  width: 100%;
  height: 420px;
}

.no-data {
  padding: 16px;
  color: var(--muted);
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
}

#dataTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

#dataTable th,
#dataTable td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #eee1d6;
}

#dataTable th {
  color: var(--muted);
  font-weight: 600;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr auto;
  }
  .actions {
    justify-items: end;
  }
}
