* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: sans-serif;
  background: linear-gradient(180deg,
      #8f8ae6 0%,
      #7f86d8 35%,
      #6f80c8 70%,
      #6379bd 100%);
}


.search {
  margin-top: 70px;
  display: flex;
  gap: 10px;
}

#cityInput {
  width: 180px;
  padding: 10px 14px;
  border-radius: 20px;
  border: none;
  outline: none;
  font-size: 14px;
}

button {
  padding: 10px 16px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #4f46e5;
  transition: 0.2s ease;
}

button:hover {
  background: #4338ca;
}

#error,
.loading {
  margin-top: 8px;
  font-size: 14px;
  color: #fff;
}

.error {
  color: #ffdddd;
}


.card {
  width: 320px;
  margin-top: 30px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  color: #fff;
  position: relative;
}

.temperature {
  font-size: 42px;
  font-weight: 400;
}

.day {
  font-size: 16px;
  margin-top: 4px;
}

.weather {
  font-size: 16px;
  margin-top: 12px;
}

#image {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 80px;
}


.details {
  width: 320px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.box {
  flex: 1;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  text-align: center;
}

.box img {
  width: 28px;
  margin-bottom: 6px;
}

.box p {
  font-size: 13px;
  color: #fff;
}

.current-status {
  margin-top: 12px;
  font-size: 14px;
  color: #f1f5ff;
  opacity: 0.9;
}