body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #eef4ff;
  color: #111;
  transition: 0.3s;
}

body.dark {
  background: #111827;
  color: #eee;
}

.weather-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.25;
}

.weather-bg.sunny {
  background: linear-gradient(135deg, #fde68a, #bfdbfe);
}

.weather-bg.cloudy {
  background: linear-gradient(135deg, #d1d5db, #93c5fd);
}

.weather-bg.rainy {
  background: linear-gradient(135deg, #94a3b8, #64748b);
}

.container {
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
}

.weather-card {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

body.dark .weather-card {
  background: rgba(31,41,55,0.75);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-row {
  display: flex;
  gap: 5px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.search-row input {
  flex: 1;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

button {
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

.result p {
  font-size: 18px;
}

canvas {
  width: 100%;
  margin-top: 20px;
}

.forecast {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  overflow-x: auto;
}

.day {
  min-width: 110px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.5);
  text-align: center;
}

.hidden {
  display: none;
}

.error {
  color: #dc2626;
}