* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: Arial, sans-serif;
  transition: background 0.5s ease;
}

/* Glass Card */
.weather-app {
  width: 360px;
  padding: 25px;
  border-radius: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.weather-app h1 {
  margin-bottom: 15px;
}

/* Input & Button */
input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  margin-bottom: 10px;
  outline: none;
}

button {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

/* Loader */
.loader {
  border: 5px solid rgba(255,255,255,0.3);
  border-top: 5px solid #fff;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  margin: 15px auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Weather Result */
#weatherResult {
  margin-top: 15px;
  font-size: 1.1rem;
}

/* Backgrounds */
.sunny { background: linear-gradient(120deg, #fbc531, #e67e22); }
.cloudy { background: linear-gradient(120deg, #7f8fa6, #576574); }
.rainy { background: linear-gradient(120deg, #4b7bec, #3867d6); }
.snowy { background: linear-gradient(120deg, #dcdde1, #f5f6fa); }

/* Mobile */
@media (max-width: 480px) {
  .weather-app {
    width: 90%;
  }
}
