body {
  font-family: Arial, sans-serif;
  margin: 20px;
  background-color: #f5f5f5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1 {
  text-align: center;
  color: #333;
}

.controls {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.controls label {
  font-weight: bold;
}

.controls select, .controls button {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.controls button {
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
  border: none;
}

.controls button:hover {
  background-color: #45a049;
}

.chart-container {
  margin-bottom: 40px;
}

.chart-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #555;
}

.line {
  fill: none;
  stroke-width: 2px;
}

.temperature-line {
  stroke: #ff6b6b;
}

.humidity-line {
  stroke: #4ecdc4;
}

.axis {
  font-size: 12px;
}

.grid line {
  stroke: #e0e0e0;
  stroke-opacity: 0.7;
}

.grid path {
  stroke-width: 0;
}

.tooltip {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px;
  border-radius: 4px;
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
}

.legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-color {
  width: 20px;
  height: 3px;
}

.error {
  color: #d32f2f;
  padding: 10px;
  background-color: #ffebee;
  border-radius: 4px;
  margin-bottom: 10px;
}
