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

body {
  background: radial-gradient(circle at top, #1f2933, #0b0f14);
  color: #fff;
  min-height: 100vh;
  padding: 0;
  margin: 0;
}

.dashboard {
  max-width: 1440px;
  margin: 0 auto;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard > section:not(:first-child) {
  margin-top: 10px;
}

.hero-weather {
  display: grid;
  grid-template-columns: 1.3fr 0.5fr 1fr;
  align-items: center;
  min-height: 190px;
  padding: 28px 32px;
}

.hero-left h1 {
  font-size: 68px;
  font-weight: 300;
  letter-spacing: -1px;
}

.hero-left p {
  font-size: 17px;
  color: #b0b0b0;
  margin-top: 4px;
}

.hero-left span {
    margin-top: 6px;
    display: inline-block;
  font-size: 14px;
  color: #888;
}

.hero-icon {
  font-size: 52px;
  opacity: 0.75;
  transform: translateY(-6px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stats-grid h2 {
  margin-top: 8px;
}


.stats-grid .card {
    position: relative;
    min-height: 140px;
}

.stats-grid .card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.04),
    transparent 40%
  );
  pointer-events: none;
}

.stats-grid .wide {
  grid-column: span 2;
  min-height: 200px;
}

.uv-card {
  grid-column: span 2;
  text-align: center;
  min-height: 200px;
}

.bottom-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 20px;
  margin-top: 8px;
}

.forecast-card {
  min-height: 260px;
}

.map-card {
  min-height: 260px;
}


.card {
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.02)
  );
  border-radius: 24px;
  padding: 20px;
  backdrop-filter: blur(30px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.uv-card {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.uv-gauge {
  width: 100%;
  max-width: 180px;
  margin: 10px auto;
}

.uv-bg {
  fill: none;
  stroke: rgba(255,255,255,0.1);
  stroke-width: 12;
}

.uv-progress {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 251;
  stroke-dashoffset: 251;
  transition: stroke-dashoffset 1s ease, stroke 0.5s ease;
}

.uv-value {
  font-size: 28px;
  font-weight: 600;
  margin-top: -10px;
  color: #4fc3f7;
}

.search {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  outline: none;
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  min-width: 250px;
  transition: all 0.3s ease;
}

.search input:focus {
  border-color: #4fc3f7;
  box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.2);
}

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

.search button {
  background: rgba(79, 195, 247, 0.2);
  border: none;
  color: #4fc3f7;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search button:hover {
  background: rgba(79, 195, 247, 0.3);
}

.forecast ul {
  list-style: none;
  margin-top: 15px;
}

#forecastList li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
}

#forecastList li:last-child {
  border-bottom: none;
}

#forecastList img {
  width: 40px;
  height: 40px;
}

.map-box {
  margin-top: 15px;
  height: 180px;
  border-radius: 16px;
  background: radial-gradient(circle, #1c4b5a, #0b1a22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #7dd3fc;
  border: 1px solid rgba(255,255,255,0.1);
}

.map-box i {
    font-size: 48px;
    margin-bottom: 10px;
}

.map-box p {
    color: #aaa;
    font-size: 14px;
}

h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .hero-weather {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .hero-icon {
        justify-self: center;
    }

    .search {
        width: 100%;
        justify-content: center;
    }

    .search input {
        flex: 1;
    }
}

@media (max-width: 1024px) {
    .bottom-row {
        grid-template-columns: 1fr;
    }
}