html {
  font-size: 15px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 35%, #ffffff 100%);
  color: #0f172a;
}

.navbar,
.footer {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(6px);
}

.hero-panel {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.15);
}

.hero-title {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 700;
}

.hero-subtitle {
  margin-top: 0.45rem;
  margin-bottom: 1rem;
  opacity: 0.96;
}

.section-title {
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
  font-weight: 650;
}

.weather-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.9rem;
}

.day-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.day-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
}

.day-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .75rem;
}

.day-date {
  font-weight: 700;
  text-transform: capitalize;
}

.day-weather {
  color: #475569;
  font-size: 0.92rem;
}

.day-icon {
  font-size: 1.65rem;
}

.day-icon.large {
  font-size: 2.5rem;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  border-top: 1px dashed #e2e8f0;
  padding-top: .38rem;
  margin-top: .38rem;
  font-size: .92rem;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 0.9rem;
}

.chart-card {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: .95rem;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
  min-height: 280px;
}

.chart-card h3,
.chart-card h2 {
  font-size: 1.03rem;
  margin-bottom: 0.7rem;
}

.chart-card canvas {
  width: 100% !important;
  height: 240px !important;
  display: block;
}

.day-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .8rem;
}

.detail-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: .9rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.detail-card span {
  color: #475569;
  font-size: .9rem;
}

.table-modern {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

.table-modern th {
  background: #e0f2fe;
  border-bottom: none;
}

.footer {
  margin-top: 2rem;
}