:root {
  --bg: #020617;
  --card: #0f172a;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #38bdf8;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #020617, #0f172a);
  color: var(--text);
}

header {
  padding: 1.5rem 1rem 1rem;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
}

header p {
  margin-top: 0.5rem;
  color: var(--muted);
}

main {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}

.chart-container {
  background: var(--card);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 2rem;
}

.month {
  background: var(--card);
  border-radius: 14px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.month h2 {
  margin: 0;
  padding: 0.8rem 1rem;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
}

.month h2::after {
  content: "▸";
  transition: transform 0.25s ease;
}

.month.open h2::after {
  transform: rotate(90deg);
}

.month-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.month.open .month-content {
  max-height: 4000px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

th,
td {
  padding: 0.45rem;
  text-align: center;
}

th {
  color: var(--muted);
  font-weight: 500;
}

tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

tbody tr {
  transition: background-color 0.05s ease;
}

tbody tr:hover {
  background-color: rgba(56, 189, 248, 0.12);
}

tbody tr.today {
  background-color: rgba(56, 189, 248, 0.18);
  font-weight: 500;
}

tbody tr.today td:first-child::before {
  content: "● ";
  color: var(--accent);
  font-size: 0.7rem;
}

.info-widget {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, #020617, #020617ee);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.info-item {
  font-size: 0.8rem;
}

.info-item span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
}

.diff-positive {
  color: #4ade80;
}

.diff-negative {
  color: #f87171;
}

.daylight-progress {
  position: relative;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.daylight-progress .fill {
  height: 100%;
  background: #38bdf8;
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 6px 0 0 6px;
}

.daylight-progress .marker {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 20px;
  background: #facc15;
  border-radius: 1px;
}


@media (max-width: 700px) {
  table {
    font-size: 0.75rem;
  }
}