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

html {
  font-size: 16px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

* {
  box-sizing: inherit;
}

:root {
  --bg-primary: #0f1419;
  --bg-secondary: #1a2332;
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --accent-blue: #3b82f6;
  --accent-orange: #f97316;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --sidebar-width: 5rem;
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --glass-blur: 30px;
  --glass-bg: rgba(255, 255, 255, 0.1);
}

/* Ensure proper sizing for touch targets on mobile */
@media (max-width: 768px) {
  :root {
    --spacing-sm: 0.5rem;
    --spacing-md: 0.75rem;
  }
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-image: url('bg3.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

@media (max-width: 768px) {
  body {
    position: relative;
    height: auto;
    overflow: auto;
  }
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 20, 25, 0.55);
  pointer-events: none;
  z-index: 0;
}

.container {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container {
    display: flex;
    width: 100vw;
    height: auto;
    min-height: 100vh;
    max-width: 100%;
    flex-direction: column;
    box-sizing: border-box;
    overflow-x: hidden;
  }
}

/* SIDEBAR */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: rgba(26, 35, 50, 0.7);
  backdrop-filter: blur(var(--glass-blur));
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 0;
  gap: 2.5rem;
  overflow-y: auto;
}

.logo {
  font-size: clamp(1.5rem, 2vw, 2rem);
  color: var(--accent-blue);
  cursor: pointer;
  flex-shrink: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

.nav-btn {
  min-width: 3rem;
  min-height: 3rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  cursor: pointer;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-btn:hover {
  background-color: var(--bg-glass);
  color: var(--accent-blue);
}

.nav-btn.active {
  background-color: var(--accent-blue);
  color: var(--text-primary);
}

.settings-btn {
  min-width: 3rem;
  min-height: 3rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  cursor: pointer;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.settings-btn:hover {
  background-color: var(--bg-glass);
  color: var(--accent-blue);
}

/* MAIN CONTENT */
/* MAIN CONTENT */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  width: 100%;
}

/* ATTENTION BANNER */
.attention-banner {
  margin: 1rem 2rem 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px) saturate(130%);
  border-radius: 1rem;
}

.attention-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.attention-banner-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.attention-banner-left i {
  font-size: 1.5rem;
  color: #ffba63;
  min-width: 1.5rem;
  filter: drop-shadow(0 4px 10px rgba(255, 186, 99, 0.45));
}

.attention-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.attention-banner-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
  letter-spacing: 0.15px;
}

.attention-banner-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
}

.attention-banner-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.attention-banner-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fefefe;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.55rem 1.05rem;
  border-radius: 0.65rem;
  cursor: pointer;
  font-weight: 650;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.attention-banner-btn.primary {
  background: linear-gradient(135deg, rgba(255, 184, 84, 0.6), rgba(255, 149, 64, 0.6));
  border-color: rgba(255, 184, 84, 0.85);
  color: #1b1307;
  box-shadow: 0 8px 22px rgba(255, 184, 84, 0.35);
}

.attention-banner-btn.ghost {
  color: #ffdeae;
}

.attention-banner-btn.soft {
  color: #fefefe;
  border-color: rgba(255, 255, 255, 0.28);
}

.attention-banner-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 20, 25, 0.5);
  backdrop-filter: blur(var(--glass-blur));
  flex-shrink: 0;
  gap: 1rem;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.welcome-text {
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  color: var(--text-secondary);
  font-weight: 500;
}

.header-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.real-time-clock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-glass);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 600;
  min-width: fit-content;
  white-space: nowrap;
}

.real-time-clock i {
  color: var(--accent-blue);
  font-size: 1rem;
}

.header-btn {
  min-width: 2.5rem;
  min-height: 2.5rem;
  border: none;
  background: var(--bg-glass);
  color: var(--text-secondary);
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent-blue);
}

.avatar {
  min-width: 2.5rem;
  min-height: 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), #1e40af);
  cursor: pointer;
  flex-shrink: 0;
}

/* CONTENT WRAPPER */
.content-wrapper {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  flex: 1;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  height: 100%;
}

.left-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
  min-height: 0;
  width: 100%;
}

