* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(to right, #4facfe, #00f2fe);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.app {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  overflow: hidden;
}

.title {
  font-size: 28px;
  margin-bottom: 15px;
  color: #fff;
}

.search-box {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.search-box input {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 16px;
}

.search-box button {
  margin-left: 10px;
  padding: 10px 15px;
  border: none;
  border-radius: 10px;
  background: #4facfe;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}

.search-box button:hover {
  background: #00c6ff;
}

.location-btn {
  margin-bottom: 15px;
  background: #fff;
  color: #4facfe;
  padding: 8px 15px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.location-btn:hover {
  background: #e6e6e6;
}

.weather-card {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 15px;
  padding: 20px;
  color: #fff;
  font-size: 18px;
  margin-bottom: 15px;
}

.weather-card img {
  width: 100px;
  margin: 10px 0;
}

.forecast {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.forecast-day {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 8px;
  font-size: 14px;
  color: white;
  text-align: center;
}

.forecast-day img {
  width: 40px;
}

.history {
  margin-top: 15px;
  color: #fff;
  text-align: left;
}

.history ul {
  list-style: none;
  padding: 0;
}

.history li {
  cursor: pointer;
  padding: 5px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.history li:hover {
  background: rgba(255,255,255,0.2);
}

.loader {
  display: none;
  color: white;
  font-size: 16px;
  margin-bottom: 10px;
}

@media (max-width: 500px) {
  .forecast {
    grid-template-columns: repeat(2, 1fr);
  }
}
