:root {
  --bg-color: #121212;
  --surface-color: #1c1c1c;
  --hover-color: #262626;
  --accent-color: #2e2e2e;
  --text-color: #e0e0e0;
  --muted-text: #888888;
  --progress-fill: #6aa96f;
  --radius: 8px;
  --transition: 0.4s ease;
}

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

title {
  flex: 1;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--text-color);
  text-align: center;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

.goal-small {
  font-size: 0.9em;
  color: #39CBED;
}

.container {
  width: 100%;
  max-width: 2000px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.row {
  background: var(--surface-color);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  transition: background var(--transition);
}

.row:hover {
  background: var(--hover-color);
}

.row.complete {
  background: var(--accent-color) !important;
}

.row.complete .label,
.row.complete .count {
  color: var(--text-color) !important;
}

.label {
  flex: 1;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text-color);
}

.bar {
  flex: 2;
  height: 0.75rem;
  background: #2a2a2a;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 1rem;
}

.fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--progress-fill) 0%, #7bbc85 100%);
  border-radius: var(--radius);
  transition: width var(--transition);
}

.count {
  font-weight: 600;
  color: var(--progress-fill);
  margin-left: 1rem;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}

#heatmap-container {
  width: 100%;
  max-width: 2000px;
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--surface-color);
  border-radius: var(--radius);
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 0.5rem;
  align-items: center;
}

.heatmap-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.heatmap-node {
  height: 40px;
  width: 40px;
  border-radius: var(--radius);
  transition: background-color var(--transition);
}

.heatmap-label {
  text-align: center;
  font-size: 0.7rem;
  color: var(--muted-text);
  padding-top: 0.25rem;
}

.split-container {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  max-width: 2000px;
}

.side {
  flex: 1;
  min-width: 0;
  background: var(--surface-color);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.side-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 1rem;
}

@media (max-width: 800px) {
  .split-container {
    flex-direction: column;
    gap: 2rem;
  }

  .side {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}