/* Reset + base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, Arial, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #87cefa, #6a9cfb);
  transition: background 0.4s ease;
}

/* Main card */
.weather-app {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 28px 32px;
  border-radius: 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.weather-app h1 {
  font-size: 1.9rem;
  margin-bottom: 16px;
}

/* Input box */
#cityInput {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid #d3d3d3;
  margin: 14px 0 10px;
  outline: none;
  transition: 0.25s;
}

#cityInput:focus {
  border-color: #6a9cfb;
  box-shadow: 0 0 0 2px rgba(106, 156, 251, 0.25);
}

/* Buttons */
button {
  padding: 10px 18px;
  margin-top: 8px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: #6a9cfb;
  color: white;
  transition: 0.25s;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(106, 156, 251, 0.35);
}

/* Use my location button */
#geoBtn {
  margin-left: 6px;
  background: #42b883;
}

#geoBtn:hover {
  box-shadow: 0 10px 18px rgba(66, 184, 131, 0.35);
}

/* Output box */
#weatherResult {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: #f5f7ff;
  line-height: 1.5;
}

/* Loading message */
#loading {
  margin-top: 12px;
  color: #555;
}

/* Toggle switch styles */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  margin-top: 6px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cfcfcf;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #222;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* Dark Mode (we'll enable in JS later) */
body.dark {
  background: linear-gradient(135deg, #0f172a, #020617);
}

body.dark .weather-app {
  background: rgba(20, 24, 35, 0.92);
  color: #e5e7eb;
}

body.dark #cityInput {
  background: #0f172a;
  color: #e5e7eb;
  border-color: #1f2937;
}

body.dark #weatherResult {
  background: #111827;
  color: #e5e7eb;
}

