* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(to bottom right, #141e30, #243b55);
  color: #fff;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
}

h1 {
  font-size: 28px;
  margin-bottom: 20px;
}

.input-container {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

input[type="text"] {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  outline: none;
  background: #2c2c2c;
  color: #fff;
}

button {
  padding: 10px 15px;
  background: #00bcd4;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
  transition: 0.3s ease;
}

button:hover {
  background: #0097a7;
}

#weather-info {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 15px;
  transition: all 0.3s;
}

.hidden {
  display: none;
}

#error-message {
  color: #ff5252;
  margin-top: 20px;
}

.loader {
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid #00bcd4;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  margin: 15px auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.forecast-cards {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.forecast-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 10px;
  border-radius: 10px;
  width: 90px;
  text-align: center;
}
