* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Body */
body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  transition: background 0.5s ease;
  padding: 15px;
}

/* Container */
.container {
  text-align: center;
  width: 100%;
  max-width: 400px;
}

/* Title */
h1 {
  color: white;
  margin-bottom: 20px;
}

/* Search box */
.search-box {
  display: flex;
  flex-wrap: wrap;   /* ✅ FIX */
  gap: 10px;
  margin-bottom: 15px;
}

/* Input */
input {
  flex: 1 1 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  outline: none;
}

/* Buttons */
button {
  flex: 1 1 30%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #ff7eb3;
  color: white;
  cursor: pointer;
  transition: 0.3s;
  font-size: 14px;
}

button:hover {
  background: #ff4f9a;
}

button:active {
  transform: scale(0.95);
}

/* Weather Card */
.card {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  display: none;
  margin-top: 10px;
}

/* Main Icon */
.main-icon {
  width: 100px;
}

/* Forecast */
.forecast-container {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-top: 10px;
  padding-bottom: 5px;
}

.forecast-item {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  padding: 10px;
  border-radius: 12px;
  min-width: 90px;
  text-align: center;
}

.forecast-item img {
  width: 50px;
}

/* Dark Mode */
.dark {
  background: linear-gradient(135deg, #1e1e1e, #2c3e50);
}

.dark .card {
  background: #2c2c2c;
  color: white;
}

.dark input {
  background: #444;
  color: white;
}

.dark button {
  background: #555;
}

.dark .forecast-item {
  background: rgba(50, 50, 50, 0.9);
  color: white;
}

/* 📱 Mobile */
@media (max-width: 600px) {
  h1 {
    font-size: 22px;
  }

  button {
    flex: 1 1 100%;
  }

  .main-icon {
    width: 70px;
  }
}