/* ========================================
   GLOBAL AQI DASHBOARD STYLES
   Figma-based component styles
   ======================================== */

/* ========================================
   ROOT VARIABLES - FIGMA DESIGN TOKENS
   ======================================== */
:root {
  /* AQI Colors - Now loaded dynamically from database (AQIndexRange) */

  /* Primary Colors */
  --color-primary: #1882ff;
  --color-primary-light: rgba(24, 130, 255, 0.1);
  --color-primary-dark: #0a1f44;
  
  /* Text Colors */
  --color-text-primary: #0a1f44;
  --color-text-secondary: #4a5565;
  --color-text-tertiary: #6a7282;
  --color-text-quaternary: #31343d;
  --color-text-light: #364153;
  
  /* Background Colors */
  --color-bg-white: #ffffff;
  --color-bg-card: rgba(255, 255, 255, 0.6);
  --color-bg-card-alt: rgba(255, 255, 255, 0.7);
  --color-bg-glass: rgba(255, 255, 255, 0.9);
  --color-bg-button: #1882ff;
  
  /* Weather Card Colors */
  --weather-card-bg-start: #1a2332;
  --weather-card-bg-end: #2a3f5f;
  --weather-text-white: rgba(255, 255, 255, 1);
  --weather-text-light: rgba(255, 255, 255, 0.8);
  --weather-separator: rgba(255, 255, 255, 0.2);
  
  /* Border Colors */
  --color-border: #e5e7eb;
  --color-border-light: rgba(229, 231, 235, 0.5);
  
  /* Utility Colors */
  --color-success: #00c950;
  --color-info: #2e8bc0;
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}
h1, h2, h3, h4, h5, h6 , p , span , ol, li, ul, address{
    font-family: 'SF Pro Display', sans-serif !important;

}
/* ========================================
   AQI DIAL COMPONENT
   ======================================== */
.aqi-dial-container {
  background: var(--color-bg-card);
  border: 0.8px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 20px;
  width: 100%;
  max-width: 420px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: visible;
  transition: all 0.3s ease;
}

/* AQI shadow animation is defined in dashboard.blade.php */

.aqi-dial-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.aqi-dial-title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  text-align: center;
}

.aqi-dial-subtitle {
  font-family: 'Arial', sans-serif;
  font-size: 13.144px;
  line-height: 19.666px;
  color: #1882ff;
  margin: 0;
  font-weight: 400;
}

.aqi-dial-title {
  font-family: 'Segoe UI', sans-serif;
  font-size: 25.116px;
  line-height: 28.406px;
  color: #31343d;
  margin: 0;
  font-weight: 400;
}

.aqi-dial-live-badge {
  background: var(--color-bg-button);
  border: 1px solid var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 117px;
  justify-content: center;
}

.aqi-dial-live-indicator {
  width: 14px;
  height: 14px;
  background: #00ff00;
  border-radius: 50%;
  animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.aqi-dial-live-text {
  font-family: Arial, sans-serif;
  font-size: 15.7px;
  color: var(--color-bg-white);
  line-height: 1.2;
}

.aqi-dial-location {
  font-family: Arial, sans-serif;
  font-size: 12.25px;
  color: var(--color-text-secondary);
  line-height: 1.4;
  text-align: center;
}

.aqi-dial-circle-container {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 200px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.aqi-dial-chart {
  width: 340px !important;
  height: 200px !important;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

.aqi-dial-value-container {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 10;
  pointer-events: none;
}

.aqi-dial-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  font-weight: bold;
  color: var(--color-primary);
  line-height: 1;
}

.aqi-dial-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: bold;
  color: #000000;
  line-height: 1;
}

.aqi-dial-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.aqi-dial-status-badge {
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
  padding: 3.5px 10.5px;
  display: inline-flex;
  align-items: center;
}

.aqi-dial-status-text {
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: var(--color-primary);
  line-height: 1.4;
}

.aqi-dial-confidence-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aqi-dial-confidence-text {
  font-family: Arial, sans-serif;
  font-size: 10.5px;
  color: var(--color-text-tertiary);
  line-height: 1.3;
}

.aqi-dial-confidence-bar {
  background: rgba(10, 31, 68, 0.2);
  border-radius: var(--radius-full);
  width: 56px;
  height: 3.5px;
  overflow: hidden;
}

.aqi-dial-confidence-fill {
  background: var(--color-success);
  height: 100%;
  width: 92%;
  transition: width var(--transition-base);
}

/* ========================================
   WEATHER CARD COMPONENT (Dashboard Main Section)
   Dark blue gradient design for the first weather card
   ======================================== */
.weather-card-container {
  background: var(--color-bg-card-alt);
  border: 0.8px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 0;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.weather-card-current {
  background: #1a2332; /* Fallback color */
  background: linear-gradient(135deg, var(--weather-card-bg-start, #1a2332) 0%, var(--weather-card-bg-end, #2a3f5f) 100%);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 24px 38px;
  position: relative;
  min-height: 124px;
  overflow: hidden;
}

.weather-card-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.06;
  pointer-events: none;
  background-image: url('/assets/global/images/888d34e7e05500770d1527a93223c86afdb25934.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.weather-card-content-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.weather-card-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.weather-card-condition-title {
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--weather-text-white);
  line-height: 1;
}

.weather-card-metrics {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.weather-metric {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: flex-start;
  padding-right: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  width: 170px;
}

.weather-metric:last-child {
  border-right: none;
  padding-right: 0;
}

.weather-metric-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26.1px;
  height: 26.1px;
}

.weather-metric-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.weather-metric-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.weather-metric-label {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.2;
  font-weight: 400;
}

.weather-metric-value {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #ffffff;
  font-weight: 400;
  line-height: 1.2;
}

.weather-card-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.weather-card-temperature {
  font-family: Arial, sans-serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--weather-text-white);
  line-height: 1;
}

.weather-card-animation {
  width: 64px;
  height: 59px;
  position: relative;
}

.weather-card-animation img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.weather-compass-button {
  background: transparent;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.weather-compass-button:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.weather-compass-icon {
  width: 42px;
  height: 42px;
  color: var(--color-text-primary);
  object-fit: contain;
}

/* ========================================
   REAL-TIME WEATHER FORECAST SECTION
   Figma Design Reference: Node ID 154:15813
   
   Design Specifications:
   - Background: Horizontal gradient from #8cd2f4 to #4ba9ff
   - Border Radius: 10px
   - Padding: 30px 46.5px
   - Min Height: 281px
   - Temperature Font: Helvetica Bold, 84.782px
   - Label/Value Font: Helvetica Regular, 16.485px
   - Icon Sizes: 42.488px (hourly), 55.795px (weekly), 141.3px (main)
   - Spacing: 14.13px between details, 10.622px (hourly gap)
   - Letter Spacing: -0.3533px
   ======================================== */

.weather-forecast-section {
  width: 100%;
  /* max-width: 1178px; */
  /* margin: 0 auto 60px auto; */
  /* padding: 0; */
}

.weather-forecast-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 20px;
  /* padding: 0 20px; */
}

.weather-forecast-title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.weather-forecast-subtitle {
  font-family: 'Arial', sans-serif;
  font-size: 13.144px;
  line-height: 19.666px;
  color: #1882ff;
  font-weight: 400;
  margin: 0;
}

.weather-forecast-title {
  font-family: 'Segoe UI', sans-serif;
  font-size: 25.116px;
  line-height: 28.406px;
  color: #31343d;
  font-weight: 400;
  margin: 0;
}

.weather-forecast-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.weather-nav-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #0a1f44;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.weather-nav-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.weather-nav-btn:active {
  transform: scale(0.95);
}

.weather-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.weather-nav-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

.weather-nav-btn img {
  width: 39.926px;
  height: auto;
  object-fit: contain;
}

/* Slider Container Styles */
.weather-forecast-slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.weather-forecast-slide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  width: 100%;
}

.weather-forecast-slide.active {
  display: block;
  opacity: 1;
}

/* District Name Badge */
.weather-forecast-district-badge {
  position: relative;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.weather-forecast-section .district-name-badge {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin: 0;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: inline-block;
  transition: all 0.3s ease;
}

.weather-forecast-section .district-name-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Weather Forecast Card */
.weather-forecast-section .weather-forecast-card {
  /* Figma Design: Horizontal gradient from light blue to darker blue */
  background: #4ba9ff;
  background: linear-gradient(90deg, #8cd2f4 0%, #8cd2f4 34.634%, #4ba9ff 54.406%, #4ba9ff 100%);
  border-radius: 10px;
  padding: 0;
  display: block;
  position: relative;
  height: 281px;
  width: 100%;
  overflow: hidden;
}

/* Current Weather Section */
.weather-forecast-section .weather-current-section {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 360px;
  height: 100%;
}

/* Weather Info Wrapper - Desktop */
.weather-forecast-section .weather-current-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.weather-forecast-section .weather-current-icon {
  position: absolute;
  left: 46.5px;
  top: 50px;
  width: 141.301px;
  height: 141.303px;
}

.weather-forecast-section .weather-current-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.weather-forecast-section .weather-current-temp {
  position: absolute;
  left: 216.19px;
  top: 120.65px;
  transform: translateY(-50%);
  font-family: 'Helvetica', Arial, sans-serif;
  font-size: 84.782px;
  font-weight: 700;
  color: white;
  line-height: normal;
  letter-spacing: -0.3533px;
  white-space: pre;
}

.weather-forecast-section .weather-current-details {
  position: absolute;
  left: 46.5px;
  top: 200px;
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex-wrap: nowrap;
  max-width: 350px;
  align-items: center;
}

.weather-forecast-section .weather-current-details .weather-detail-item {
  font-family: 'Helvetica', Arial, sans-serif;
  font-size: 16.485px;
  color: white;
  letter-spacing: -0.3533px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-block;
  position: relative;
  margin: 0;
  padding: 0;
  width: auto;
  height: auto;
}

/* Wind Direction Arrow */
.weather-forecast-section .wind-direction-arrow {
  display: inline-block;
  margin-left: 6px;
  font-size: 18px;
  color: white;
  transition: transform 0.3s ease;
  vertical-align: middle;
  transform-origin: center center;
}

/* Hourly Forecast Section */
.weather-forecast-section .weather-hourly-section {
  position: absolute;
  left: 460px;
  top: 30px;
  width: 618px;
  height: 84.502px;
  overflow-x: auto;
  overflow-y: hidden;
}

.weather-forecast-section .weather-hourly-scroll {
  display: flex;
  gap: 10.622px;
  min-width: max-content;
  height: 100%;
}

.weather-forecast-section .weather-hourly-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-width: 67.98px;
  width: 67.98px;
}

.weather-forecast-section .weather-hourly-time {
  font-family: 'Helvetica', Arial, sans-serif;
  font-size: 16.995px;
  font-weight: 400;
  color: white;
  letter-spacing: -0.3187px;
  text-align: center;
  line-height: normal;
}

.weather-forecast-section .weather-hourly-now .weather-hourly-time {
  font-weight: 700;
}

.weather-forecast-section .weather-hourly-icon {
  width: 42.488px;
  height: 29.743px;
  object-fit: contain;
}

.weather-forecast-section .weather-hourly-temp {
  font-family: 'Helvetica', Arial, sans-serif;
  font-size: 16.995px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.3187px;
  text-align: center;
  line-height: normal;
}

.weather-forecast-section .weather-sunset-text {
  color: #ffcd4a;
}

/* Weekly Forecast Section */
.weather-weekly-section {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 636px;
  height: 113.67px;
  overflow-x: auto;
  overflow-y: hidden;
}

.weather-weekly-scroll {
  display: flex;
  gap: 20px;
  min-width: max-content;
  height: 100%;
  align-items: flex-end;
}

.weather-weekly-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7.439px;
  width: 111.59px;
  flex-shrink: 0;
}

.weather-weekly-day {
  font-family: 'Helvetica', Arial, sans-serif;
  font-size: 20.458px;
  font-weight: 400;
  color: white;
  letter-spacing: -0.279px;
  text-align: center;
  line-height: normal;
}

