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

body {
  background: linear-gradient(135deg, #002147, #0047ab, #0a66c2);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  color: #fff;
}

.card {
  width: 100%;
  max-width: 450px;
  background: rgba(0, 33, 71, 0.4); /* Transparent cobalt */
  border-radius: 20px;
  padding: 50px;
  backdrop-filter: blur(15px);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeIn 0.5s ease-in-out;
}

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

.search input {
  flex: 1;
  height: 50px;
  border: none;
  outline: none;
  padding: 0 20px;
  border-radius: 30px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(5px);
}

.search input::placeholder {
  color: #cbd8ff;
}

.search button {
  margin-left: 10px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(0, 71, 171, 0.6);
  backdrop-filter: blur(5px);
  transition: background 0.3s ease;
}

.search button:hover {
  background: rgba(0, 71, 171, 0.85);
}

.search button img {
  width: 18px;
  filter: invert(1);
}

.weather-icon {
  width: 140px;
  margin-top: 20px;
  filter: drop-shadow(0 5px 8px rgba(0,0,0,0.4));
}

.weather h1 {
  font-size: 70px;
  font-weight: 600;
  margin-top: 10px;
  color: #e0ecff;
}

.weather h2 {
  font-size: 30px;
  font-weight: 400;
  color: #a3c8ff;
}

.details {
  display: flex;
  justify-content: space-around;
  margin-top: 30px;
}

.col {
  display: flex;
  align-items: center;
}

.col img {
  width: 35px;
  margin-right: 10px;
  filter: brightness(1.2);
}

.humidity, .wind {
  font-size: 22px;
  font-weight: 500;
  color: #e0ecff;
}

.error {
  color: #ff7b7b;
  font-size: 14px;
  text-align: left;
  margin-top: 10px;
  display: none;
}

.weather {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
