* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #7ee8fa, #80ff72);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.6s ease;
}

.app {
  background: #fff;
  width: 320px;
  padding: 25px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

input {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.controls {
  display: flex;
  gap: 10px;
  justify-content: center;
}

button {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: #4f8cff;
  color: #fff;
  cursor: pointer;
}

#weatherResult {
  margin-top: 15px;
}

#weatherResult img {
  width: 70px;
}

.loader {
  margin: 15px auto;
  width: 30px;
  height: 30px;
  border: 4px solid #ccc;
  border-top: 4px solid #4f8cff;
  border-radius: 50%;
}

.hidden {
  display: none;
}

#recent {
  margin-top: 15px;
  font-size: 13px;
  color: #555;
}

/* Weather backgrounds */
.sunny {
  background: linear-gradient(135deg, #fceabb, #f8b500);
}
.rainy {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}
.cold {
  background: linear-gradient(135deg, #cfd9df, #e2ebf0);
}