.weather-weekly-icon {
  width: 55.795px;
  height: 55.795px;
  object-fit: contain;
}

.weather-weekly-temps {
  display: flex;
  gap: 9.299px;
  align-items: center;
  justify-content: center;
}

.weather-temp-high,
.weather-temp-low {
  font-family: 'Helvetica', Arial, sans-serif;
  font-size: 13.019px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.279px;
  line-height: 18.598px;
  text-align: center;
  min-width: 37.197px;
}

/* Weekly Section - Namespaced */
.weather-forecast-section .weather-weekly-section {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 636px;
  height: 113.67px;
  overflow-x: auto;
  overflow-y: hidden;
}

.weather-forecast-section .weather-weekly-scroll {
  display: flex;
  gap: 20px;
  min-width: max-content;
  height: 100%;
  align-items: flex-end;
}

.weather-forecast-section .weather-weekly-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7.439px;
  width: 111.59px;
  flex-shrink: 0;
}

.weather-forecast-section .weather-weekly-day {
  font-family: 'Helvetica', Arial, sans-serif;
  font-size: 20.458px;
  font-weight: 400;
  color: white;
  letter-spacing: -0.279px;
  text-align: center;
  line-height: normal;
}

.weather-forecast-section .weather-weekly-icon {
  width: 55.795px;
  height: 55.795px;
  object-fit: contain;
}

.weather-forecast-section .weather-weekly-temps {
  display: flex;
  gap: 9.299px;
  align-items: center;
  justify-content: center;
}

.weather-forecast-section .weather-temp-high,
.weather-forecast-section .weather-temp-low {
  font-family: 'Helvetica', Arial, sans-serif;
  font-size: 13.019px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.279px;
  line-height: 18.598px;
  text-align: center;
  min-width: 37.197px;
}

/* Scrollbar Styling */
.weather-forecast-section .weather-hourly-section::-webkit-scrollbar,
.weather-forecast-section .weather-weekly-section::-webkit-scrollbar {
  height: 4px;
}

.weather-forecast-section .weather-hourly-section::-webkit-scrollbar-track,
.weather-forecast-section .weather-weekly-section::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.weather-forecast-section .weather-hourly-section::-webkit-scrollbar-thumb,
.weather-forecast-section .weather-weekly-section::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.weather-forecast-section .weather-hourly-section::-webkit-scrollbar-thumb:hover,
.weather-forecast-section .weather-weekly-section::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .weather-forecast-section {
    max-width: 100%;
    padding: 0 20px;
  }
  
  .weather-forecast-card {
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .weather-forecast-section .weather-forecast-card {
    height: auto;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .weather-forecast-section .weather-current-section {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }

  .weather-forecast-section .weather-current-icon {
    position: static;
    width: 100px;
    height: 100px;
  }

  .weather-forecast-section .weather-current-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .weather-forecast-section .weather-current-temp {
  position: static;
  font-size: 60px;
  width: auto;
  height: auto;
  transform: none;
}

  .weather-forecast-section .weather-current-details {
    position: static;
    margin-top: 20px;
    max-width: 100%;
    gap: 15px;
  }

  .weather-forecast-section .weather-hourly-section {
    position: static;
    width: 100%;
    height: auto;
    left: auto;
    top: auto;
  }
  
  .weather-forecast-section .weather-hourly-scroll {
    height: auto;
    overflow-x: auto;
    padding: 16px 0;
  }

  .weather-forecast-section .weather-weekly-section {
    position: static;
    width: 100%;
    height: auto;
    right: auto;
    top: auto;
  }

  .weather-forecast-section .weather-weekly-scroll {
    overflow-x: auto;
    padding: 16px 0;
  }

  /* Navigation buttons on tablet */
  .weather-nav-btn {
    width: 36px;
    height: 36px;
  }

  .weather-nav-btn svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 768px) {
  /* Section styling */
  .weather-forecast-section {
    padding: 24px 16px;
  }

  .weather-forecast-section .weather-forecast-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 0 0 16px 0;
  }

  .weather-forecast-section .weather-forecast-title {
    font-size: 20px;
    line-height: 24px;
    font-family: 'Segoe UI', sans-serif;
    color: #31343d;
    font-weight: 400;
  }

  .weather-forecast-section .weather-forecast-subtitle {
    font-size: 12px;
    line-height: 16px;
  }

  .weather-forecast-section .district-name-badge {
    font-size: 13px;
    padding: 6px 12px;
    letter-spacing: 0.5px;
  }

  /* Card styling */
  .weather-forecast-section .weather-forecast-card {
    padding: 20px 16px;
    border-radius: 8px;
    gap: 20px;
  }

  .weather-forecast-section .weather-current-section {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-align: left;
    justify-content: flex-start;
  }

  .weather-forecast-section .weather-current-icon {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
  }

  .weather-forecast-section .weather-current-icon img {
    width: 100%;
    height: 100%;
  }

  .weather-forecast-section .weather-current-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    flex: 1;
  }

  .weather-forecast-section .weather-current-temp {
    font-size: 40px;
    line-height: 1;
    flex-shrink: 0;
  }

  .weather-forecast-section .weather-current-details {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    flex: 1;
  }
  
  .weather-forecast-section .weather-detail-item {
    font-size: 12px;
    line-height: 1.3;
  }

  .weather-forecast-section .wind-direction-arrow {
    font-size: 14px;
    margin-left: 3px;
  }
  
  /* Hourly section */
  .weather-forecast-section .weather-hourly-section {
    margin-top: 8px;
  }

  .weather-forecast-section .weather-hourly-scroll {
    gap: 12px;
    padding: 12px 0;
  }

  .weather-forecast-section .weather-hourly-item {
    min-width: 60px;
    gap: 8px;
  }

  .weather-forecast-section .weather-hourly-time,
  .weather-forecast-section .weather-hourly-temp {
    font-size: 13px;
  }

  .weather-forecast-section .weather-hourly-icon {
    width: 32px;
    height: 32px;
  }
  
  /* Weekly section */
  .weather-forecast-section .weather-weekly-section {
    margin-top: 8px;
  }

  .weather-forecast-section .weather-weekly-scroll {
    gap: 12px;
    padding: 12px 0;
  }

  .weather-forecast-section .weather-weekly-item {
    min-width: 80px;
    gap: 8px;
  }

  .weather-forecast-section .weather-weekly-day {
    font-size: 14px;
  }

  .weather-forecast-section .weather-weekly-icon {
    width: 40px;
    height: 40px;
  }
  
  .weather-forecast-section .weather-temp-high,
  .weather-forecast-section .weather-temp-low {
    font-size: 12px;
  }

  /* Navigation buttons */
  .weather-forecast-section .weather-nav-btn {
    width: 32px;
    height: 32px;
    padding: 6px;
  }

  .weather-forecast-section .weather-nav-btn svg {
    width: 18px;
    height: 18px;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .weather-forecast-section {
    padding: 20px 12px;
  }

  .weather-forecast-section .weather-forecast-card {
    padding: 16px 12px;
    gap: 16px;
  }

  .weather-forecast-section .weather-forecast-title {
    font-size: 18px;
    line-height: 22px;
    font-family: 'Segoe UI', sans-serif;
    color: #31343d;
    font-weight: 400;
  }

  .weather-forecast-section .district-name-badge {
    font-size: 12px;
    padding: 5px 10px;
  }

  .weather-forecast-section .weather-current-section {
    align-items: center;
    gap: 10px;
  }

  .weather-forecast-section .weather-current-icon {
    width: 60px;
    height: 60px;
  }

  .weather-forecast-section .weather-current-info {
    gap: 10px;
  }

  .weather-forecast-section .weather-current-temp {
    font-size: 36px;
    line-height: 1;
  }

  .weather-forecast-section .weather-current-details {
    gap: 5px;
  }
  
  .weather-forecast-section .weather-detail-item {
    font-size: 11px;
  }

  .weather-forecast-section .wind-direction-arrow {
    font-size: 13px;
  }

  .weather-forecast-section .weather-hourly-item {
    min-width: 50px;
  }

  .weather-forecast-section .weather-hourly-icon {
    width: 28px;
    height: 28px;
  }

  .weather-forecast-section .weather-weekly-item {
    min-width: 70px;
  }

  .weather-forecast-section .weather-weekly-icon {
    width: 36px;
    height: 36px;
  }

  .weather-forecast-section .weather-nav-btn {
    width: 28px;
    height: 28px;
  }

  .weather-forecast-section .weather-nav-btn svg {
    width: 16px;
    height: 16px;
  }
}

/* ========================================
   HEALTH GUIDANCE COMPONENT
   ======================================== */
.health-guidance-container {
  background: var(--color-bg-card-alt);
  border: 0.8px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 22px;
  width: 100%;
}

.health-guidance-content {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.health-guidance-icon {
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.health-guidance-icon svg {
  width: 21px;
  height: 21px;
  color: var(--color-primary);
}

.health-guidance-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.health-guidance-title {
  font-family: Arial, sans-serif;
  font-size: 15.75px;
  font-weight: bold;
  color: var(--color-text-primary);
  line-height: 1.5;
}

.health-guidance-subtitle {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.health-guidance-recommendations {
  margin-top: 8px;
}

.health-guidance-recommendations-title {
  font-family: Arial, sans-serif;
  font-size: 12.25px;
  color: var(--color-text-primary);
  line-height: 1.4;
  margin-bottom: 10px;
}

.health-guidance-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3.5px;
}

.health-guidance-list-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.health-guidance-list-bullet {
  width: 5.25px;
  height: 5.25px;
  background: var(--color-info);
  border-radius: 50%;
  flex-shrink: 0;
}

.health-guidance-list-text {
  font-family: Arial, sans-serif;
  font-size: 12.25px;
  color: var(--color-text-light);
  line-height: 1.4;
}

/* Info Cards Grid */
.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.info-card {
  background: var(--color-bg-card-alt);
  border: 0.8px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.info-card-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  min-height: 60px;
  display: flex;
  align-items: center;
}

.info-card-header-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.info-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin: 0;
  line-height: 1.4;
}

.info-card-body {
  padding: 16px;
  background: white;
}

.info-card-label {
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 4px 0;
  font-weight: 500;
}

.info-card-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.info-card-text {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Dual Card Grid (2 cards side by side) */
.info-cards-grid-dual {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  margin-bottom: 24px;
}

/* Triple Card Grid (3 cards side by side - equal width) */
.info-cards-grid-triple {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

/* Scrollable content for health cards with more than 3 items */
.info-card-content-wrapper.scrollable {
  max-height: 180px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;
}

/* Custom scrollbar styling - more visible */
.info-card-content-wrapper.scrollable::-webkit-scrollbar {
  width: 8px;
}

.info-card-content-wrapper.scrollable::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  margin: 4px 0;
}

.info-card-content-wrapper.scrollable::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.info-card-content-wrapper.scrollable::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.5);
  background-clip: content-box;
}

/* Rotating Card */
.info-card-rotating {
  position: relative;
}

.info-card-rotating .info-card-body {
  padding: 16px;
}

.info-card-content-wrapper {
  position: relative;
  min-height: 100px;
  overflow: hidden;
}

.rotating-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.rotating-content.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  pointer-events: auto;
}

.info-card-list {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
}