/* WEATHER HERO */
.weather-hero {
  background: rgba(26, 35, 50, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2rem;
  backdrop-filter: blur(30px);
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.weather-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.weather-icon-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.weather-icon {
  font-size: 4rem;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.weather-temp-display {
  display: flex;
  justify-content: center;
  align-items: center;
}

.weather-temperature {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.weather-details-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.weather-condition-text,
.weather-location-info,
.weather-datetime-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.weather-condition-text i,
.weather-location-info i,
.weather-datetime-info i {
  font-size: 0.9rem;
  color: var(--accent-blue);
  opacity: 0.8;
}

/* TOP HIGHLIGHTS CONTAINER */
.top-highlights-container {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.weather-hero {
  flex: 0 0 42%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.5rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
}

.weather-hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.06), transparent 70%);
  top: -80px;
  right: -100px;
  pointer-events: none;
}

.weather-hero-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
}

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.location-pill i {
  font-size: 1rem;
}


.weather-hero-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.weather-left {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.weather-day {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f3f4f6;
}

.weather-date {
  font-size: 0.95rem;
  color: #cbd5e1;
}

.weather-temp-block {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.35rem;
}

.main-temp {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.temp-range {
  font-size: 0.95rem;
  color: #9ca3af;
}

.weather-installation-info {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(14, 165, 233, 0.05));
  border-left: 3px solid #38bdf8;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.weather-installation-info:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(14, 165, 233, 0.08));
  transform: translateX(2px);
}

.weather-right {
  display: grid;
  justify-items: end;
  gap: 0.25rem;
  text-align: right;
}

.weather-illustration {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: linear-gradient(140deg, rgba(251, 191, 36, 0.2), rgba(59, 130, 246, 0.15));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.weather-illustration i {
  font-size: 2.25rem;
  color: #fbbf24;
}

.weather-condition {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f3f4f6;
}

.weather-feels {
  font-size: 0.95rem;
  color: #cbd5e1;
}

@media (max-width: 1024px) {
  .weather-hero {
    flex: 1 1 100%;
  }
  .weather-hero-body {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .weather-right {
    justify-items: start;
    text-align: left;
  }
}

.todays-highlights {
  flex: 1;
  background: rgba(26, 35, 50, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 1.5rem;
  backdrop-filter: blur(30px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.geo-location-map {
  flex: 1.1;
  border-radius: 1.5rem;
  overflow: hidden;
  background: rgba(26, 35, 50, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  height: 260px;
  max-height: 320px;
  order: -1;
}

.static-map-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
}

.static-map-container .leaflet-container {
  width: 100%;
  height: 100%;
  border-radius: 1.5rem;
}

.map-image {
  width: 100%;
  height: 100%;
  display: block;
  flex-shrink: 0;
  border-radius: inherit;
  overflow: hidden;
}

/* Dark theme for OpenStreetMap tiles */
.map-tiles-dark {
  filter: invert(0%) hue-rotate(180deg) brightness(0.7) contrast(1.1);
}

/* Hide Leaflet attribution watermark */
.leaflet-control-attribution {
  display: none !important;
}

/* Hide Leaflet zoom controls */
.leaflet-control-zoom {
  display: none !important;
}

/* Custom popup styling */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

.leaflet-popup-content {
  margin: 0 !important;
}

/* Pulse animation for location label */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Map live data overlay */
.map-live-overlay {
  pointer-events: auto;
}

.map-info-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 20, 25, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #e5e7eb;
  pointer-events: none;
  z-index: 1200;
}

.map-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.map-location {
  color: #f3f4f6;
}

.map-updated {
  color: #9ca3af;
  font-size: 0.82rem;
  font-weight: 500;
}

.map-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.map-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
              linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
              url('morong-map.gif');
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-label {
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.map-value {
  font-size: 1rem;
  font-weight: 700;
  color: #f3f4f6;
}

.static-map-container svg {
  width: 100%;
  height: 100%;
  display: block;
  preserveAspectRatio: xMidYMid slice;
}

.map-overlay-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
  z-index: 300;
  border-radius: 1.5rem;
}

.location-card-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 1200;
}

.location-card {
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  padding: 1rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.card-content {
  flex: 1;
}

.card-title {
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-location {
  margin: 0 0 0.5rem 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.card-details {
  display: flex;
  gap: 0.5rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.detail-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
}

.detail-value {
  font-size: 0.85rem;
  color: var(--accent-blue);
  font-weight: 500;
}

.card-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #ef4444;
  border-radius: 50%;
  color: white;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.geo-map-display {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 1.5rem;
}

.highlights-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.highlights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.highlight-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.highlight-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.highlight-unit {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.highlight-chart {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  color: var(--accent-blue);
  opacity: 0.7;
}

/* FORECAST SECTION */
.forecast-section {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 2.5rem;
  padding: 2rem;
  backdrop-filter: blur(var(--glass-blur));
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
}

.section-title {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.75rem, 2vw, 1rem);
}

.forecast-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.forecast-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.forecast-card .day {
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.forecast-card i {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-secondary);
  margin: 0.5rem 0;
}

.forecast-card .temp {
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.75rem 0 0.25rem;
}

.forecast-card .condition {
  font-size: clamp(0.7rem, 0.9vw, 0.75rem);
  color: var(--text-secondary);
}

/* METRICS GRID */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  flex-shrink: 0;
}

.metric-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 2.5rem;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
  transition: all 0.3s ease;
}

.metric-label {
  font-size: clamp(0.7rem, 1vw, 0.75rem);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-icon {
  min-width: 3rem;
  min-height: 3rem;
  width: clamp(2.5rem, 4vw, 3.5rem);
  height: clamp(2.5rem, 4vw, 3.5rem);
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin-left: auto;
  flex-shrink: 0;
}

.temp-icon {
  background: linear-gradient(135deg, #f97316, #fb923c);
}

.humidity-icon {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.heat-icon {
  background: linear-gradient(135deg, #f97316, #fbbf24);
}

.water-icon {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.rain-icon {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

.air-icon {
  background: linear-gradient(135deg, #10b981, #34d399);
}

.metric-value {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--text-primary);
}

/* ALERTS SECTION */
.alerts-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0;
  order: -1;
}

.alert-card {
  flex: 1;
  min-width: auto;
  border-radius: 2rem;
  padding: clamp(1rem, 2vw, 1.25rem);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
  width: 100%;
}

.alert-earthquake {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.15);
}

.alert-flood {
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.15);
}

.alert-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: clamp(0.8rem, 1.2vw, 0.875rem);
}

.alert-earthquake .alert-header {
  color: #fecaca;
}

.alert-flood .alert-header {
  color: #fed7aa;
}

.alert-header i {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  flex-shrink: 0;
}

.alert-info {
  font-size: clamp(0.75rem, 1vw, 0.8125rem);
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
}

.alert-status {
  font-size: clamp(0.7rem, 0.9vw, 0.75rem);
  color: #ffb4b4;
}

.alert-flood .alert-status {
  color: #fed7aa;
}

/* RIGHT SECTION - LOCATIONS */
.right-section {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: auto;
  min-width: 280px;
  max-width: 350px;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
}

.location-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  backdrop-filter: blur(var(--glass-blur));
  flex-shrink: 0;
}

.location-display i {
  color: var(--accent-blue);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.locations-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.8rem, 1.2vw, 0.875rem);
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0 0.25rem;
  flex-shrink: 0;
}

.locations-title i {
  color: var(--text-secondary);
  font-size: clamp(0.875rem, 1.5vw, 1rem);
}

.location-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 1.75rem;
  padding: 1.25rem;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(var(--glass-blur));
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.location-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.location-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.location-name {
  font-size: clamp(0.8rem, 1.2vw, 0.875rem);
  font-weight: 600;
  color: var(--text-primary);
}

.location-header i {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.location-temp {
  font-size: clamp(1rem, 2vw, 1.375rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.location-condition {
  font-size: clamp(0.7rem, 1vw, 0.75rem);
  color: var(--text-secondary);
}

/* FLOOD FORECAST SECTION */
.flood-installation-info {
  margin: 0.75rem 0;
  padding: 0.6rem 0.75rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(14, 165, 233, 0.05));
  border-left: 3px solid #38bdf8;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.flood-installation-info:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(14, 165, 233, 0.08));
  transform: translateX(2px);
}

.flood-forecast-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.flood-item {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.flood-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.flood-item-time {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.flood-item-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #3b82f6;
}

.flood-forecast-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 1.75rem;
  padding: 1.25rem;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(var(--glass-blur));
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.flood-forecast-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.flood-time {
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.flood-level-display {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.flood-level-value {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--text-primary);
}

.flood-level-unit {
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  color: var(--text-secondary);
}

.flood-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.flood-trend {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.flood-trend-up {
  color: #ef4444;
}

.flood-trend-down {
  color: #10b981;
}

.flood-trend-stable {
  color: #f97316;
}

.flood-risk-badge {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.risk-low {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.risk-normal {
  background: rgba(249, 115, 22, 0.2);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.risk-high {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.flood-confidence {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.confidence-bar {
  flex: 1;
  height: 0.25rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 0.125rem;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  transition: width 0.5s ease;
}

/* SCROLLBAR STYLING */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* RESPONSIVE DESIGN - All breakpoints */

/* Prevent zooming issues on inputs and buttons */
input, button, select, textarea {
  font-size: 16px; /* Prevents auto-zoom on iOS */
}

/* Large Desktop (1600px and up) */
@media (min-width: 1600px) {
  .content-wrapper {
    gap: 2rem;
    padding: 2rem;
  }
  
  .forecast-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop (1200px to 1599px) */
@media (max-width: 1599px) and (min-width: 1200px) {
  .content-wrapper {
    gap: 1.5rem;
    padding: 1.5rem 2rem;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .right-section {
    flex-shrink: 0;
    min-width: 300px;
    max-width: 350px;
  }
}

/* Laptop/Small Desktop (1025px to 1199px) */
@media (max-width: 1199px) and (min-width: 1025px) {
  .content-wrapper {
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .right-section {
    flex-shrink: 0;
    min-width: 250px;
    max-width: 300px;
  }
  
  .forecast-grid {
    grid-template-columns: repeat(auto-fit, minmax(55px, 1fr));
  }
}

/* Tablet Landscape (769px to 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .container {
    min-height: 100vh;
    height: auto;
  }
  
  .sidebar {
    flex-shrink: 0;
    width: 5rem;
  }
  
  .main-content {
    overflow: auto;
  }
  
  .content-wrapper {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem;
  }
  
  .left-section {
    flex: 1;
    width: 100%;
  }
  
  .right-section {
    order: -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 100%;
    min-width: 100%;
    width: 100%;
    height: auto;
  }
  
  .location-card {
    flex: 0 1 calc(50% - 0.5rem);
    min-width: 150px;
  }
  
  .alerts-section {
    width: 100%;
  }
  
  .alert-card {
    min-width: auto;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
  
  .forecast-grid {
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  }
  
  .header {
    padding: 1rem 1.25rem;
  }
}

/* iPad and Tablet Portrait (481px to 768px) */
@media (max-width: 768px) and (min-width: 481px) {
  html, body {
    height: auto;
  }
  
  body {
    position: relative;
    overflow: auto;
  }
  
  .container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
    overflow-y: hidden;
  }
  
  .logo {
    flex-shrink: 0;
    font-size: 1.5rem;
  }
  
  .sidebar-nav {
    flex-direction: row;
    flex: 1;
    gap: 0.75rem;
    overflow-x: auto;
  }
  
  .nav-btn {
    min-width: 2.5rem;
    min-height: 2.5rem;
    font-size: 1rem;
  }
  
  .settings-btn {
    margin-left: auto;
    flex-shrink: 0;
    min-width: 2.5rem;
    min-height: 2.5rem;
  }
  
  .main-content {
    overflow: auto;
    height: auto;
  }
  
  .header {
    padding: 1rem;
    gap: 0.75rem;
  }
  
  .header-left {
    flex: 1;
    min-width: 0;
  }
  
  .header-right {
    gap: 0.75rem;
    flex-wrap: wrap;
  }
  
  .content-wrapper {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .left-section {
    width: 100%;
    gap: 1rem;
  }
  
  .right-section {
    order: -1;
    width: 100%;
    max-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    height: auto;
    overflow: visible;
  }
  
  .alerts-section {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .alert-card {
    flex: 0 1 calc(50% - 0.5rem);
    min-width: 120px;
  }
  
  .locations-title {
    width: 100%;
    flex-shrink: 0;
  }
  
  .location-card {
    flex: 0 1 calc(50% - 0.5rem);
    min-width: 120px;
  }
  
  .forecast-grid {
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  }
  
  .metrics-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  
  .weather-hero {
    padding: 1.5rem;
  }
  
  .forecast-section {
    padding: 1.5rem;
  }
}

/* Large Phone (321px to 480px) */
@media (max-width: 480px) and (min-width: 321px) {
  html, body {
    height: auto;
  }
  
  body {
    position: relative;
    overflow: auto;
  }
  
  .container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    padding: 0.5rem 0.75rem;
    gap: 0.5rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
    overflow-y: hidden;
  }
  
  .logo {
    flex-shrink: 0;
    font-size: 1.25rem;
  }
  
  .sidebar-nav {
    flex-direction: row;
    flex: 1;
    gap: 0.5rem;
    overflow-x: auto;
  }
  
  .nav-btn {
    min-width: 2.25rem;
    min-height: 2.25rem;
    font-size: 0.875rem;
  }
  
  .settings-btn {
    margin-left: auto;
    flex-shrink: 0;
    min-width: 2.25rem;
    min-height: 2.25rem;
  }
  
  .main-content {
    overflow: auto;
    height: auto;
  }
  
  .header {
    padding: 0.75rem;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  
  .header-left {
    flex: 1;
    min-width: 0;
  }
  
  .header-title {
    font-size: 1.25rem;
  }
  
  .header-right {
    gap: 0.5rem;
    width: 100%;
    justify-content: space-between;
  }
  
  .header-btn {
    min-width: 2rem;
    min-height: 2rem;
    font-size: 0.75rem;
  }
  
  .avatar {
    min-width: 2rem;
    min-height: 2rem;
    width: 2rem;
    height: 2rem;
  }
  
  .content-wrapper {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem;
  }
  
  .left-section {
    width: 100%;
    gap: 0.75rem;
  }
  
  .weather-hero {
    padding: 1rem;
    border-radius: 1.5rem;
  }
  
  .weather-title {
    font-size: 1.5rem;
  }
  
  .weather-desc {
    font-size: 0.75rem;
  }
  
  .forecast-section {
    padding: 1rem;
    border-radius: 1.5rem;
  }
  
  .forecast-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }
  
  .forecast-card {
    padding: 0.75rem;
    border-radius: 1rem;
  }
  
  .forecast-card i {
    font-size: 1.25rem;
  }
  
  .forecast-card .day {
    font-size: 0.65rem;
  }
  
  .forecast-card .temp {
    font-size: 0.875rem;
  }
  
  .forecast-card .condition {
    font-size: 0.65rem;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .metric-card {
    padding: 1rem;
  }
  
  .metric-icon {
    min-width: 2.25rem;
    min-height: 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1rem;
  }
  
  .metric-label {
    font-size: 0.65rem;
  }
  
  .metric-value {
    font-size: 1.25rem;
  }
  
  .right-section {
    order: -1;
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.75rem;
    height: auto;
    overflow: visible;
  }
  
  .alerts-section {
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .alert-card {
    width: 100%;
    padding: 0.875rem;
    min-width: auto;
  }
  
  .alert-header {
    font-size: 0.75rem;
    gap: 0.5rem;
  }
  
  .alert-info {
    font-size: 0.7rem;
  }
  
  .alert-status {
    font-size: 0.65rem;
  }
  
  .locations-title {
    width: 100%;
    font-size: 0.75rem;
  }
  
  .location-card {
    width: 100%;
    padding: 1rem;
    border-radius: 1.25rem;
  }
  
  .location-name {
    font-size: 0.75rem;
  }
  
  .location-temp {
    font-size: 1.125rem;
  }
  
  .location-condition {
    font-size: 0.65rem;
  }
}

/* Small Phone (up to 320px) */
@media (max-width: 320px) {
  html, body {
    height: auto;
  }
  
  body {
    position: relative;
    overflow: auto;
  }
  
  .container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    padding: 0.5rem;
    gap: 0.35rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
  }
  
  .logo {
    flex-shrink: 0;
    font-size: 1rem;
  }
  
  .sidebar-nav {
    flex-direction: row;
    flex: 1;
    gap: 0.35rem;
    overflow-x: auto;
  }
  
  .nav-btn {
    min-width: 2rem;
    min-height: 2rem;
    font-size: 0.75rem;
  }
  
  .settings-btn {
    min-width: 2rem;
    min-height: 2rem;
  }
  
  .header {
    padding: 0.5rem;
    gap: 0.35rem;
  }
  
  .header-left {
    min-width: 0;
  }
  
  .header-title {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .welcome-text {
    font-size: 0.65rem;
  }
  
  .header-right {
    gap: 0.35rem;
  }
  
  .header-btn {
    min-width: 1.75rem;
    min-height: 1.75rem;
  }
  
  .avatar {
    min-width: 1.75rem;
    min-height: 1.75rem;
    width: 1.75rem;
    height: 1.75rem;
  }
  
  .content-wrapper {
    gap: 0.5rem;
    padding: 0.5rem;
  }
  
  .left-section {
    gap: 0.5rem;
  }
  
  .weather-hero {
    padding: 0.75rem;
    border-radius: 1rem;
  }
  
  .label {
    font-size: 0.6rem;
  }
  
  .weather-title {
    font-size: 1.25rem;
    margin-top: 0.5rem;
  }
  
  .weather-desc {
    font-size: 0.7rem;
    line-height: 1.4;
    margin-top: 0.5rem;
  }
  
  .forecast-section {
    padding: 0.75rem;
    border-radius: 1.25rem;
  }
  
  .section-title {
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .forecast-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }
  
  .forecast-card {
    padding: 0.6rem;
    border-radius: 0.875rem;
  }
  
  .forecast-card .day {
    font-size: 0.6rem;
  }
  
  .forecast-card i {
    font-size: 1rem;
  }
  
  .forecast-card .temp {
    font-size: 0.75rem;
  }
  
  .forecast-card .condition {
    font-size: 0.6rem;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .metric-card {
    padding: 0.75rem;
    flex-direction: column;
  }
  
  .metric-label {
    font-size: 0.6rem;
  }
  
  .metric-value {
    font-size: 1rem;
    order: -1;
  }
  
  .metric-icon {
    min-width: 2rem;
    min-height: 2rem;
    width: 2rem;
    height: 2rem;
    font-size: 0.875rem;
    margin-left: 0;
  }
  
  .right-section {
    gap: 0.5rem;
  }
  
  .alerts-section {
    gap: 0.5rem;
    flex-direction: column;
  }
  
  .alert-card {
    padding: 0.75rem;
    width: 100%;
  }
  
  .alert-header {
    font-size: 0.7rem;
    gap: 0.4rem;
  }
  
  .alert-info {
    font-size: 0.65rem;
  }
  
  .alert-status {
    font-size: 0.6rem;
  }
  
  .locations-title {
    font-size: 0.7rem;
  }
  
/* NOTIFICATION POPUP */
.notification-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 400px;
  background: rgba(26, 35, 50, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 10000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.notification-popup.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.notification-content {
  display: flex;
  align-items: center;
  padding: 1rem;
  gap: 0.75rem;
}

.notification-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.notification-icon i {
  color: var(--text-primary);
}

.notification-popup.earthquake .notification-icon {
  background: var(--accent-red);
}

.notification-popup.flood .notification-icon {
  background: var(--accent-blue);
}

.notification-popup.air-quality .notification-icon {
  background: var(--accent-orange);
}

.notification-popup.heat-index .notification-icon {
  background: #ff6b35;
}

.notification-text {
  flex: 1;
  min-width: 0;
}

.notification-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
}

.notification-message {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.notification-close i {
  font-size: 0.875rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .notification-popup {
    width: calc(100% - 40px);
    max-width: 350px;
    transform: translate(-50%, -50%) scale(0.8);
  }
  
  .notification-popup.show {
    transform: translate(-50%, -50%) scale(1);
  }
}
  .location-card {
    padding: 0.75rem;
    border-radius: 1rem;
  }
  
  .location-name {
    font-size: 0.7rem;
  }
  
  .location-temp {
    font-size: 1rem;
    margin-bottom: 0.15rem;
  }
  
  .location-condition {
    font-size: 0.6rem;
  }
  
  /* Responsive top highlights container */
  .top-highlights-container {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .weather-hero {
    flex: 1 1 auto;
  }
  
  .todays-highlights {
    flex: 1 1 auto;
  }
  
  .geo-location-map {
    flex: 1 1 auto;
    min-height: 250px;
  }
  
  .static-map-container {
    min-height: 250px;
  }
  
  .location-card-overlay {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
  }
  
  .location-card {
    padding: 0.75rem;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .card-marker {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }
  
  .highlights-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* CUSTOM API INTEGRATION PLACEHOLDER */