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

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #74ebd5, #ACB6E5);
}

.container {
  width: 420px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.search-box {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.search-box input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 30px;
  border: none;
  background-color: #f1f5f9;
  text-transform: capitalize;
  font-size: 16px;
  outline: none;
  transition: 0.3s;
}

.search-box input:focus {
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}

.search-box button {
  width: 46px;
  height: 46px;
  margin-left: 10px;
  background: #4facfe;
  border: none;
  color: white;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

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

.location-not-found {
  text-align: center;
  animation: fadeIn 0.5s ease-in;
}

.location-not-found img {
  width: 60%;
  margin-top: 20px;
}

.weather-body {
  text-align: center;
  animation: fadeIn 0.5s ease-in;
}

.city-name {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

.weather-body img {
  width: 55%;
  margin: 15px auto;
  animation: float 3s infinite ease-in-out;
}

.weather-box {
  margin-top: 10px;
}

.temperature {
  font-size: 42px;
  font-weight: bold;
  animation: pop 0.5s ease-in-out;
}

.description {
  font-size: 18px;
  margin-top: 8px;
  text-transform: capitalize;
}

.weather-details {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding: 0 15px;
}

.humidity, .wind {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.25);
  padding: 10px;
  border-radius: 12px;
}

.humidity i, .wind i {
  font-size: 22px;
  margin-right: 10px;
  color: #0ea5e9;
}

.text span {
  font-weight: 600;
  font-size: 16px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pop {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hidden {
  display: none;
}

/* Dark Mode Toggle Button */
.toggle-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: white;
  border: none;
  font-size: 20px;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;
  transition: 0.3s;
}

.toggle-btn:hover {
  transform: scale(1.1);
}