.info-card-list-item {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: var(--color-text-dark);
  line-height: 1.7;
  margin-bottom: 8px;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.info-card-list-item:last-child {
  margin-bottom: 0;
}

.info-card-list li {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 8px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.info-card-list li:last-child {
  margin-bottom: 0;
}

.info-card-sentence {
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: var(--color-text-dark);
  line-height: 1.7;
  margin: 0;
  text-align: left;
}

.rotating-card-title {
  transition: color 0.3s ease;
}

/* Graph Card */
.info-card-graph {
  display: flex;
  flex-direction: column;
}

.info-card-graph .info-card-body {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

/* Mini AQI Graph */
.mini-aqi-graph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-aqi-graph canvas {
  width: 100% !important;
  max-width: 450px;
  height: 180px !important;
  display: block;
}

/* Compact AQI Scale - Smaller and Pushed Down */
.aqi-scale-container-compact {
  background: var(--color-bg-glass);
  backdrop-filter: blur(4.301px);
  border-radius: 7.168px;
  padding: 12px 14px;
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
}

.aqi-scale-bar-compact {
  display: flex;
  height: 16px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.aqi-scale-label-icon-compact {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aqi-scale-label-icon-compact img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.aqi-scale-labels-compact {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.aqi-scale-label-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.aqi-scale-label-name-compact {
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-dark);
  text-align: center;
  line-height: 1.2;
}

.aqi-scale-label-range-compact {
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: var(--color-text-light);
  text-align: center;
  line-height: 1.2;
}

/* Old AQI Scale Styles (kept for compatibility) */
.aqi-scale-container {
  background: var(--color-bg-glass);
  backdrop-filter: blur(4.301px);
  border-radius: 7.168px;
  padding: 16px;
  margin-top: 16px;
}

.aqi-scale-bar {
  display: flex;
  height: 3.735px;
  border-radius: 4.681px;
  overflow: hidden;
  margin-bottom: 16px;
}

.aqi-scale-segment {
  flex: 1;
  height: 100%;
}

/* AQI scale segment colors now applied dynamically via inline styles */

.aqi-scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.aqi-scale-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.aqi-scale-label-icon {
  width: 28.672px;
  height: 28.672px;
}

.aqi-scale-label-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.aqi-scale-label-name {
  font-family: Arial, sans-serif;
  font-size: 9.39px;
  color: var(--color-text-quaternary);
  line-height: 1.5;
  text-align: center;
  text-transform: capitalize;
}

.aqi-scale-label-range {
  font-family: Arial, sans-serif;
  font-size: 9.39px;
  color: var(--color-text-quaternary);
  opacity: 0.7;
  line-height: 1.5;
  text-align: center;
}

/* ========================================
   RESPONSIVE LAYOUT
   ======================================== */
.dashboard-container-bg {
  background: linear-gradient(0deg, #cbf5dd 30%, #fff 100%);
  position: relative;
  padding: 60px 0 40px;
  min-height: 600px;
}

.dashboard-container-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/global/images/888d34e7e05500770d1527a93223c86afdb25934.png');
  background-size: cover;
  background-position: center;
  opacity: 0.06;
  pointer-events: none;
  mask-image: url('/assets/global/images/f5b5c658c5c7708b013341a91c8e6fe1215d5aa8.svg');
  mask-size: cover;
  mask-position: center;
}

.dashboard-main-section {
  /* max-width: 1512px; */
  margin: 0 auto;
  /* padding: 0 80px; */
  display: grid;
  gap: 24px;
  grid-template-columns: 336px 1fr;
  grid-template-rows: auto auto;
  align-items: start;
  position: relative;
  z-index: 1;
}

.dashboard-main-section .aqi-dial-container {
  grid-column: 1;
  grid-row: 1;
}

.dashboard-main-section .weather-card-container {
  grid-column: 2;
  grid-row: 1;
}

.dashboard-main-section .health-guidance-container {
  grid-column: 2;
  grid-row: 2;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */
@media (max-width: 1200px) {
  /* .dashboard-container-bg {
    padding: 30px 0;
  } */
  
  .dashboard-main-section {
    /* padding: 0 40px; */
    gap: 20px;
  }
}

@media (max-width: 992px) {
  .dashboard-container-bg {
    padding: 50px 0;
  }
  
  .dashboard-main-section {
    /* padding: 0 24px; */
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .dashboard-main-section .aqi-dial-container {
    grid-column: 1;
    grid-row: 1;
    max-width: 100%;
    width: 100%;
  }

  .dashboard-main-section .weather-card-container {
    grid-column: 1;
    grid-row: 2;
  }

  .dashboard-main-section .health-guidance-container {
    grid-column: 1;
    grid-row: 3;
  }

  .weather-card-content-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .weather-card-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .info-card-header {
    min-height: 60px;
  }
}

@media (max-width: 968px) {
  .info-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .info-cards-grid-triple {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .info-cards-grid-single {
    max-width: 100%;
  }
  
  .info-card-header {
    min-height: 60px;
  }
}

@media (max-width: 768px) {
  /* .dashboard-container-bg {
    padding: 20px 0;
  } */
  
  .dashboard-main-section {
    /* padding: 0 20px; */
    gap: 16px;
  }

  .aqi-dial-container {
    padding: 16px;
  }

  .weather-card-current {
    padding: 20px 24px;
  }

  .weather-card-metrics {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .weather-metric {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 0;
    padding-bottom: 12px;
    width: 100%;
  }

  .weather-metric:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .health-guidance-container {
    padding: 18px;
  }

  .info-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }

  .info-cards-grid-dual {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .info-cards-grid-triple {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .info-card-content-wrapper {
    min-height: 70px;
  }
  
  .info-card-content-wrapper.scrollable {
    max-height: 150px;
  }

  .mini-aqi-graph canvas {
    height: 120px !important;
  }

  .aqi-scale-container-compact {
    max-width: 100%;
  }

  .info-card-graph {
    display: block;
  }

  .info-card-graph .info-card-body {
    flex: none;
  }

  .aqi-scale-labels {
    flex-wrap: wrap;
  }

  .aqi-scale-label {
    min-width: calc(33.333% - 8px);
  }

  .aqi-scale-labels-compact {
    flex-wrap: wrap;
    gap: 6px;
  }

  .aqi-scale-label-compact {
    min-width: calc(33.333% - 6px);
  }
  
  .info-card-header {
    min-height: 60px;
  }
}

@media (max-width: 480px) {
  /* .dashboard-container-bg {
    padding: 16px 0;
  } */
  
  /* .dashboard-main-section {
    padding: 0 16px;
  } */

  .aqi-dial-subtitle {
    font-size: 11px;
    line-height: 16px;
  }

  .aqi-dial-title {
    font-size: 20px;
    line-height: 24px;
    font-family: 'Segoe UI', sans-serif;
    color: #31343d;
    font-weight: 400;
  }

  .weather-card-condition-title {
    font-size: 20px;
  }

  .weather-card-temperature {
    font-size: 36px;
  }

  .health-guidance-title {
    font-size: 14px;
  }

  .aqi-scale-labels {
    gap: 4px;
  }

  .aqi-scale-label {
    min-width: calc(50% - 4px);
  }

  .aqi-scale-label-name,
  .aqi-scale-label-range {
    font-size: 8px;
  }
  
  .info-card-header {
    min-height: 56px;
    padding: 12px 14px;
  }
  
  .info-card-title {
    font-size: 13px;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

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

/* ========================================
   AQI FORECAST COMPONENT
   Horizontal scrolling forecast table
   ======================================== */

.aqi-forecast-section {
  width: 100%;
  /* max-width: 1178px;
  margin: 0 auto 60px auto;
  padding: 0; */
}

.aqi-forecast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 40px;
  /* padding: 0 20px; */
}

.aqi-forecast-title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.aqi-forecast-subtitle {
  font-family: 'Arial', sans-serif;
  font-size: 13.144px;
  line-height: 19.666px;
  color: #1882ff;
  margin: 0;
  font-weight: 400;
}

.aqi-forecast-title {
  font-family: 'Segoe UI', sans-serif;
  font-size: 25.116px;
  line-height: 28.406px;
  color: #31343d;
  margin: 0;
  font-weight: 400;
}

.aqi-forecast-nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

.aqi-forecast-nav-btn {
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aqi-forecast-nav-btn:hover {
  opacity: 0.7;
}

.aqi-forecast-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* District Name Badge for AQI Forecast */
.aqi-forecast-district-badge {
  position: relative;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.aqi-forecast-section .district-name-badge {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  margin: 0;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: inline-block;
  transition: all 0.3s ease;
}

.aqi-forecast-section .district-name-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.aqi-forecast-container {
  width: 100%;
  position: relative;
  overflow: visible;
}

.aqi-forecast-scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(208, 213, 221, 0.5) transparent;
}

.aqi-forecast-scroll::-webkit-scrollbar {
  height: 6px;
}

.aqi-forecast-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.aqi-forecast-scroll::-webkit-scrollbar-thumb {
  background: rgba(208, 213, 221, 0.5);
  border-radius: 3px;
}

.aqi-forecast-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(208, 213, 221, 0.8);
}

/* Forecast Column */
.aqi-forecast-column {
  position: relative;
  width: 100px;
  height: 267.84px;
  flex-shrink: 0;
  border-right: 1.107px dashed #eaecf0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.aqi-forecast-column.is-current-day {
  background: rgba(24, 130, 255, 0.02);
}

.aqi-forecast-column.has-day-label {
  width: 100px;
}

.aqi-forecast-column.no-wind {
  height: 180px;
}
.aqi-forecast-weather-icon img{
  width: 70px;
  height: 70px;
  margin: 0 auto;
}

/* Time Label */
.aqi-forecast-time {
  font-family: 'Segoe UI', sans-serif;
  font-size: 15.163px;
  line-height: 22.136px;
  color: #101828;
  text-align: center;
  margin: 0;
  padding: 2.214px 0;
  height: 22.136px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
}

.aqi-forecast-time.is-now {
  font-size: 15.163px;
}

/* AQI Value Badge */
.aqi-forecast-aqi-badge {
  background: #4ba9ff;
  border-radius: 4.427px;
  height: 28.776px;
  width: 55.339px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8.854px;
}

.aqi-forecast-aqi-value {
  font-family: 'Segoe UI', sans-serif;
  font-size: 15.495px;
  line-height: 22.136px;
  color: white;
  text-align: center;
  margin: 0;
  font-weight: 400;
}

/* New AQI Value (for new structure) */
.aqi-forecast-value {
  border-radius: 4.427px;
  height: 28.776px;
  width: 55.339px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8.854px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 15.495px;
  line-height: 22.136px;
  font-weight: 400;
}

/* Weather Icon */
.aqi-forecast-weather {
  width: 35.417px;
  height: 35.417px;
  margin-top: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aqi-forecast-weather-icon {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Temperature */
.aqi-forecast-temperature {
  font-family: 'Segoe UI', sans-serif;
  font-size: 15.495px;
  line-height: 22.136px;
  color: #101828;
  text-align: center;
  margin: 8px 0 0;
  font-weight: 400;
}

.aqi-forecast-temp {
  font-family: 'Segoe UI', sans-serif;
  font-size: 15.495px;
  line-height: 22.136px;
  color: #101828;
  text-align: center;
  margin: 22.62px 0 0;
  font-weight: 400;
}

/* Wind Info */
.aqi-forecast-wind {
  margin-top: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.aqi-forecast-wind-icon {
  width: 17.708px;
  height: 17.708px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8.13px;
}

.aqi-forecast-wind-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wind-direction-arrow {
  color: #101828;
  transition: transform 0.3s ease;
}

.aqi-forecast-wind-speed {
  font-family: 'Segoe UI', sans-serif;
  font-size: 15.495px;
  line-height: 22.136px;
  color: #101828;
  text-align: center;
  margin: 0;
  font-weight: 400;
}

.aqi-forecast-wind-unit {
  font-family: 'Segoe UI', sans-serif;
  font-size: 12.499px;
  line-height: 18.136px;
  color: #667085;
  text-align: center;
  margin: 0;
  font-weight: 400;
}

/* Humidity */
.aqi-forecast-humidity {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17.71px;
}

.aqi-forecast-humidity-icon {
  width: 17.708px;
  height: 17.708px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aqi-forecast-humidity-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.aqi-forecast-humidity-value {
  font-family: 'Segoe UI', sans-serif;
  font-size: 15.495px;
  line-height: 22.136px;
  color: #101828;
  text-align: center;
  margin: 0;
  font-weight: 400;
}

/* Day Label */
.aqi-forecast-day-label {
  position: absolute;
  top: 0;
  right: 0;
  font-family: 'Segoe UI', sans-serif;
  font-size: 15.495px;
  line-height: 22.136px;
  color: #101828;
  text-align: center;
  padding: 0 8px;
  font-weight: 400;
}

/* Day Divider */
.aqi-forecast-day-divider {
  position: absolute;
  right: 0;
  top: 26.563px;
  bottom: 0;
  width: 1.107px;
  background: #eaecf0;
}

.aqi-forecast-divider {
  position: absolute;
  right: 0;
  top: 26.563px;
  bottom: 0;
  width: 1.107px;
  background: #eaecf0;
}

/* Responsive */
@media (max-width: 768px) {
  .aqi-forecast-section {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  
  .aqi-forecast-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .aqi-forecast-nav {
    align-self: flex-end;
  }
  
  .aqi-forecast-district-badge {
    padding: 0 16px 10px 16px;
  }

  .aqi-forecast-section .district-name-badge {
    font-size: 13px;
    padding: 6px 12px;
    letter-spacing: 0.5px;
  }
}

@media (max-width: 480px) {
  .aqi-forecast-district-badge {
    padding: 0 12px 8px 12px;
  }

  .aqi-forecast-section .district-name-badge {
    font-size: 12px;
    padding: 5px 10px;
  }
}

/* ========================================
   REAL-TIME AQI UPDATES COMPONENT
   Horizontal scrolling city cards
   ======================================== */

.realtime-aqi-updates-section {
  width: 100%;
  max-width: 1078px;
  margin: 40px auto 0;
  padding: 0;
}

.realtime-aqi-updates-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 23px;
  gap: 20px;
}

.realtime-aqi-updates-title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 330px;
}

.realtime-aqi-updates-subtitle {
  font-family: Arial, sans-serif;
  font-size: 13.144px;
  line-height: 19.666px;
  color: var(--color-primary);
  font-weight: 400;
  margin: 0;
}

.realtime-aqi-updates-title {
  font-family: Arial, sans-serif;
  font-size: 25.116px;
  line-height: 28.406px;
  color: var(--color-text-quaternary);
  font-weight: 400;
  margin: 0;
}

.realtime-aqi-updates-controls {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Navigation Scroll Buttons */
.aqi-scroll-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.aqi-scroll-btn:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: scale(1.05);
}

.aqi-scroll-btn:active {
  transform: scale(0.95);
}

.aqi-scroll-btn svg {
  width: 20px;
  height: 20px;
}

.realtime-aqi-updates-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.aqi-updates-btn {
  background: #c92033;
  border: none;
  border-radius: 7.284px;
  height: 34.325px;
  min-width: 108.964px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.aqi-updates-btn:hover {
  background: #a81a2a;
  transform: translateY(-1px);
}

.aqi-updates-btn-icon {
  width: auto;
  height: 10px;
  flex-shrink: 0;
}

.aqi-updates-btn-icon img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.aqi-updates-btn-text {
  font-family: 'Roboto', sans-serif;
  font-size: 10.967px;
  line-height: 10.925px;
  color: white;
  white-space: nowrap;
  font-weight: 400;
}

.aqi-download-btn {
  background: #f9f9f9;
  border: 0.837px solid #cecece;
  border-radius: 7.284px;
  height: 34.325px;
  width: 32.44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.aqi-download-btn:hover {
  background: #f0f0f0;
  border-color: #b0b0b0;
}

.aqi-download-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* City Cards Container */
.realtime-aqi-updates-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 30px 0;
  margin: 20px 0;
}

.realtime-aqi-updates-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(208, 213, 221, 0.3) transparent;
  padding: 10px 5px 20px 5px;
}

.realtime-aqi-updates-scroll::-webkit-scrollbar {
  height: 6px;
}

.realtime-aqi-updates-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.realtime-aqi-updates-scroll::-webkit-scrollbar-thumb {
  background: rgba(208, 213, 221, 0.3);
  border-radius: 3px;
}

.realtime-aqi-updates-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(208, 213, 221, 0.5);
}

/* City Card - With radiating inner glow */
.aqi-city-card {
  background: #fafafa;
  border: 1px solid rgba(163, 163, 200, 0.6);
  border-radius: 16px;
  min-width: 280px;
  width: 280px;
  height: 165px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.aqi-city-card:hover {
  transform: translateY(-2px);
}

/* AQI colored shadow effect - around the border */
.aqi-city-card[data-aqi-color] {
  box-shadow: 
    0 0 0 2px var(--aqi-color),
    0 4px 12px rgba(0, 0, 0, 0.1);
}

.aqi-city-card[data-aqi-color]:hover {
  box-shadow: 
    0 0 0 3px var(--aqi-color),
    0 6px 16px rgba(0, 0, 0, 0.15);
}

/* City Icon */
.aqi-city-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.aqi-city-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: none;
}

/* Vertical Separator */
.aqi-city-separator {
  position: absolute;
  left: 100px;
  top: 18px;
  bottom: 18px;
  width: 1px;
  background: linear-gradient(to bottom,
    rgba(49, 52, 61, 0) 0%,
    rgba(49, 52, 61, 0.25) 50%,
    rgba(49, 52, 61, 0) 100%
  );
}

/* City Content */
.aqi-city-content {
  position: absolute;
  left: 115px;
  right: 18px;
  top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 18px;
}

/* City Name */
.aqi-city-name-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.aqi-city-name {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 16px;
  color: var(--color-text-quaternary);
  font-weight: 400;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Current Badge */
.aqi-current-badge {
  position: absolute;
  top: 10px;
  right: 18px;
  font-family: Arial, sans-serif;
  font-size: 10px;
  line-height: 18px;
  color: #677580;
  font-weight: 400;
  background: transparent;
  padding: 0;
}

/* AQI Value */
.aqi-city-value-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px 0;
}

.aqi-city-value-badge {
  font-family: Arial, sans-serif;
  font-size: 22px;
  line-height: 22px;
  font-weight: 400;
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.aqi-city-value {
  font-family: Arial, sans-serif;
  font-size: 22px;
  line-height: 22px;
  font-weight: 400;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.aqi-city-value.good {
  color: var(--aqi-good);
}

.aqi-city-value.moderate {
  color: var(--aqi-moderate);
}

.aqi-city-value.unhealthy-sensitive {
  color: var(--aqi-unhealthy-sensitive);
}

.aqi-city-value.unhealthy {
  color: var(--aqi-unhealthy);
}

.aqi-city-value.very-unhealthy {
  color: var(--aqi-very-unhealthy);
}

.aqi-city-value.hazardous {
  color: var(--aqi-hazardous);
}

/* Bottom Metrics */
.aqi-city-metrics {
  display: flex;
  gap: 0;
  align-items: flex-start;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.aqi-city-metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-right: 20px;
  position: relative;
  min-width: 0;
}

.aqi-city-metric:last-child {
  padding-right: 0;
}

.aqi-city-metric:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom,
    rgba(49, 52, 61, 0) 0%,
    rgba(49, 52, 61, 0.25) 50%,
    rgba(49, 52, 61, 0) 100%
  );
}

.aqi-city-metric-label {
  font-family: Arial, sans-serif;
  font-size: 11px;
  line-height: 11px;
  color: #677580;
  text-transform: capitalize;
  font-weight: 500;
  margin: 0;
}

.aqi-city-metric-value {
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 15px;
  color: var(--color-text-quaternary);
  font-weight: 600;
  margin: 0;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* SVG Badge (for specific cities) */
.aqi-city-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  padding: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.aqi-city-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.aqi-city-rank {
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #31343d;
}

/* Average Badge */
.aqi-average-badge {
  font-size: 11px;
  font-weight: 400;
  color: #1882ff;
  margin-left: 4px;
}

/* AQI Range Icon */
.aqi-range-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--aqi-color);
  display: inline-block;
  flex-shrink: 0;
}

/* Last Updated */
.aqi-city-last-updated {
  font-family: Arial, sans-serif;
  font-size: 9px;
  line-height: 11px;
  color: #677580;
  margin-top: auto;
  padding-top: 5px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  font-weight: 400;
}

.last-updated-label {
  font-weight: 400;
  margin-right: 3px;
}

.last-updated-time {
  font-weight: 400;
  color: #31343d;
}

/* No districts message */
.no-districts-message {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #677580;
  font-family: Arial, sans-serif;
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .realtime-aqi-updates-section {
    max-width: 100%;
    padding: 0 20px;
  }
}

@media (max-width: 1024px) {
  .aqi-city-card {
    min-width: 260px;
    width: 260px;
    height: 155px;
  }
  
  .aqi-city-icon {
    left: 15px;
    width: 60px;
    height: 60px;
  }
  
  .aqi-city-separator {
    left: 88px;
    top: 16px;
    bottom: 16px;
  }
  
  .aqi-city-content {
    left: 100px;
    right: 15px;
    padding-top: 15px;
  }
  
  .aqi-city-name {
    font-size: 14px;
    line-height: 14px;
  }
  
  .aqi-city-value-container {
    margin-bottom: 8px;
    gap: 6px;
  }

  .aqi-city-value-badge {
    font-size: 20px;
    line-height: 20px;
    padding: 5px 10px;
    gap: 5px;
  }

  .aqi-city-value {
    font-size: 20px;
    line-height: 20px;
    margin-bottom: 8px;
    gap: 6px;
  }
  
  .aqi-range-icon {
    width: 11px;
    height: 11px;
  }
  
  .aqi-average-badge {
    font-size: 10px;
  }
  
  .aqi-city-metrics {
    margin-bottom: 5px;
  }
  
  .aqi-city-metric-label {
    font-size: 10px;
    line-height: 10px;
  }
  
  .aqi-city-metric-value {
    font-size: 14px;
    line-height: 14px;
  }
  
  .aqi-city-last-updated {
    font-size: 8.5px;
    line-height: 10px;
  }
}

@media (max-width: 768px) {
  .realtime-aqi-updates-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .realtime-aqi-updates-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .aqi-scroll-btn {
    width: 36px;
    height: 36px;
  }

  .aqi-scroll-btn svg {
    width: 18px;
    height: 18px;
  }

  .aqi-city-card {
    min-width: 250px;
    width: 250px;
    height: 145px;
  }
  
  .aqi-city-icon {
    left: 12px;
    width: 55px;
    height: 55px;
  }
  
  .aqi-city-separator {
    left: 78px;
    top: 15px;
    bottom: 15px;
  }
  
  .aqi-city-content {
    left: 90px;
    right: 12px;
    padding-top: 12px;
  }
  
  .aqi-city-name {
    font-size: 13px;
    line-height: 13px;
  }
  
  .aqi-city-value-container {
    margin-bottom: 7px;
    gap: 5px;
  }

  .aqi-city-value-badge {
    font-size: 18px;
    line-height: 18px;
    padding: 4px 9px;
    gap: 4px;
  }

  .aqi-city-value {
    font-size: 18px;
    line-height: 18px;
    margin-bottom: 7px;
    gap: 6px;
  }
  
  .aqi-range-icon {
    width: 10px;
    height: 10px;
  }
  
  .aqi-average-badge {
    font-size: 9px;
  }
  
  .aqi-city-metrics {
    margin-bottom: 5px;
  }
  
  .aqi-city-metric {
    gap: 3px;
    padding-right: 12px;
  }
  
  .aqi-city-metric-label {
    font-size: 9px;
    line-height: 9px;
  }
  
  .aqi-city-metric-value {
    font-size: 13px;
    line-height: 13px;
  }
  
  .aqi-city-badge {
    width: 28px;
    height: 28px;
    top: 6px;
    right: 6px;
  }
  
  .aqi-city-rank {
    font-size: 11px;
  }
  
  .aqi-city-last-updated {
    font-size: 8px;
    line-height: 9.5px;
    padding-top: 4px;
  }
  
  .realtime-aqi-updates-container {
    padding: 20px 0;
    margin: 15px 0;
  }
}

@media (max-width: 480px) {
  .realtime-aqi-updates-section {
    padding: 0 16px;
  }

  .realtime-aqi-updates-title {
    font-size: 20px;
    line-height: 24px;
  }

  .realtime-aqi-updates-subtitle {
    font-size: 12px;
    line-height: 16px;
  }

  .aqi-scroll-btn {
    width: 32px;
    height: 32px;
  }

  .aqi-scroll-btn svg {
    width: 16px;
    height: 16px;
  }

  .aqi-city-card {
    min-width: 260px;
    width: 260px;
    height: 125px;
  }
  
  .aqi-city-icon {
    left: 12px;
    width: 50px;
    height: 50px;
    border-radius: 8px;
  }
  
  .aqi-city-separator {
    left: 72px;
    top: 14px;
    bottom: 14px;
  }
  
  .aqi-city-content {
    left: 84px;
    right: 12px;
    padding-top: 12px;
  }
  
  .aqi-city-name-container {
    margin-bottom: 4px;
  }
  
  .aqi-city-name {
    font-size: 13px;
    line-height: 13px;
  }
  
  .aqi-city-value-container {
    margin-bottom: 8px;
    gap: 4px;
    flex-wrap: wrap;
  }

  .aqi-city-value-badge {
    font-size: 18px;
    line-height: 18px;
    padding: 4px 8px;
    gap: 4px;
  }

  .aqi-city-value {
    font-size: 18px;
    line-height: 18px;
    margin-bottom: 8px;
    gap: 4px;
    flex-wrap: wrap;
  }
  
  .aqi-range-icon {
    width: 9px;
    height: 9px;
  }
  
  .aqi-average-badge {
    font-size: 9px;
    margin-left: 2px;
  }
  
  .aqi-city-metrics {
    margin-bottom: 5px;
    flex-wrap: wrap;
    gap: 4px 0;
  }
  
  .aqi-city-metric {
    gap: 2px;
    padding-right: 10px;
    min-width: 0;
    flex: 1 1 auto;
  }
  
  .aqi-city-metric:not(:last-child)::after {
    display: none;
  }
  
  .aqi-city-metric-label {
    font-size: 9px;
    line-height: 9px;
  }
  
  .aqi-city-metric-value {
    font-size: 13px;
    line-height: 13px;
    word-break: normal;
    font-weight: 600;
  }
  
  .aqi-city-badge {
    width: 26px;
    height: 26px;
    top: 6px;
    right: 6px;
  }
  
  .aqi-city-rank {
    font-size: 11px;
  }
  
  .aqi-city-last-updated {
    font-size: 8px;
    line-height: 9.5px;
    padding-top: 4px;
    display: block;
  }
  
  .last-updated-label,
  .last-updated-time {
    display: inline;
  }
  
  .realtime-aqi-updates-container {
    padding: 15px 0;
    margin: 10px 0;
  }
  
  .realtime-aqi-updates-scroll {
    gap: 14px;
  }
}

@media (max-width: 375px) {
  .aqi-city-card {
    min-width: 240px;
    width: 240px;
    height: 115px;
  }
  
  .aqi-city-icon {
    left: 10px;
    width: 45px;
    height: 45px;
    border-radius: 7px;
  }
  
  .aqi-city-separator {
    left: 65px;
    top: 12px;
    bottom: 12px;
  }
  
  .aqi-city-content {
    left: 75px;
    right: 10px;
    padding-top: 10px;
  }
  
  .aqi-city-name-container {
    margin-bottom: 3px;
  }
  
  .aqi-city-name {
    font-size: 12px;
    line-height: 12px;
  }
  
  .aqi-city-value-container {
    margin-bottom: 6px;
    gap: 3px;
    flex-wrap: wrap;
  }

  .aqi-city-value-badge {
    font-size: 16px;
    line-height: 16px;
    padding: 3px 7px;
    gap: 3px;
  }

  .aqi-city-value {
    font-size: 16px;
    line-height: 16px;
    margin-bottom: 6px;
    gap: 3px;
    flex-wrap: wrap;
  }
  
  .aqi-range-icon {
    width: 8px;
    height: 8px;
  }
  
  .aqi-average-badge {
    font-size: 8px;
    margin-left: 1px;
  }
  
  .aqi-city-metrics {
    margin-bottom: 4px;
    flex-wrap: wrap;
    gap: 3px 0;
  }
  
  .aqi-city-metric {
    gap: 1px;
    padding-right: 8px;
    min-width: 0;
    flex: 1 1 auto;
  }
  
  .aqi-city-metric:not(:last-child)::after {
    display: none;
  }
  
  .aqi-city-metric-label {
    font-size: 8px;
    line-height: 8px;
  }
  
  .aqi-city-metric-value {
    font-size: 12px;
    line-height: 12px;
    font-weight: 600;
  }
  
  .aqi-city-badge {
    width: 22px;
    height: 22px;
    top: 5px;
    right: 5px;
  }
  
  .aqi-city-rank {
    font-size: 10px;
  }
  
  .aqi-city-last-updated {
    font-size: 7.5px;
    line-height: 8.5px;
    padding-top: 3px;
    display: block;
  }
  
  .realtime-aqi-updates-scroll {
    gap: 12px;
  }
}

@media (max-width: 320px) {
  .aqi-city-card {
    min-width: 100%;
    width: 100%;
    height: 110px;
  }
  
  .aqi-city-icon {
    left: 8px;
    width: 40px;
    height: 40px;
  }
  
  .aqi-city-separator {
    left: 58px;
    top: 10px;
    bottom: 10px;
  }
  
  .aqi-city-content {
    left: 68px;
    right: 8px;
    padding-top: 8px;
  }
  
  .aqi-city-name {
    font-size: 11px;
    line-height: 11px;
  }
  
  .aqi-city-value-container {
    margin-bottom: 5px;
    gap: 3px;
  }

  .aqi-city-value-badge {
    font-size: 15px;
    line-height: 15px;
    padding: 3px 6px;
    gap: 3px;
  }

  .aqi-city-value {
    font-size: 15px;
    line-height: 15px;
    margin-bottom: 5px;
  }
  
  .aqi-range-icon {
    width: 7px;
    height: 7px;
  }
  
  .aqi-average-badge {
    font-size: 7px;
  }
  
  .aqi-city-metrics {
    margin-bottom: 3px;
  }
  
  .aqi-city-metric-label {
    font-size: 7.5px;
    line-height: 7.5px;
  }
  
  .aqi-city-metric-value {
    font-size: 11px;
    line-height: 11px;
    font-weight: 600;
  }
  
  .aqi-city-badge {
    width: 20px;
    height: 20px;
  }
  
  .aqi-city-rank {
    font-size: 9px;
  }
  
  .aqi-city-last-updated {
    font-size: 7px;
    line-height: 8px;
  }
  
  .realtime-aqi-updates-scroll {
    gap: 10px;
    padding: 10px 2px 20px 2px;
  }
}

/* ========================================
   HISTORICAL AQI GRAPH COMPONENT
   Bar chart with tabs and statistics
   ======================================== */

.historical-aqi-graph-section {
  width: 100%;
  /* max-width: 1178px;
  margin: 0 auto 60px auto;
  padding: 0; */
}

.historical-aqi-graph-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.historical-header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.historical-header-text {
  display: flex;
  flex-direction: column;
  gap: 8.366px;
}

.historical-header-district-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.historical-district-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #31343d;
}

.historical-district-label svg {
  flex-shrink: 0;
  color: #677580;
}

.historical-aqi-graph-header .station-selector {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 300px;
  margin-top: 1rem;
}

.historical-aqi-graph-header .station-label {
  font-family: Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin: 0;
}

.historical-aqi-graph-header .station-dropdown {
  padding: 0.75rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #374151;
  background-color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 100%;
  font-family: Arial, sans-serif;
}

.historical-aqi-graph-header .station-dropdown:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.historical-aqi-graph-header .station-dropdown:hover {
  border-color: #9ca3af;
}

.historical-aqi-graph-title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.historical-aqi-graph-subtitle {
  font-family: 'Arial', sans-serif;
  font-size: 13.144px;
  line-height: 19.666px;
  color: #1882ff;
  font-weight: 400;
  margin: 0;
}

.historical-aqi-graph-title {
  font-family: 'Segoe UI', sans-serif;
  font-size: 25.116px;
  line-height: 28.406px;
  color: #31343d;
  font-weight: 400;
  margin: 0;
}

.historical-aqi-graph-location {
  font-family: Arial, sans-serif;
  font-size: 16.731px;
  line-height: 24.018px;
  color: #1882ff;
  font-weight: 400;
  margin: 0;
}

/* Main Container */
.historical-aqi-graph-container {
  background: #ffffff;
  border-radius: 14.556px;
  box-shadow: 1.673px 4.183px 29.28px 0px rgba(0, 0, 0, 0.07);
  padding: 0 20px 20px;
  position: relative;
  width: 100%;
  min-height: 469.745px;
}
.historical-aqi-graph-container .filter-dropdown{
  margin: 0 -20px;
}

/* Tab Controls */
.historical-aqi-graph-tabs {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

/* Inline Statistics */
.historical-stats-inline {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: flex-start;
  margin: 0.9rem 0;
  margin-bottom: 0.6rem;
  padding: 1rem;
  background: rgba(249, 249, 249, 0.5);
  border-radius: 0.75rem;
  flex-wrap: wrap;
}

.historical-stats-inline .stat-inline-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 120px;
  position: relative;
  padding-left: 20px;
}

.historical-stats-inline .stat-color-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  border-radius: 4px;
  background-color: #cccccc;
  transition: background-color 0.3s ease;
}

.historical-stats-inline .stat-inline-label {
  font-family: 'Arial', sans-serif;
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  color: #31343d;
  font-weight: 500;
}

.historical-stats-inline .stat-inline-value {
  font-family: 'Arial', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: bold;
  color: #31343d;
  line-height: 1.2;
}

.historical-stats-inline .stat-inline-date {
  font-family: 'Arial', sans-serif;
  font-size: clamp(0.65rem, 1.2vw, 0.8rem);
  color: #677580;
  line-height: 1.4;
}

/* AQI Bar Icons */
.aqi-bar-icon {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.aqi-24h-bar {
  position: relative;
  min-width: 8px;
  max-height: 100%;
  border-radius: 4px;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.aqi-24h-bar:hover {
  transform: translateY(-2px);
}

.aqi-24h-bar:hover .aqi-bar-icon {
  opacity: 1 !important;
}

.historical-aqi-graph-tab {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  position: relative;
  transition: var(--transition-fast);
}

.historical-aqi-graph-tab.active {
  border-bottom: 0.84px solid #4ba9ff;
}

.historical-aqi-graph-tab-icon {
  width: 14.208px;
  height: 14.235px;
  flex-shrink: 0;
}

.historical-aqi-graph-tab-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.historical-aqi-graph-tab-text {
  font-family: Arial, sans-serif;
  font-size: 14px; /* Increased font size for better visibility */
  line-height: 16px;
  font-weight: 400;
  white-space: nowrap;
}

.historical-aqi-graph-tab.active .historical-aqi-graph-tab-text {
  color: #4ba9ff;
}

.historical-aqi-graph-tab:not(.active) .historical-aqi-graph-tab-text {
  color: #31343d;
}

/* Download Data Button */
.historical-aqi-download-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 8px 12px;
  transition: var(--transition-fast);
}

.historical-aqi-download-btn:hover {
  opacity: 0.7;
}

.historical-aqi-download-btn-icon {
  width: 14.208px;
  height: 14.235px;
  flex-shrink: 0;
}

.historical-aqi-download-btn-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.historical-aqi-download-btn-text {
  font-family: Arial, sans-serif;
  font-size: 10.959px;
  line-height: 10.917px;
  color: #31343d;
  font-weight: 400;
}

/* Historical District Dropdown */
.historical-district-selector {
  display: flex;
  align-items: center;
  margin-left: 0;
}

/* Consistent District Dropdown Styles (matching AQI Calendar) */
.historical-district-dropdown,
.station-district-dropdown {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #31343d;
  background: #ffffff;
  border: 1px solid rgba(163, 163, 200, 0.6);
  border-radius: 8px;
  padding: 10px 40px 10px 16px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2331343d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  min-width: 150px;
}

.historical-district-dropdown:hover,
.station-district-dropdown:hover {
  border-color: #1882ff;
}

.historical-district-dropdown:focus,
.station-district-dropdown:focus {
  border-color: #1882ff;
  box-shadow: 0 0 0 3px rgba(24, 130, 255, 0.1);
}

/* District Selector Container */
.station-district-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.station-district-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #31343d;
}

.station-district-label svg {
  flex-shrink: 0;
  color: #677580;
}

/* Chart Area */
.historical-aqi-chart-wrapper {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  width: 100%;
  align-items: flex-start;
  position: relative;
  padding: 0 20px;
}

.historical-aqi-chart-content {
  display: none;
  flex: 1;
  min-width: 0;
  position: relative;
}

.historical-aqi-chart-content.active {
  display: block;
}

/* Chart Grid and Axes */
.historical-aqi-chart-grid {
  position: relative;
  width: 100%;
  min-height: 350px;
  padding-left: 60px;
  padding-bottom: 100px;
  display: inline-block;
}

/* Y-Axis Labels */
.aqi-y-axis {
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 100px;
  width: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.aqi-y-axis-label {
  font-family: Arial, sans-serif;
  font-size: 12.381px;
  line-height: 18.563px;
  color: #677580;
  text-align: right;
  padding-right: 10px;
}

/* Y-Axis for Days (7 Day View) */
.aqi-y-axis-days {
  justify-content: flex-start;
  width: 90px;
}

.aqi-y-axis-days .aqi-y-axis-label {
  height: calc((100% - 12px) / 7);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 2px;
  font-size: 13px; /* Increased by 3px from 10px */
  line-height: 1.2;
  white-space: nowrap;
}

/* X-Axis Labels */
.aqi-x-axis {
  position: absolute;
  bottom: 0;
  left: 60px;
  right: 0;
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 15px;
  z-index: 0;
}

.aqi-x-axis-label {
  font-family: Arial, sans-serif;
  font-size: 10.708px;
  line-height: 18.563px;
  color: #677580;
  text-align: center;
  white-space: nowrap;
  flex: 1;
}

/* X-Axis for Hours (7 Day View) */
.aqi-x-axis-hours {
  left: 100px;
  right: 20px;
}

.aqi-x-axis-hours .aqi-x-axis-label {
  font-size: 12px; /* Increased by 3px from 9px */
}

/* 24h Hour Labels */
.aqi-24h-hour-label {
  font-family: Arial, sans-serif;
  font-size: 10px;
  line-height: 18.563px;
  color: #677580;
  text-align: center;
  white-space: nowrap;
  flex: 1;
}

/* Bar Chart Visualization (24 Hours) */
.aqi-bars-container {
  position: absolute;
  left: 72.71px;
  right: 20px;
  top: 20px;
  bottom: 115px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  z-index: 1;
}

/* Heatmap Grid (7 Days) */
.aqi-heatmap-grid {
  position: absolute;
  left: 100px;
  right: 20px;
  top: 20px;
  bottom: 115px;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  gap: 2px;
}

.aqi-heatmap-row {
  display: flex;
  gap: 2px;
  height: calc((100% - 12px) / 7);
  flex-shrink: 0;
}

.aqi-heatmap-cell {
  flex: 1;
  min-width: 20px;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, z-index 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.aqi-heatmap-cell:hover {
  transform: scale(1.1);
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.aqi-bar-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 20px;
  max-width: 50px;
  position: relative;
  height: 100%;
}

.aqi-bar-stack {
  width: 100%;
  display: flex;
  flex-direction: column-reverse;
  gap: 1px;
  align-items: center;
}

.aqi-bar-segment {
  width: 33.002px;
  border-radius: 5.856px;
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.aqi-bar-segment:hover {
  opacity: 0.8;
  transform: scaleY(1.02);
}

/* Bar colors based on AQI level - Now applied dynamically via inline styles from database */

/* Tooltip for bars */
.aqi-bar-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 100;
}

.aqi-bar-segment:hover .aqi-bar-tooltip {
  opacity: 1;
}

/* Historical AQI Scale Bar (Similar to First Section) */
.historical-aqi-scale-container {
  background: var(--color-bg-glass);
  backdrop-filter: blur(4.301px);
  border-radius: 7.168px;
  padding: 12px 14px;
  margin: 20px auto;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.historical-aqi-scale-bar {
  display: flex;
  height: 16px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
  width: 100%;
  max-width: 100%;
}

.historical-aqi-scale-segment {
  flex: 1;
}

.historical-aqi-scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.historical-aqi-scale-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.historical-aqi-scale-label-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.historical-aqi-scale-label-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.historical-aqi-scale-label-text {
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-dark);
  text-align: center;
  line-height: 1.2;
}

.historical-aqi-scale-label-range {
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: var(--color-text-light);
  text-align: center;
  line-height: 1.2;
}

/* Legend at bottom (Kept for compatibility) */
.historical-aqi-legend {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(163, 163, 200, 0.2);
}

.historical-aqi-legend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 90px;
}

.historical-aqi-legend-icon {
  width: 33.431px;
  height: 33.493px;
  flex-shrink: 0;
}

.historical-aqi-legend-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.historical-aqi-legend-label {
  font-family: Arial, sans-serif;
  font-size: 10.959px;
  line-height: 14.737px;
  color: #31343d;
  text-align: center;
  text-transform: capitalize;
}

.historical-aqi-legend-range {
  font-family: Arial, sans-serif;
  font-size: 10.959px;
  line-height: 16.38px;
  color: #31343d;
  opacity: 0.7;
  text-align: center;
}

/* Statistics Sidebar */
.historical-aqi-stats-sidebar {
  width: clamp(12rem, 20vw, 15rem);
  background: rgba(249, 249, 249, 0.81);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  position: relative;
  flex-shrink: 0;
  min-height: 20rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.historical-aqi-stat-item {
  display: flex;
  gap: 12px;
  position: relative;
  align-items: flex-start;
}

.stat-color-bar {
  width: 6px;
  flex-shrink: 0;
  border-radius: 3px;
  min-height: 70px;
  transition: background-color 0.3s ease;
}

.stat-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.historical-aqi-stat-item::before {
  display: none;
}

/* Heatmap Cell Hover Popup */
.heatmap-cell {
  position: relative;
  cursor: pointer;
}

.heatmap-cell-popup {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.heatmap-cell-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
}

.heatmap-cell:hover .heatmap-cell-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

.popup-date {
  font-weight: 600;
  margin-bottom: 4px;
}

.popup-time {
  color: #b0b0b0;
  font-size: 11px;
  margin-bottom: 6px;
}

.popup-aqi {
  margin-bottom: 4px;
}

.popup-aqi strong {
  font-weight: 700;
  font-size: 14px;
}

.popup-category {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.5px;
}

.popup-no-data {
  color: #999;
  font-style: italic;
}

/* AQI Details Modal */
.aqi-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.aqi-details-modal.active {
  display: flex;
}

.aqi-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.aqi-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.aqi-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: all 0.2s ease;
  z-index: 1;
}

.aqi-modal-close:hover {
  background: #e0e0e0;
  color: #333;
  transform: rotate(90deg);
}

.aqi-modal-header {
  padding: 32px 32px 24px;
  border-bottom: 1px solid #e5e5e5;
}

.aqi-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.aqi-modal-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.aqi-modal-body {
  padding: 32px;
}

.aqi-value-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.aqi-value-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.aqi-value-number {
  font-size: 64px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1;
}

.aqi-value-indicator {
  width: 24px;
  height: 64px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.aqi-value-category {
  font-size: 18px;
  font-weight: 600;
  color: #666;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pollutant-details {
  margin-bottom: 24px;
}

.pollutant-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 16px 0;
}

.pollutant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.pollutant-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.pollutant-name {
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
  font-weight: 500;
}

.pollutant-value {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.pollutant-unit {
  font-size: 10px;
  color: #999;
}

.loading-pollutants {
  text-align: center;
  color: #999;
  padding: 20px;
  font-style: italic;
}

.health-recommendation {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  border-radius: 8px;
  padding: 16px 20px;
}

.health-rec-title {
  font-size: 14px;
  font-weight: 600;
  color: #1565c0;
  margin: 0 0 8px 0;
}

.health-rec-text {
  font-size: 14px;
  color: #424242;
  line-height: 1.6;
  margin: 0;
}

.historical-aqi-stat-label {
  font-family: Arial, sans-serif;
  font-size: 14.556px;
  line-height: 21.834px;
  color: #31343d;
  font-weight: 400;
  margin: 0;
}

.historical-aqi-stat-value {
  font-family: Arial, sans-serif;
  font-size: 24.26px;
  line-height: 14.556px;
  color: #31343d;
  font-weight: bold;
  margin: 0;
}

.historical-aqi-stat-time {
  font-family: Arial, sans-serif;
  font-size: 10.708px;
  line-height: 18.563px;
  color: #677580;
  margin: 0;
  white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .historical-aqi-graph-section {
    max-width: 100%;
    padding: 0 20px;
  }
  
  .historical-aqi-chart-wrapper {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .historical-aqi-stats-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    min-height: auto;
    margin-top: 1rem;
  }
  
  .historical-aqi-stat-item {
    flex: 1;
    min-width: 150px;
  }
  
  .stat-color-bar {
    min-height: 50px;
  }
  
  .historical-aqi-chart-grid {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .historical-aqi-graph-container {
    padding: 24px 16px;
  }
  
  .historical-aqi-graph-tabs {
    flex-wrap: wrap;
    gap: 12px;
  }
  
  .historical-aqi-download-btn {
    margin-left: 0;
  }
  
  .historical-district-selector,
  .station-district-selector {
    margin-left: 0;
    width: 100%;
  }
  
  .historical-district-dropdown,
  .station-district-dropdown {
    width: 100%;
    min-width: auto;
  }
  
  .aqi-bars-container {
    left: 50px;
    gap: 5px;
  }
  
  .aqi-bar-column {
    min-width: 15px;
  }
  
  .aqi-y-axis-days {
    width: 70px;
    font-size: 11px; /* Increased by 3px from 8px */
  }
  
  .aqi-heatmap-grid {
    left: 78px;
    right: 10px;
  }
  
  .aqi-x-axis-hours {
    left: 78px;
    right: 10px;
  }
  
  .aqi-heatmap-cell {
    min-width: 15px;
  }
  
  .historical-aqi-legend {
    gap: 12px;
  }
  
  .historical-aqi-legend-item {
    min-width: 70px;
  }
  
  .historical-aqi-stats-sidebar {
    flex-direction: column;
    width: 100%;
    padding: 1rem 0.75rem;
  }
  
  .historical-aqi-stat-item {
    width: 100%;
  }
  
  .stat-color-bar {
    min-height: 45px;
  }
  
  /* Modal responsive */
  .aqi-modal-content {
    max-width: 90%;
    margin: 20px;
  }
  
  .aqi-modal-header {
    padding: 24px 20px 20px;
  }
  
  .aqi-modal-title {
    font-size: 20px;
  }
  
  .aqi-modal-body {
    padding: 24px 20px;
  }
  
  .aqi-value-number {
    font-size: 48px;
  }
  
  .aqi-value-indicator {
    width: 20px;
    height: 48px;
  }
  
  .pollutant-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .historical-aqi-graph-header {
    gap: 6px;
  }
  
  .historical-aqi-graph-header .station-selector {
    min-width: 100%;
  }
  
  .historical-aqi-graph-header .station-dropdown {
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }
  
  .historical-aqi-graph-header .station-label {
    font-size: 0.8rem;
  }
  
  .historical-aqi-graph-subtitle {
    font-size: 11px;
    line-height: 16px;
  }

  .historical-aqi-graph-title {
    font-size: 20px;
    line-height: 24px;
    font-family: 'Segoe UI', sans-serif;
    color: #31343d;
    font-weight: 400;
  }
  
  .historical-aqi-graph-location {
    font-size: 14px;
    line-height: 18px;
  }
  
  .aqi-x-axis-label {
    font-size: 8px;
    line-height: 14px;
  }
  
  .aqi-y-axis-label {
    font-size: 10px;
  }
  
  .aqi-y-axis-days {
    width: 60px;
  }
  
  .aqi-y-axis-days .aqi-y-axis-label {
    font-size: 10px; /* Increased by 3px from 7px */
  }
  
  .aqi-heatmap-grid {
    left: 68px;
    right: 5px;
  }
  
  .aqi-x-axis-hours {
    left: 68px;
    right: 5px;
    font-size: 10px; /* Increased by 3px from 7px */
    overflow-x: auto;
  }
  
  .aqi-heatmap-cell {
    min-width: 12px;
    font-size: 10px; /* Increased by 3px from 7px */
  }
  
  .aqi-y-axis-days {
    width: 60px;
    font-size: 10px; /* Increased by 3px from 7px */
  }
  
  .historical-aqi-chart-wrapper {
    overflow-x: auto;
  }
  
  .historical-aqi-legend-item {
    min-width: 60px;
  }
  
  .historical-aqi-legend-label,
  .historical-aqi-legend-range {
    font-size: 9px;
  }
}

@media (max-width: 360px) {
  .aqi-heatmap-grid {
    left: 55px;
    right: 5px;
  }
  
  .aqi-x-axis-hours {
    left: 55px;
    right: 5px;
    font-size: 9px; /* Increased by 3px from 6px */
  }
  
  .aqi-heatmap-cell {
    min-width: 10px;
    font-size: 9px; /* Increased by 3px from 6px */
  }
  
  .aqi-y-axis-days {
    width: 50px;
    font-size: 9px; /* Increased by 3px from 6px */
  }
  
  .historical-aqi-legend {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .historical-aqi-legend-item {
    min-width: 55px;
  }
}

/* ========================================
   STATION RANKINGS TABLE
   Section 8 - Figma Node 154:19743
   ======================================== */

.station-rankings-section {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 1.673px 4.183px 29.28px 0px rgba(0, 0, 0, 0.07);
  width: 100%;
  /* max-width: 1178px;
  margin: 0 auto 60px auto; */
  position: relative;
}

/* Station Rankings Header - Heading and Dropdown in Same Row */
.station-rankings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  /* padding: 20px 20px 0; */
}

.station-rankings-header .section-heading-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.section-subheading {
  font-family: 'Arial', sans-serif;
  font-size: 13.144px;
  line-height: 19.666px;
  color: #1882ff;
  margin: 0;
  font-weight: 400;
}

.section-heading {
  font-family: 'Segoe UI', sans-serif;
  font-size: 25.116px;
  line-height: 28.406px;
  color: #31343d;
  margin: 0;
  font-weight: 400;
}

.station-rankings-header .station-district-selector {
  flex-shrink: 0;
}

.station-rankings-table {
  width: 100%;
  min-width: 800px;
  border-collapse: separate;
  border-spacing: 0;
  font-family: 'Arial', sans-serif;
}

.station-rankings-table-wrapper {
  overflow-x: auto;
  width: 100%;
}

/* Table Header */
.station-rankings-table thead {
  height: 68px;
}

.station-rankings-table thead th {
  font-size: 11.875px;
  font-weight: 400;
  color: #677580;
  line-height: 11.867px;
  text-align: center;
  padding: 28px 8px 28px 8px;
  vertical-align: middle;
}

.station-rankings-table thead th:first-child {
  text-align: left;
  padding-left: 32.96px;
}

.station-rankings-table thead th:nth-child(2) {
  text-align: left;
}

/* Table Body */
.station-rankings-table tbody tr {
  height: 40.118px;
}

.station-rankings-table tbody tr:nth-child(odd) {
  background: #fafafa;
}

.station-rankings-table tbody tr:nth-child(even) {
  background: #ffffff;
}

.station-rankings-table tbody td {
  font-size: 11.875px;
  font-weight: 400;
  color: #31343d;
  line-height: 17.804px;
  text-align: center;
  padding: 11px 8px;
  vertical-align: middle;
}

.station-rankings-table tbody td:first-child {
  text-align: left;
  padding-left: 32.96px;
  font-size: 11.318px;
}

.station-rankings-table tbody td:nth-child(2) {
  text-align: left;
}

/* AQI Badge */
.aqi-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 130, 255, 0.1);
  border: 0.802px solid #1882ff;
  border-radius: 5.616px;
  min-width: 37.711px;
  width: 37.711px;
  height: 22.466px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 9.772px;
  color: #1882ff;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

/* AQI Status Badge */
.aqi-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #1882ff;
  border: 0.802px solid #1882ff;
  border-radius: 5.616px;
  min-width: 65.793px;
  width: 65.793px;
  height: 22.466px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 9.772px;
  color: #ffffff;
  line-height: 1;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.aqi-status-icon {
  width: 19.256px;
  height: 19.256px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aqi-status-icon img {
  width: 100%;
  height: 100%;
  display: block;
  max-width: none;
}
.filter-dropdown{
  padding: 20px;
  display: flex;
  justify-content: end;
}

/* Responsive Design */
@media (max-width: 1200px) {
  /* .station-rankings-section {
    margin: 0 20px;
  } */
}

@media (max-width: 1024px) {
  .station-rankings-table {
    font-size: 10px;
  }
  
  .station-rankings-table thead th,
  .station-rankings-table tbody td {
    padding: 8px 6px;
  }
  
  .station-rankings-table thead th:first-child,
  .station-rankings-table tbody td:first-child {
    padding-left: 16px;
  }
  
  .aqi-badge {
    min-width: 35px;
    width: 35px;
    height: 21px;
    font-size: 9px;
  }
  
  .aqi-status-badge {
    min-width: 60px;
    width: 60px;
    height: 21px;
    font-size: 9px;
    gap: 3px;
  }
  
  .aqi-status-icon {
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 768px) {
  .station-rankings-section {
    overflow-x: auto;
    /* margin: 0 12px; */
  }
  
  .station-rankings-header {
    flex-direction: column;
    align-items: flex-start;
    /* padding: 16px 20px 0; */
  }
  
  .station-rankings-table {
    min-width: 1100px;
  }
  
  .historical-aqi-scale-labels {
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .historical-aqi-scale-label {
    min-width: calc(33.333% - 6px);
  }
}

@media (max-width: 480px) {
  /* .station-rankings-section {
    margin: 0 8px;
  } */
  
  /* .station-rankings-header {
    padding: 12px 16px 0;
  } */
  
  .station-rankings-table {
    min-width: 1000px;
    font-size: 9px;
  }
  
  .historical-aqi-scale-label-icon {
    width: 24px;
    height: 24px;
  }
  
  .historical-aqi-scale-label-text {
    font-size: 10px;
  }
  
  .historical-aqi-scale-label-range {
    font-size: 9px;
  }
  
  .aqi-badge {
    min-width: 32px;
    width: 32px;
    height: 20px;
    font-size: 8px;
    padding: 0 4px;
  }
  
  .aqi-status-badge {
    min-width: 56px;
    width: 56px;
    height: 20px;
    font-size: 8px;
    gap: 2px;
  }
  
  .aqi-status-icon {
    width: 16px;
    height: 16px;
  }
}

/* 4K and Large Screens */
@media (min-width: 2560px) {
  /* .station-rankings-section {
    max-width: 1800px;
  } */
  
  .historical-aqi-scale-label-icon {
    width: 32px;
    height: 32px;
  }
  
  .historical-aqi-scale-label-text {
    font-size: 12px;
  }
  
  .historical-aqi-scale-label-range {
    font-size: 11px;
  }
  
  .station-rankings-table thead th,
  .station-rankings-table tbody td {
    font-size: 14px;
    padding: 14px 12px;
  }
  
  .station-rankings-table tbody tr {
    height: 50px;
  }
  
  .aqi-badge {
    min-width: 45px;
    width: 45px;
    height: 28px;
    font-size: 12px;
  }
  
  .aqi-status-badge {
    min-width: 78px;
    width: 78px;
    height: 28px;
    font-size: 12px;
    gap: 6px;
  }
  
  .aqi-status-icon {
    width: 24px;
    height: 24px;
  }
}

/* ===================================
   Major Air Pollutants Section
   =================================== */

.major-air-pollutants-section {
  width: 100%;
  max-width: 1178px;
  padding: 0;
  background: transparent;
  margin: 0 auto 60px auto;
}

.major-pollutants-container {
  max-width: 1178px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 0 20px;
}

/* Header */
.major-pollutants-header {
  display: flex;
  flex-direction: column;
  gap: 8.377px;
}

.major-pollutants-title-section {
  display: flex;
  flex-direction: column;
  gap: 8.377px;
}

.major-pollutants-title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.major-pollutants-subtitle {
  font-family: 'Arial', sans-serif;
  font-size: 13.144px;
  line-height: 19.666px;
  color: #1882ff;
  margin: 0;
  font-weight: 400;
}

.major-pollutants-title {
  font-family: 'Segoe UI', sans-serif;
  font-size: 25.116px;
  font-weight: 400;
  line-height: 28.406px;
  color: #31343d;
  margin: 0;
}

.major-pollutants-location {
  font-family: 'Arial', sans-serif;
  font-size: 16.755px;
  font-weight: 400;
  line-height: 24.051px;
  color: #1882ff;
  margin: 0;
}

/* Pollutants Grid */
.major-pollutants-grid {
  display: grid;
  grid-template-columns: repeat(6, 165.871px);
  gap: 16.755px;
  width: 100%;
  justify-content: flex-start;
}

@media screen and (min-width: 1201px) {
  .major-pollutants-grid {
    justify-content: space-between;
  }
}

/* Individual Pollutant Card */
.pollutant-card {
  position: relative;
  background: rgba(219, 241, 252, 0.5);
  border-radius: 16.755px;
  width: 165.871px;
  height: 299.908px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pollutant-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(24, 130, 255, 0.15);
}

/* Icon Container */
.pollutant-icon-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 22.62px;
  height: 87.124px;
  flex-shrink: 0;
}

.pollutant-icon {
  width: 87.124px;
  height: 87.124px;
  object-fit: contain;
}

/* Name Section */
.pollutant-name-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 7.5px;
  padding: 0 24.294px;
  margin-top: 27.64px;
  flex-shrink: 0;
  width: 100%;
}

.pollutant-name {
  font-family: Arial, sans-serif;
  font-size: 13.823px;
  font-weight: 400;
  line-height: 13.848px;
  color: #31343d;
  margin: 0;
  white-space: normal;
  text-align: center;
  width: 100%;
}

.pollutant-formula {
  font-family: Arial, sans-serif;
  font-size: 13.823px;
  font-weight: 400;
  line-height: 13.848px;
  color: #31343d;
  margin: 0;
  text-align: center;
  width: 100%;
}

/* Value Section */
.pollutant-value-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: auto;
  padding-bottom: 44.73px;
  gap: 6px;
  flex-shrink: 0;
}

.pollutant-value {
  font-family: Arial, sans-serif;
  font-size: 37.195px;
  font-weight: 400;
  line-height: 35.52px;
  color: #31343d;
  margin: 0;
}

.pollutant-unit {
  font-family: Arial, sans-serif;
  font-size: 13.823px;
  font-weight: 400;
  line-height: 13.848px;
  color: #31343d;
  margin: 0;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
  .major-pollutants-grid {
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
  }
}

@media screen and (max-width: 768px) {
  .major-air-pollutants-section {
    padding: 30px 15px;
  }

  .major-pollutants-subtitle {
    font-size: 11px;
    line-height: 16px;
  }

  .major-pollutants-title {
    font-size: 20px;
    line-height: 24px;
    font-family: 'Segoe UI', sans-serif;
    color: #31343d;
    font-weight: 400;
  }

  .major-pollutants-location {
    font-size: 14px;
    line-height: 20px;
  }

  .major-pollutants-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    justify-items: center;
  }

  .pollutant-card {
    width: 145px;
    height: 260px;
  }

  .pollutant-icon-wrapper {
    padding-top: 18px;
    height: 75px;
  }

  .pollutant-icon {
    width: 75px;
    height: 75px;
  }

  .pollutant-name-section {
    margin-top: 22px;
    padding: 0 18px;
  }

  .pollutant-name,
  .pollutant-formula {
    font-size: 12px;
    line-height: 12px;
  }

  .pollutant-value-section {
    padding-bottom: 35px;
  }

  .pollutant-value {
    font-size: 32px;
    line-height: 30px;
  }

  .pollutant-unit {
    font-size: 12px;
    line-height: 12px;
  }
}

@media screen and (max-width: 480px) {
  .major-pollutants-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .pollutant-card {
    width: calc(50vw - 25px);
    max-width: 165.871px;
    height: auto;
    min-height: 240px;
  }
}

/* ========================================
   HEADER STYLES
   ======================================== */

/* Header Container */
.dashboard-header {
  background-color: #ffffff;
  box-shadow: 0px 4px 15px 0px rgba(0, 0, 0, 0.03);
  height: 90px;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.header-container {
  max-width: 100%;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 15px;
  overflow: hidden;
  box-sizing: border-box;
}

/* Left Logo Section */
.header-left-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.header-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.header-favicon {
  height: 32px;
  width: 32px;
  object-fit: contain;
}

.header-left-epa-logo {
  height: 76px;
  width: auto;
  object-fit: contain;
}

.header-aqi-logo {
  height: 76px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.epa-title {
  font-family: 'Montserrat', 'Arial', sans-serif;
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, #000000 0%, #1882ff 50%, #14b8a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
  display: block;
  visibility: visible;
  opacity: 1;
  position: relative;
  overflow: hidden;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) drop-shadow(0 4px 8px rgba(24, 130, 255, 0.2));
}

.epa-title::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shineEffect 4s infinite;
  pointer-events: none;
}

/* Navigation */
.header-navigation {
  flex: 0 1 auto;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  margin-left: auto;
  margin-right: 10px;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 8px;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: #4a5568;
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.01em;
  background: transparent;
  border: 1px solid transparent;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--nav-hover-color, #1882ff);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-link::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: navShine 5s infinite;
  pointer-events: none;
}

.nav-link:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(24, 130, 255, 0.3);
  border-color: rgba(24, 130, 255, 0.2);
}

.nav-link:hover::before {
  opacity: 1;
}

.nav-link.active {
  color: #ffffff;
  background: var(--nav-active-color, #1882ff);
  /* background: #60ba48; */
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(24, 130, 255, 0.4), 
              0 0 20px rgba(24, 130, 255, 0.3),
              inset 0 0 20px rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  animation: activeGlow 3s ease-in-out infinite;
}

.nav-link.active::after {
  animation: navShineActive 3s infinite;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.nav-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Keyframe Animations for Header */
@keyframes shineEffect {
  0% {
    left: -150%;
  }
  100% {
    left: 150%;
  }
}

@keyframes navShine {
  0% {
    left: -150%;
  }
  100% {
    left: 150%;
  }
}

@keyframes navShineActive {
  0% {
    left: -150%;
  }
  50% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}

@keyframes activeGlow {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(24, 130, 255, 0.4), 
                0 0 20px rgba(24, 130, 255, 0.3),
                inset 0 0 20px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 6px 30px rgba(24, 130, 255, 0.6), 
                0 0 30px rgba(24, 130, 255, 0.5),
                inset 0 0 30px rgba(255, 255, 255, 0.2);
  }
}

@keyframes mobileActiveGlow {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 
                0 0 15px rgba(255, 255, 255, 0.2),
                inset 0 0 15px rgba(255, 255, 255, 0.15);
  }
  50% {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4), 
                0 0 25px rgba(255, 255, 255, 0.3),
                inset 0 0 25px rgba(255, 255, 255, 0.25);
  }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: var(--nav-active-color, #1882ff);
  border: none;
  cursor: pointer;
  padding: 12px;
  flex-direction: column;
  gap: 4px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(24, 130, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1px;
  position: relative;
  z-index: 1;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Header Spacer */
.header-spacer {
  flex: 1;
}

/* Right Logos */
.header-right-logos {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-cm-logo {
  flex-shrink: 0;
}

.header-cm-logo a {
  display: block;
}

.header-cm-logo img {
  height: 76px;
  width: auto;
  object-fit: contain;
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.mobile-nav-overlay.active {
  display: block;
  backdrop-filter: blur(4px);
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100%;
  background: var(--nav-active-color, #1882ff);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 100px 0 20px;
  overflow-y: auto;
  backdrop-filter: blur(20px);
}

.mobile-nav-menu.active {
  right: 0;
}

/* Mobile Menu Close Button */
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #ffffff;
  padding: 0;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mobile-menu-close svg {
  width: 24px;
  height: 24px;
}

.mobile-nav-menu .nav-menu {
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  padding: 0 20px;
  background: transparent;
  box-shadow: none;
  border: none;
}

.mobile-nav-menu .nav-item {
  border-bottom: none;
  margin-bottom: 4px;
}

.mobile-nav-menu .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.mobile-nav-menu .nav-icon {
  width: 20px;
  height: 20px;
}

.mobile-nav-menu .nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateX(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.mobile-nav-menu .nav-link.active {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 
              0 0 15px rgba(255, 255, 255, 0.2),
              inset 0 0 15px rgba(255, 255, 255, 0.15);
  transform: translateX(4px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: mobileActiveGlow 3s ease-in-out infinite;
}

/* Footer EPA Logo */
.footer-epa-logo {
  margin: -10px 0 15px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.footer-epa-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
}
@media (max-width: 768px) {
  .footer-epa-logo{
    justify-content: center;
  }
}

/* ========================================
   HEADER RESPONSIVE BREAKPOINTS
   ======================================== */

/* Large Screens */
@media (min-width: 1600px) {
  .header-left-logo {
    flex-shrink: 0;
  }
  
  .epa-title {
    flex-shrink: 0;
    white-space: nowrap;
  }
  
  .header-navigation {
    justify-content: flex-end;
    margin-right: 15px;
    flex-shrink: 1;
    min-width: 0;
  }
  
  .nav-link {
    font-size: 15px;
    padding: 12px 16px;
  }
  
  .nav-menu {
    gap: 6px;
    flex-wrap: nowrap;
  }
  
  .header-right-logos {
    flex-shrink: 0;
  }
}

/* Desktop */
@media (min-width: 1200px) and (max-width: 1599px) {
  .header-left-logo {
    flex-shrink: 0;
  }
  
  .epa-title {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 16px;
  }
  
  .header-navigation {
    justify-content: flex-end;
    margin-right: 12px;
    flex-shrink: 1;
    min-width: 0;
  }
  
  .nav-link {
    font-size: 14px;
    padding: 9px 12px;
  }
  
  .nav-menu {
    gap: 3px;
    flex-wrap: nowrap;
  }
  
  .header-right-logos {
    flex-shrink: 0;
  }
}

/* Medium Desktop */
@media (min-width: 1024px) and (max-width: 1199px) {
  .header-container {
    padding: 0 15px;
    gap: 10px;
  }
  
  .header-left-logo {
    flex-shrink: 0;
  }
  
  .epa-title {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 15px;
  }
  
  .header-navigation {
    justify-content: flex-end;
    margin-right: 10px;
    flex-shrink: 1;
    min-width: 0;
  }
  
  .nav-link {
    font-size: 14px;
    padding: 8px 10px;
    gap: 4px;
  }
  
  .nav-menu {
    gap: 2px;
    flex-wrap: nowrap;
  }
  
  .header-favicon {
    height: 28px;
    width: 28px;
  }
  
  .header-left-epa-logo {
    height: 65px;
  }
  
  .header-aqi-logo {
    height: 65px;
  }
  
  .header-cm-logo img {
    height: 65px;
  }
  
  .header-right-logos {
    flex-shrink: 0;
  }
}

/* Small Desktop */
@media (min-width: 769px) and (max-width: 1023px) {
  .header-container {
    padding: 0 12px;
    gap: 8px;
  }
  
  .header-left-logo {
    gap: 10px;
    flex-shrink: 0;
  }
  
  .epa-title {
    font-size: 13px;
    flex-shrink: 0;
    white-space: nowrap;
  }
  
  .header-navigation {
    justify-content: flex-end;
    margin-right: 8px;
    flex-shrink: 1;
    min-width: 0;
  }
  
  .nav-link {
    font-size: 12px;
    padding: 7px 6px;
    gap: 3px;
  }
  
  .nav-link span {
    display: inline;
  }
  
  .nav-menu {
    gap: 1px;
    padding: 5px;
    flex-wrap: nowrap;
  }
  
  .nav-icon {
    width: 13px;
    height: 13px;
  }
  
  .header-favicon {
    height: 26px;
    width: 26px;
  }
  
  .header-left-epa-logo {
    height: 60px;
  }
  
  .header-aqi-logo {
    height: 60px;
  }
  
  .header-cm-logo img {
    height: 60px;
  }
  
  .header-right-logos {
    flex-shrink: 0;
  }
}

/* Tablet and Mobile */
@media (max-width: 768px) {
  .dashboard-header {
    height: 70px;
  }
  
  .header-container {
    padding: 0 10px;
    gap: 6px;
    justify-content: space-between;
  }
  
  .header-navigation {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
    margin-left: 0;
  }
  
  .header-left-logo {
    gap: 6px;
    flex-shrink: 0;
  }
  
  .header-spacer {
    display: none !important;
  }
  
  .header-right-logos {
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
  }
  
  .header-favicon {
    height: 24px;
    width: 24px;
  }
  
  .header-left-epa-logo {
    height: 50px;
  }
  
  .header-aqi-logo {
    height: 50px;
  }
  
  .header-cm-logo img {
    height: 50px;
  }
  
  .epa-title {
    font-size: 14px;
    white-space: nowrap;
    line-height: 1.1;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .footer-epa-logo-img {
    height: 60px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .dashboard-header {
    height: 60px;
  }
  
  .header-container {
    padding: 0 8px;
    gap: 5px;
    justify-content: space-between;
  }
  
  .header-left-logo {
    gap: 5px;
    flex-shrink: 0;
  }
  
  .header-spacer {
    display: none !important;
  }
  
  .header-right-logos {
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
  }
  
  .header-favicon {
    height: 20px;
    width: 20px;
  }
  
  .header-left-epa-logo {
    height: 40px;
  }
  
  .header-aqi-logo {
    height: 40px;
  }
  
  .header-cm-logo img {
    height: 40px;
  }
  
  .epa-title {
    font-size: 12px;
    line-height: 1.0;
    white-space: nowrap;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .mobile-menu-toggle {
    padding: 8px;
    flex-shrink: 0;
  }
  
  .hamburger-line {
    width: 16px;
  }
  
  .footer-epa-logo-img {
    height: 50px;
  }
}

/* Hide wind toggle button on map modal */
.punjab-data-card-wind-toggle,
.wind-toggle-button {
  display: none !important;
}


.ah-container{
  max-width: 1920px;
  padding-left: 6%;
  padding-right: 6%;
  margin: 0 auto;
}
.h2,
.h2 h2,
.h2 h3,
.h2 h4{
  font-size: 44px !important;
  line-height: 1.2em !important;
  font-weight: 600 !important;
}
.title,
.title h2,
.title h3,
.title h4, 
.title h5,
.title span{
  font-size: 16px !important;
  line-height: 1.6em !important;
}
@media (max-width: 992px){
  .h2,
  .h2 h2,
  .h2 h3,
  .h2 h4{
    font-size: 40px !important;
  }
}
@media (max-width: 768px){
  .h2,
  .h2 h2,
  .h2 h3,
  .h2 h4{
    font-size: 36px !important;
  }
}
@media (max-width: 575px){
  .h2,
  .h2 h2,
  .h2 h3,
  .h2 h4{
    font-size: 32px !important;
  }
}





.h4,
.h4 h2,
.h4 h3,
.h4 h4{
  font-size: 28px !important;
  line-height: 1.2em !important;
  font-weight: 600 !important;
}
@media (max-width: 768px){
  .h4,
  .h4 h2,
  .h4 h3,
  .h4 h4{
    font-size: 24px !important;
  }
}
