* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(to right, #1f1c2c, #928dab);
  font-family: 'Segoe UI', sans-serif;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  min-height: 100vh;
}

.container {
  background: rgba(0, 0, 0, 0.4);
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.search-box {
  margin-bottom: 20px;
}

input {
  padding: 10px;
  width: 60%;
  border: none;
  border-radius: 8px;
  margin-right: 10px;
}

button {
  padding: 10px;
  margin-top: 10px;
  border: none;
  background-color: #3498db;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background-color: #2980b9;
}

.weather-box, .forecast-container {
  margin-top: 20px;
  font-size: 18px;
}

.weather-box img, .forecast-card img {
  width: 50px;
  height: 50px;
}

.forecast-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.forecast-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 8px;
}
.input-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.input-group button {
  padding: 10px;
  border: none;
  background-color: #2ecc71;
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

.input-group button:hover {
  background-color: #27ae60;
}
.loader {
  border: 6px solid rgba(255, 255, 255, 0.2);
  border-top: 6px solid #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 10px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
