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

body, html {
  width: 100%;
  height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  background: #fff;
  color: #333;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: row;
}

#controls {
  width: 80px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 20px 0;
  flex-shrink: 0;
}

.year-btn {
  padding: 8px;
  border: 1.5px solid #999;
  border-radius: 4px;
  background: transparent;
  color: #666;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  width: 60px;
  text-align: center;
}

.year-btn:hover {
  border-color: #555;
  color: #333;
}

.year-btn.active {
  border-color: #333;
  color: #333;
  font-weight: 600;
  background: transparent;
}

#chart-container {
  flex: 1;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

svg {
  width: 100%;
  height: 100vh;
  display: block;
}

.bar {
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 0.5;
  fill-opacity: 0.85;
  cursor: pointer;
  transition: fill-opacity 0.15s;
}

.missing-bar {
  fill: #111;
  fill-opacity: 0.05;
  stroke: none;
  pointer-events: none;
}

.bar:hover {
  fill-opacity: 1;
  stroke: #333;
  stroke-width: 1;
}

.ref {
  fill: none;
  stroke: rgba(0, 0, 0, 0.08);
}

.ref-zero {
  stroke: rgba(0, 0, 0, 0.2);
}

.ref-label {
  text-anchor: middle;
  font-size: 9px;
  fill: rgba(0, 0, 0, 0.3);
  font-weight: 300;
}

.month-label {
  text-anchor: middle;
  font-size: 11px;
  fill: rgba(0, 0, 0, 0.5);
  font-weight: 500;
}

.month-tick {
  stroke: rgba(0, 0, 0, 0.12);
  stroke-width: 0.5;
}

.title {
  text-anchor: middle;
  font-size: 28px;
  fill: rgba(0, 0, 0, 0.5);
  font-weight: 200;
}

.subtitle {
  text-anchor: middle;
  font-size: 12px;
  fill: rgba(0, 0, 0, 0.35);
  font-weight: 300;
}

.humidity-line {
  fill: none;
  stroke: #4fc3f7;
  stroke-width: 1;
  stroke-opacity: 0.4;
  pointer-events: none;
}

.humidity-line-mean {
  stroke: #4fc3f7;
  stroke-width: 1.5;
  stroke-opacity: 0.7;
}

.humidity-line-max {
  stroke: #81d4fa;
  stroke-width: 1.5;
  stroke-opacity: 0.35;
  stroke-dasharray: 2 2;
}

.humidity-line-min {
  stroke: #0288d1;
  stroke-width: 1.5;
  stroke-opacity: 0.35;
  stroke-dasharray: 2 2;
}

.humidity-line-hover {
  fill: none;
  stroke: transparent;
  stroke-width: 12;
  cursor: crosshair;
}

.hand {
  stroke: rgba(0, 0, 0, 0.25);
  stroke-dasharray: 3 3;
  fill: none;
}

.marker {
  stroke-width: 1.5;
  opacity: 0.4;
  cursor: pointer;
  pointer-events: stroke;
}

.marker:hover {
  opacity: 0.8;
  stroke-width: 2.5;
}

.marker-hot {
  stroke: #e53935;
}

.marker-cold {
  stroke: #1e88e5;
}

.marker-wide {
  stroke: #9c27b0;
}

.marker-nice {
  stroke: #4caf50;
}

.marker-label {
  font-size: 9px;
  font-weight: 600;
  text-anchor: middle;
}

.marker-hot-label {
  fill: #c62828;
}

.marker-cold-label {
  fill: #1565c0;
}

.hand-label {
  font-size: 10px;
  font-weight: 600;
  fill: rgba(0, 0, 0, 0.5);
}

#tooltip {
  position: fixed;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.6;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  backdrop-filter: blur(8px);
  max-width: 220px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#tooltip .date {
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
}

#tooltip .value {
  color: #666;
}

#tooltip .value span {
  color: #222;
  font-weight: 500;
}
