* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #1a2980, #26d0ce);
  color: #fff;
  min-height: 100vh;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 450px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  padding: 25px;
}

.search-container {
  display: flex;
  margin-bottom: 25px;
}

.search-container input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 30px 0 0 30px;
  outline: none;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.search-container button {
  padding: 15px 20px;
  border: none;
  background: #ff6b6b;
  color: white;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

.search-container button:hover {
  background: #ee5253;
}

.weather-info {
  text-align: center;
}

.city-name {
  font-size: 28px;
  margin-bottom: 5px;
  font-weight: 700;
}

.date-time {
  font-size: 16px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.temperature {
  font-size: 64px;
  font-weight: 800;
  margin: 10px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.weather-icon {
  font-size: 50px;
  margin: 15px 0;
}

.weather-description {
  font-size: 22px;
  margin-bottom: 25px;
  text-transform: capitalize;
}

.weather-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.detail-card {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.detail-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.detail-value {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 5px;
}

.detail-label {
  font-size: 14px;
  opacity: 0.9;
}

.copyright {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  opacity: 0.8;
}

.error-message {
  background: rgba(255, 107, 107, 0.3);
  border-radius: 10px;
  padding: 10px;
  margin-top: 15px;
  text-align: center;
  display: none;
}

@media (max-width: 480px) {
  .container {
    padding: 20px;
  }

  .weather-details {
    grid-template-columns: 1fr;
  }

  .temperature {
    font-size: 56px;
  }
}
