/* =========================================================
   ENVIRONMENTAL INTELLIGENCE NETWORK
   COMPLETE GLOBAL + DASHBOARD STYLING
   ========================================================= */

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

html {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #050b17;
  color: #ecf9ff;

  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

#root {
  width: 100%;
  min-height: 100vh;
}

button {
  font: inherit;
}

button:focus-visible {
  outline: 2px solid #67e8f9;
  outline-offset: 3px;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: #030814;
}

::-webkit-scrollbar-thumb {
  background: #1b4660;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #27708f;
}


/* =========================================================
   APP
   ========================================================= */

.app {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;

  background:
    radial-gradient(
      circle at 8% 3%,
      rgba(0, 229, 255, 0.16),
      transparent 23%
    ),
    radial-gradient(
      circle at 92% 7%,
      rgba(99, 102, 241, 0.17),
      transparent 24%
    ),
    radial-gradient(
      circle at 50% 82%,
      rgba(16, 185, 129, 0.08),
      transparent 27%
    ),
    linear-gradient(
      135deg,
      #030815 0%,
      #061326 48%,
      #09142b 100%
    );
}

.app::before {
  content: "";

  position: fixed;

  width: 500px;
  height: 500px;

  left: -280px;
  top: 180px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(34, 211, 238, 0.09),
      transparent 70%
    );

  pointer-events: none;
}

.app::after {
  content: "";

  position: fixed;

  width: 460px;
  height: 460px;

  right: -250px;
  bottom: 60px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(129, 140, 248, 0.08),
      transparent 70%
    );

  pointer-events: none;
}


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

.header {
  position: sticky;
  top: 0;
  z-index: 1000;

  min-height: 75px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 14px 40px;

  background:
    rgba(4, 11, 22, 0.9);

  border-bottom:
    1px solid rgba(103, 232, 249, 0.12);

  backdrop-filter:
    blur(20px);

  box-shadow:
    0 10px 45px rgba(0, 0, 0, 0.32);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 49px;
  height: 49px;

  display: grid;
  place-items: center;

  border-radius: 15px;

  color: #67e8f9;

  background:
    linear-gradient(
      145deg,
      rgba(34, 211, 238, 0.2),
      rgba(59, 130, 246, 0.08)
    );

  border:
    1px solid rgba(34, 211, 238, 0.28);

  box-shadow:
    0 0 28px rgba(34, 211, 238, 0.1);
}

.header h1 {
  margin: 0;

  font-size: 20px;
  font-weight: 850;
  line-height: 1.1;

  letter-spacing: -0.5px;

  color: #f3fbff;
}

.header p {
  margin-top: 5px;

  font-size: 10px;

  color: #7793a8;
}

.system-status {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  padding: 10px 15px;

  border-radius: 999px;

  background:
    rgba(34, 197, 94, 0.08);

  border:
    1px solid rgba(34, 197, 94, 0.22);

  color: #86efac;

  font-size: 9px;

  font-weight: 900;

  letter-spacing: 1px;
}

.status-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #22c55e;

  box-shadow:
    0 0 0 5px rgba(34, 197, 94, 0.07),
    0 0 18px rgba(34, 197, 94, 0.7);

  animation:
    statusPulse 1.8s infinite;
}

@keyframes statusPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(0.78);
    opacity: 0.55;
  }
}


/* =========================================================
   MAIN DASHBOARD
   ========================================================= */

.dashboard {
  position: relative;
  z-index: 2;

  width: min(1540px, calc(100% - 48px));

  margin: 0 auto;

  padding: 30px 0 65px;

  display: flex;
  flex-direction: column;

  gap: 19px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero-section {
  position: relative;

  min-height: 275px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 30px;

  padding: 40px;

  overflow: hidden;

  border-radius: 28px;

  background:
    radial-gradient(
      circle at 84% 20%,
      rgba(14, 165, 233, 0.2),
      transparent 28%
    ),
    radial-gradient(
      circle at 67% 90%,
      rgba(16, 185, 129, 0.12),
      transparent 26%
    ),
    linear-gradient(
      135deg,
      rgba(11, 29, 49, 0.98),
      rgba(6, 17, 34, 0.98)
    );

  border:
    1px solid rgba(56, 189, 248, 0.17);

  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.28);
}

.hero-section::before {
  content: "";

  position: absolute;

  width: 500px;
  height: 500px;

  right: -160px;
  top: -210px;

  border-radius: 50%;

  border:
    1px solid rgba(34, 211, 238, 0.08);

  box-shadow:
    0 0 80px rgba(34, 211, 238, 0.05);
}

.eyebrow {
  margin-bottom: 13px;

  color: #67e8f9;

  font-size: 9px;

  font-weight: 900;

  letter-spacing: 2.3px;
}

.hero-section h2 {
  position: relative;
  z-index: 2;

  max-width: 820px;

  margin: 0;

  font-size:
    clamp(36px, 4vw, 58px);

  line-height: 1;

  letter-spacing: -2.7px;

  background:
    linear-gradient(
      100deg,
      #ffffff 12%,
      #c4f6ff 55%,
      #7dd3fc 93%
    );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}

.hero-text {
  max-width: 680px;

  margin-top: 17px;

  color: #88a3b6;

  font-size: 13px;

  line-height: 1.75;
}

.hero-status {
  position: relative;
  z-index: 3;

  min-width: 285px;

  display: flex;
  align-items: center;

  gap: 14px;

  padding: 18px;

  border-radius: 19px;

  background:
    linear-gradient(
      145deg,
      rgba(7, 27, 45, 0.86),
      rgba(5, 15, 29, 0.77)
    );

  border:
    1px solid rgba(34, 211, 238, 0.18);

  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.25);
}

.hero-status-icon {
  width: 54px;
  height: 54px;

  display: grid;
  place-items: center;

  border-radius: 16px;

  color: #a5f3fc;

  background:
    linear-gradient(
      145deg,
      rgba(34, 211, 238, 0.15),
      rgba(59, 130, 246, 0.08)
    );

  border:
    1px solid rgba(34, 211, 238, 0.22);
}

.hero-status div:last-child {
  display: flex;
  flex-direction: column;
}

.hero-status span {
  color: #668195;

  font-size: 8px;

  font-weight: 900;

  letter-spacing: 1.7px;
}

.hero-status strong {
  margin-top: 4px;

  color: #cffafe;

  font-size: 14px;

  letter-spacing: 0.5px;
}

.hero-status small {
  margin-top: 4px;

  color: #6e879a;

  font-size: 9px;
}


/* =========================================================
   TOP METRICS
   ========================================================= */

.metric-grid {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 14px;
}

.metric-card {
  position: relative;

  min-height: 140px;

  padding: 20px;

  overflow: hidden;

  border-radius: 20px;

  background:
    linear-gradient(
      145deg,
      rgba(14, 33, 54, 0.95),
      rgba(7, 18, 32, 0.98)
    );

  border:
    1px solid rgba(148, 163, 184, 0.09);

  box-shadow:
    0 16px 45px rgba(0, 0, 0, 0.2);

  transition:
    0.25s ease;
}

.metric-card::after {
  content: "";

  position: absolute;

  width: 135px;
  height: 135px;

  top: -72px;
  right: -70px;

  border-radius: 50%;

  background:
    rgba(34, 211, 238, 0.07);
}

.metric-card:hover {
  transform:
    translateY(-4px);

  border-color:
    rgba(103, 232, 249, 0.22);

  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.28);
}

.metric-card span {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  gap: 7px;

  font-size: 8px;

  font-weight: 900;

  letter-spacing: 1.1px;

  color: #7894a8;
}

.metric-card:nth-child(1) span {
  color: #67e8f9;
}

.metric-card:nth-child(2) span {
  color: #86efac;
}

.metric-card:nth-child(3) span {
  color: #fcd34d;
}

.metric-card:nth-child(4) span {
  color: #fb7185;
}

.metric-card strong {
  position: relative;
  z-index: 2;

  display: block;

  margin-top: 13px;

  color: #f6fcff;

  font-size: 39px;

  line-height: 1;

  letter-spacing: -1.5px;
}

.metric-card small {
  position: relative;
  z-index: 2;

  display: block;

  margin-top: 10px;

  color: #60798d;

  font-size: 9px;
}


/* =========================================================
   GENERAL PANELS
   ========================================================= */

.panel,
.map-panel {
  position: relative;

  padding: 23px;

  overflow: hidden;

  border-radius: 23px;

  background:
    linear-gradient(
      145deg,
      rgba(12, 29, 48, 0.95),
      rgba(6, 16, 29, 0.97)
    );

  border:
    1px solid rgba(103, 232, 249, 0.08);

  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.2);
}

.panel::before,
.map-panel::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  height: 2px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(34, 211, 238, 0.7),
      rgba(99, 102, 241, 0.5),
      transparent
    );

  opacity: 0.55;
}

.panel-title {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 18px;

  margin-bottom: 19px;
}

.panel-title h2 {
  margin: 0;

  color: #eff9fc;

  font-size: 17px;

  font-weight: 800;

  letter-spacing: -0.4px;
}

.panel-title p {
  margin-top: 5px;

  color: #6b8497;

  font-size: 10px;
}

.panel-title > svg {
  width: 21px;
  height: 21px;

  color: #67e8f9;

  filter:
    drop-shadow(
      0 0 8px rgba(34, 211, 238, 0.25)
    );
}


/* =========================================================
   SIMULATION
   ========================================================= */

.simulation-panel {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  padding: 18px 22px;

  border-radius: 20px;

  background:
    linear-gradient(
      120deg,
      rgba(8, 29, 50, 0.98),
      rgba(23, 25, 58, 0.9)
    );

  border:
    1px solid rgba(99, 102, 241, 0.24);

  box-shadow:
    0 15px 50px rgba(0, 0, 0, 0.23);
}

.simulation-title {
  display: flex;

  align-items: center;

  gap: 12px;
}

.simulation-title > svg {
  color: #a5b4fc;
}

.simulation-title h2 {
  margin: 0;

  color: #e4eaff;

  font-size: 13px;
}

.simulation-title p {
  margin-top: 4px;

  color: #748ba3;

  font-size: 9px;
}

.simulation-controls {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;
}

.simulation-btn,
.reset-btn {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  padding: 10px 14px;

  border-radius: 11px;

  border:
    1px solid rgba(148, 163, 184, 0.14);

  background:
    rgba(255, 255, 255, 0.025);

  color: #a9bbc6;

  font-size: 9px;

  font-weight: 900;

  letter-spacing: 0.75px;

  cursor: pointer;

  transition:
    0.2s ease;
}

.simulation-btn:hover,
.reset-btn:hover {
  transform:
    translateY(-2px);

  background:
    rgba(255, 255, 255, 0.05);

  color: #f2f8fb;
}

.simulation-btn.active-normal {
  color: #86efac;

  background:
    rgba(34, 197, 94, 0.1);

  border-color:
    rgba(34, 197, 94, 0.4);

  box-shadow:
    0 0 25px rgba(34, 197, 94, 0.08);
}

.simulation-btn.active-warning {
  color: #fde68a;

  background:
    rgba(245, 158, 11, 0.1);

  border-color:
    rgba(245, 158, 11, 0.42);

  box-shadow:
    0 0 28px rgba(245, 158, 11, 0.09);
}

.simulation-btn.active-critical {
  color: #fda4af;

  background:
    rgba(239, 68, 68, 0.11);

  border-color:
    rgba(239, 68, 68, 0.48);

  box-shadow:
    0 0 35px rgba(239, 68, 68, 0.13);

  animation:
    criticalButton 1.5s infinite;
}

@keyframes criticalButton {

  0%,
  100% {
    box-shadow:
      0 0 20px rgba(239, 68, 68, 0.06);
  }

  50% {
    box-shadow:
      0 0 37px rgba(239, 68, 68, 0.2);
  }
}

.control-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;
}

.normal-dot {
  background: #22c55e;

  box-shadow:
    0 0 9px rgba(34, 197, 94, 0.65);
}

.warning-dot {
  background: #f59e0b;

  box-shadow:
    0 0 9px rgba(245, 158, 11, 0.65);
}

.critical-dot {
  background: #ef4444;

  box-shadow:
    0 0 10px rgba(239, 68, 68, 0.7);
}

.reset-btn {
  color: #93c5fd;

  border-color:
    rgba(96, 165, 250, 0.19);
}


/* =========================================================
   RISK + SENSOR
   ========================================================= */

.main-risk-layout {
  display: grid;

  grid-template-columns:
    0.88fr 1.12fr;

  gap: 17px;
}

.risk-panel {
  position: relative;

  min-height: 320px;

  padding: 28px;

  overflow: hidden;

  border-radius: 22px;

  background:
    linear-gradient(
      145deg,
      rgba(10, 28, 45, 0.98),
      rgba(5, 15, 27, 0.98)
    );

  border:
    1px solid rgba(148, 163, 184, 0.09);

  box-shadow:
    0 22px 65px rgba(0, 0, 0, 0.24);

  transition:
    0.4s ease;
}

.risk-panel::after {
  content: "";

  position: absolute;

  width: 350px;
  height: 350px;

  right: -150px;
  bottom: -175px;

  border-radius: 50%;

  filter: blur(5px);
}

.risk-panel.low {
  border-color:
    rgba(34, 197, 94, 0.14);
}

.risk-panel.low::after {
  background:
    radial-gradient(
      circle,
      rgba(34, 197, 94, 0.12),
      transparent 70%
    );
}

.risk-panel.warning {
  border-color:
    rgba(245, 158, 11, 0.35);

  animation:
    warningPanel 2.2s infinite;
}

.risk-panel.warning::after {
  background:
    radial-gradient(
      circle,
      rgba(245, 158, 11, 0.15),
      transparent 70%
    );
}

.risk-panel.critical {
  border-color:
    rgba(239, 68, 68, 0.42);

  animation:
    criticalPanel 1.5s infinite;
}

.risk-panel.critical::after {
  background:
    radial-gradient(
      circle,
      rgba(239, 68, 68, 0.19),
      transparent 70%
    );
}

@keyframes warningPanel {

  0%,
  100% {
    box-shadow:
      0 0 30px rgba(245, 158, 11, 0.03),
      0 22px 65px rgba(0, 0, 0, 0.24);
  }

  50% {
    box-shadow:
      0 0 55px rgba(245, 158, 11, 0.09),
      0 22px 65px rgba(0, 0, 0, 0.24);
  }
}

@keyframes criticalPanel {

  0%,
  100% {
    box-shadow:
      0 0 35px rgba(239, 68, 68, 0.04),
      0 22px 65px rgba(0, 0, 0, 0.25);
  }

  50% {
    box-shadow:
      0 0 75px rgba(239, 68, 68, 0.16),
      0 22px 65px rgba(0, 0, 0, 0.27);
  }
}

.risk-header {
  position: relative;
  z-index: 3;

  display: flex;

  justify-content: space-between;
}

.risk-header p {
  color: #70889a;

  font-size: 9px;

  font-weight: 900;

  letter-spacing: 1.6px;
}

.risk-header h2 {
  margin-top: 6px;

  color: #f4fafc;

  font-size: 21px;
}

.risk-icon {
  width: 52px;
  height: 52px;

  display: grid;
  place-items: center;

  border-radius: 16px;

  background:
    rgba(255, 255, 255, 0.035);

  border:
    1px solid rgba(148, 163, 184, 0.1);
}

.risk-panel.low .risk-icon {
  color: #4ade80;
}

.risk-panel.warning .risk-icon {
  color: #fbbf24;
}

.risk-panel.critical .risk-icon {
  color: #fb7185;

  animation:
    iconPulse 1.15s infinite;
}

@keyframes iconPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.risk-value {
  position: relative;
  z-index: 3;

  margin-top: 31px;

  color: #ffffff;

  font-size: 45px;

  line-height: 1;

  font-weight: 950;

  letter-spacing: -2px;

  transition:
    0.35s ease;
}

.risk-panel.low .risk-value {
  color: #4ade80;
}

.risk-panel.warning .risk-value {
  color: #fbbf24;
}

.risk-panel.critical .risk-value {
  color: #fb7185;

  animation:
    criticalText 1.2s infinite;
}

@keyframes criticalText {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.025);
  }
}

.risk-description {
  position: relative;
  z-index: 3;

  max-width: 560px;

  margin-top: 12px;

  color: #8198aa;

  font-size: 11px;

  line-height: 1.65;
}

.risk-score {
  position: relative;
  z-index: 3;

  margin-top: 27px;
}

.score-header {
  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-bottom: 9px;
}

.score-header span {
  color: #71899a;

  font-size: 9px;

  font-weight: 800;
}

.score-header strong {
  color: #e5eff3;

  font-size: 12px;
}

.score-bar {
  width: 100%;

  height: 9px;

  overflow: hidden;

  border-radius: 999px;

  background:
    rgba(148, 163, 184, 0.09);
}

.score-fill {
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #22c55e,
      #84cc16,
      #f59e0b,
      #ef4444
    );

  transition:
    width 0.6s ease;
}


/* =========================================================
   LIVE SENSOR INPUTS
   ========================================================= */

.sensor-live-panel {
  min-height: 320px;
}

.sensor-live-grid {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 12px;
}

.live-value {
  position: relative;

  min-height: 122px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  gap: 8px;

  padding: 17px;

  overflow: hidden;

  border-radius: 17px;

  background:
    linear-gradient(
      145deg,
      rgba(17, 43, 66, 0.72),
      rgba(7, 20, 35, 0.72)
    );

  border:
    1px solid rgba(103, 232, 249, 0.08);

  transition:
    0.2s ease;
}

.live-value:hover {
  transform:
    translateY(-3px);

  border-color:
    rgba(34, 211, 238, 0.22);
}

.live-value svg {
  width: 18px;
  height: 18px;

  color: #67e8f9;
}

.live-value:nth-child(2) svg {
  color: #fbbf24;
}

.live-value:nth-child(3) svg {
  color: #60a5fa;
}

.live-value:nth-child(4) svg {
  color: #a78bfa;
}

.live-value span {
  color: #7892a5;

  font-size: 9px;
}

.live-value strong {
  color: #effaff;

  font-size: 27px;

  line-height: 1;
}

.live-value small {
  color: #7994a8;

  font-size: 10px;
}


/* =========================================================
   NETWORK STRIP
   ========================================================= */

.edge-trend {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 11px;
}

.edge-trend > div {
  min-height: 89px;

  display: flex;

  flex-direction: column;

  gap: 7px;

  padding: 15px;

  border-radius: 15px;

  background:
    rgba(255, 255, 255, 0.028);

  border:
    1px solid rgba(148, 163, 184, 0.07);
}

.edge-trend svg {
  width: 16px;
  height: 16px;

  color: #60a5fa;
}

.edge-trend span {
  color: #688195;

  font-size: 8px;

  font-weight: 900;

  letter-spacing: 0.9px;

  text-transform: uppercase;
}

.edge-trend strong {
  color: #deebf0;

  font-size: 12px;
}


/* =========================================================
   WATER GRAPH
   ========================================================= */

.graph {
  position: relative;

  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  gap: 13px;

  height: 220px;

  padding:
    30px 12px 13px;

  overflow: hidden;

  border-radius: 17px;

  background:
    linear-gradient(
      180deg,
      rgba(15, 51, 73, 0.24),
      rgba(5, 18, 31, 0.22)
    );

  border:
    1px solid rgba(34, 211, 238, 0.07);
}

.graph::before,
.graph::after {
  content: "";

  position: absolute;

  left: 10px;
  right: 10px;

  border-top:
    1px dashed rgba(148, 163, 184, 0.07);
}

.graph::before {
  top: 33%;
}

.graph::after {
  top: 66%;
}

.bar {
  position: relative;
  z-index: 2;

  flex: 1;

  max-width: 75px;

  min-width: 18px;

  border-radius:
    9px 9px 4px 4px;

  background:
    linear-gradient(
      180deg,
      #67e8f9,
      #0ea5e9 46%,
      #2563eb 100%
    );

  box-shadow:
    0 0 25px rgba(14, 165, 233, 0.18);

  transition:
    height 0.45s ease;

  animation:
    graphBar 0.5s ease;
}

@keyframes graphBar {
  from {
    transform:
      scaleY(0.7);

    opacity: 0.35;
  }

  to {
    transform:
      scaleY(1);

    opacity: 1;
  }
}

.bar::before {
  content: "";

  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  height: 3px;

  border-radius: 999px;

  background:
    #cffafe;

  box-shadow:
    0 0 10px rgba(103, 232, 249, 0.5);
}

.bar span {
  position: absolute;

  left: 50%;
  top: -23px;

  transform:
    translateX(-50%);

  color: #9bc1d4;

  font-size: 9px;

  font-weight: 700;
}

.graph-label {
  margin-top: 12px;

  text-align: center;

  color: #5e778a;

  font-size: 8px;

  font-weight: 800;

  letter-spacing: 1.2px;

  text-transform: uppercase;
}

.trend-summary {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 11px;

  margin-top: 15px;
}

.trend-summary > div {
  display: flex;

  align-items: center;

  gap: 10px;

  padding: 13px;

  border-radius: 14px;

  background:
    rgba(255, 255, 255, 0.025);

  border:
    1px solid rgba(148, 163, 184, 0.06);
}

.trend-summary svg {
  width: 17px;
  height: 17px;

  color: #60a5fa;
}

.trend-summary span {
  color: #6d8699;

  font-size: 9px;
}

.trend-summary strong {
  margin-left: auto;

  color: #d9e7ee;

  font-size: 11px;
}


/* =========================================================
   NODE CARDS
   ========================================================= */

.node-grid {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 13px;
}

.node-card {
  position: relative;

  width: 100%;

  display: block;

  padding: 18px;

  overflow: hidden;

  text-align: left;

  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(17, 38, 57, 0.86),
      rgba(7, 19, 33, 0.92)
    );

  border:
    1px solid rgba(148, 163, 184, 0.08);

  color: inherit;

  cursor: pointer;

  transition:
    0.23s ease;
}

.node-card:hover {
  transform:
    translateY(-3px);

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.24);
}

.node-card.normal {
  border-color:
    rgba(34, 197, 94, 0.15);
}

.node-card.warning {
  border-color:
    rgba(245, 158, 11, 0.22);
}

.node-card.critical {
  border-color:
    rgba(239, 68, 68, 0.3);

  animation:
    nodeCritical 1.7s infinite;
}

@keyframes nodeCritical {

  0%,
  100% {
    box-shadow:
      0 0 20px rgba(239, 68, 68, 0.035);
  }

  50% {
    box-shadow:
      0 0 38px rgba(239, 68, 68, 0.1);
  }
}

.node-card-top {
  display: flex;

  justify-content: space-between;

  align-items: flex-start;
}

.node-card-top > div {
  display: flex;

  flex-direction: column;

  gap: 4px;
}

.node-card-top span:first-child {
  color: #dcebf2;

  font-size: 12px;

  font-weight: 900;

  letter-spacing: 0.5px;
}

.node-card-top small {
  color: #617b8d;

  font-size: 9px;
}

.node-status-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #22c55e;

  box-shadow:
    0 0 14px rgba(34, 197, 94, 0.62);
}

.node-card.warning .node-status-dot {
  background: #f59e0b;

  box-shadow:
    0 0 14px rgba(245, 158, 11, 0.65);
}

.node-card.critical .node-status-dot {
  background: #ef4444;

  box-shadow:
    0 0 17px rgba(239, 68, 68, 0.75);

  animation:
    criticalDot 1.1s infinite;
}

@keyframes criticalDot {

  0%,
  100% {
    transform:
      scale(1);

    opacity: 1;
  }

  50% {
    transform:
      scale(0.65);

    opacity: 0.4;
  }
}

.node-risk {
  display: inline-block;

  margin-top: 17px;

  font-size: 21px;

  font-weight: 950;
}

.node-card.normal .node-risk {
  color: #4ade80;
}

.node-card.warning .node-risk {
  color: #fbbf24;
}

.node-card.critical .node-risk {
  color: #fb7185;
}

.node-details {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 8px;

  margin-top: 17px;

  padding-top: 14px;

  border-top:
    1px solid rgba(148, 163, 184, 0.07);
}

.node-details span {
  display: flex;

  flex-direction: column;

  gap: 4px;

  color: #647f91;

  font-size: 8px;

  text-transform: uppercase;

  letter-spacing: 0.4px;
}

.node-details b {
  color: #d0dfe6;

  font-size: 10px;

  font-weight: 700;

  text-transform: none;

  letter-spacing: 0;
}


/* =========================================================
   SELECTED NODE
   ========================================================= */

.node-detail-panel {
  border-color:
    rgba(129, 140, 248, 0.22);
}

.selected-node-layout {
  display: grid;

  grid-template-columns:
    1fr 1.4fr;

  gap: 16px;
}

.selected-node-main {
  padding: 20px;

  border-radius: 17px;

  background:
    linear-gradient(
      145deg,
      rgba(26, 35, 70, 0.72),
      rgba(9, 19, 38, 0.72)
    );

  border:
    1px solid rgba(129, 140, 248, 0.11);
}

.selected-node-heading {
  display: flex;

  align-items: center;

  gap: 12px;
}

.selected-node-icon {
  width: 45px;
  height: 45px;

  display: grid;
  place-items: center;

  border-radius: 13px;

  color: #a5b4fc;

  background:
    rgba(99, 102, 241, 0.12);

  border:
    1px solid rgba(129, 140, 248, 0.18);
}

.selected-node-heading h3 {
  color: #f1f7fa;

  font-size: 15px;
}

.selected-node-heading p {
  margin-top: 4px;

  color: #71879b;

  font-size: 9px;
}

.selected-risk {
  display: inline-block;

  margin-top: 22px;

  font-size: 28px;

  font-weight: 950;
}

.selected-risk.normal {
  color: #4ade80;
}

.selected-risk.warning {
  color: #fbbf24;
}

.selected-risk.critical {
  color: #fb7185;
}

.selected-description {
  margin-top: 10px;

  color: #768d9e;

  font-size: 10px;

  line-height: 1.6;
}

.selected-node-data {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 11px;
}

.selected-node-data > div {
  display: flex;

  flex-direction: column;

  justify-content: space-between;

  min-height: 100px;

  padding: 16px;

  border-radius: 16px;

  background:
    rgba(255, 255, 255, 0.025);

  border:
    1px solid rgba(148, 163, 184, 0.07);
}

.selected-node-data span {
  color: #698195;

  font-size: 8px;

  text-transform: uppercase;

  letter-spacing: 0.7px;
}

.selected-node-data strong {
  color: #e3eef3;

  font-size: 21px;
}

.selected-location {
  grid-column:
    1 / -1;

  display: flex;

  align-items: center;

  gap: 11px;

  padding: 14px 16px;

  border-radius: 15px;

  background:
    rgba(34, 211, 238, 0.035);

  border:
    1px solid rgba(34, 211, 238, 0.09);

  color: #67e8f9;
}

.selected-location div {
  display: flex;

  flex-direction: column;

  gap: 4px;
}

.selected-location span {
  color: #60788c;

  font-size: 8px;

  font-weight: 900;

  letter-spacing: 1px;
}

.selected-location strong {
  color: #bed2dc;

  font-size: 10px;
}


/* =========================================================
   MAP
   ========================================================= */

.map-panel {
  padding-bottom: 18px;
}

.map-legend {
  display: flex;

  flex-wrap: wrap;

  gap: 17px;

  margin:
    -5px 0 13px;
}

.map-legend span {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  color: #748b9d;

  font-size: 8px;

  font-weight: 900;

  letter-spacing: 0.8px;

  text-transform: uppercase;
}

.legend-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;
}

.real-map {
  width: 100%;

  overflow: hidden;

  border-radius: 18px;

  border:
    1px solid rgba(103, 232, 249, 0.12);

  box-shadow:
    0 14px 45px rgba(0, 0, 0, 0.2);
}

.real-map .leaflet-container {
  width: 100%;

  height: 430px;

  background: #07131f;

  font-family:
    Inter,
    system-ui,
    sans-serif;
}

.real-map .leaflet-tile {
  filter:
    brightness(0.65)
    saturate(0.78)
    contrast(1.1)
    hue-rotate(5deg);
}

.real-map .leaflet-control-zoom a {
  width: 31px;
  height: 31px;

  line-height: 29px;

  background:
    rgba(4, 14, 25, 0.91);

  color: #caf4fb;

  border:
    1px solid rgba(103, 232, 249, 0.13);
}

.real-map .leaflet-control-attribution {
  background:
    rgba(3, 11, 19, 0.78) !important;

  color:
    #718696 !important;
}

.real-map .leaflet-control-attribution a {
  color:
    #8ea7b6 !important;
}

.real-map .leaflet-popup-content-wrapper,
.real-map .leaflet-popup-tip {
  background: #071723;

  color: #deedf2;

  border:
    1px solid rgba(103, 232, 249, 0.15);

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4);
}

.real-map .leaflet-popup-content {
  font-size: 10px;

  line-height: 1.75;
}


/* =========================================================
   ALERT HISTORY
   ========================================================= */

.alert-history-list {
  display: flex;

  flex-direction: column;

  gap: 9px;
}

.alert-item {
  display: flex;

  align-items: flex-start;

  gap: 13px;

  padding: 14px;

  border-radius: 15px;

  background:
    rgba(255, 255, 255, 0.025);

  border:
    1px solid rgba(148, 163, 184, 0.055);
}

.alert-item:hover {
  background:
    rgba(255, 255, 255, 0.04);
}

.alert-item.low {
  border-left:
    3px solid #22c55e;
}

.alert-item.warning {
  border-left:
    3px solid #f59e0b;

  background:
    linear-gradient(
      90deg,
      rgba(245, 158, 11, 0.06),
      rgba(255, 255, 255, 0.02)
    );
}

.alert-item.critical {
  border-left:
    3px solid #ef4444;

  background:
    linear-gradient(
      90deg,
      rgba(239, 68, 68, 0.08),
      rgba(255, 255, 255, 0.02)
    );

  animation:
    alertCritical 1.5s infinite;
}

@keyframes alertCritical {

  0%,
  100% {
    box-shadow:
      inset 3px 0 0 rgba(239, 68, 68, 0.08);
  }

  50% {
    box-shadow:
      inset 3px 0 0 rgba(239, 68, 68, 0.3);
  }
}

.alert-icon {
  width: 35px;
  height: 35px;

  flex: 0 0 35px;

  display: grid;

  place-items: center;

  border-radius: 10px;

  background:
    rgba(255, 255, 255, 0.035);
}

.alert-item.low .alert-icon {
  color: #4ade80;
}

.alert-item.warning .alert-icon {
  color: #fbbf24;
}

.alert-item.critical .alert-icon {
  color: #fb7185;
}

.alert-icon svg {
  width: 17px;
  height: 17px;
}

.alert-item strong {
  display: block;

  color: #e1edf2;

  font-size: 10px;

  letter-spacing: 0.6px;
}

.alert-item p {
  margin-top: 4px;

  color: #72899b;

  font-size: 10px;

  line-height: 1.5;
}

.alert-item small {
  display: block;

  margin-top: 5px;

  color: #587183;

  font-size: 8px;
}


/* =========================================================
   AI
   ========================================================= */

.ai-grid {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 12px;
}

.ai-card {
  min-height: 138px;

  display: flex;

  flex-direction: column;

  gap: 9px;

  padding: 18px;

  border-radius: 17px;

  background:
    linear-gradient(
      145deg,
      rgba(17, 37, 58, 0.82),
      rgba(7, 19, 33, 0.87)
    );

  border:
    1px solid rgba(125, 211, 252, 0.075);

  transition:
    0.2s ease;
}

.ai-card:hover {
  transform:
    translateY(-3px);

  border-color:
    rgba(129, 140, 248, 0.28);
}

.ai-card svg {
  width: 20px;
  height: 20px;
}

.ai-card:nth-child(1) svg {
  color: #a78bfa;
}

.ai-card:nth-child(2) svg {
  color: #67e8f9;
}

.ai-card:nth-child(3) svg {
  color: #fbbf24;
}

.ai-card:nth-child(4) svg {
  color: #60a5fa;
}

.ai-card span {
  color: #6e8598;

  font-size: 8px;

  font-weight: 900;

  letter-spacing: 1px;

  text-transform: uppercase;
}

.ai-card strong {
  margin-top: auto;

  color: #e2edf2;

  font-size: 12px;

  line-height: 1.3;
}

.ai-footer {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 10px;

  margin-top: 15px;

  padding-top: 15px;

  border-top:
    1px solid rgba(148, 163, 184, 0.065);
}

.ai-footer div {
  display: flex;

  flex-direction: column;

  gap: 5px;
}

.ai-footer span {
  color: #5e7587;

  font-size: 8px;

  font-weight: 900;

  letter-spacing: 1px;
}

.ai-footer strong {
  color: #b6c8d1;

  font-size: 10px;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 15px;

  padding:
    10px 3px 2px;

  color: #506b7d;

  font-size: 8px;

  letter-spacing: 0.4px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

  .header {
    padding:
      17px 24px;
  }

  .dashboard {
    width:
      min(
        100% - 32px,
        1540px
      );
  }

  .metric-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .ai-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .main-risk-layout {
    grid-template-columns:
      1fr;
  }

}

@media (max-width: 800px) {

  .hero-section {
    flex-direction: column;

    align-items: flex-start;

    padding: 28px;
  }

  .hero-status {
    width: 100%;
    min-width: 0;
  }

  .simulation-panel {
    flex-direction: column;

    align-items: flex-start;
  }

  .simulation-controls {
    width: 100%;
  }

  .node-grid {
    grid-template-columns:
      1fr;
  }

  .edge-trend {
    grid-template-columns:
      1fr;
  }

  .ai-footer {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .selected-node-layout {
    grid-template-columns:
      1fr;
  }

}

@media (max-width: 600px) {

  .header {
    position: relative;

    flex-direction: column;

    align-items: flex-start;

    padding: 16px;
  }

  .system-status {
    width: 100%;

    justify-content: center;
  }

  .dashboard {
    width:
      calc(100% - 18px);

    padding:
      14px 0 35px;

    gap: 13px;
  }

  .hero-section h2 {
    font-size: 34px;

    letter-spacing: -1.5px;
  }

  .metric-grid {
    grid-template-columns:
      1fr 1fr;

    gap: 9px;
  }

  .metric-card {
    min-height: 115px;

    padding: 15px;
  }

  .metric-card strong {
    font-size: 29px;
  }

  .panel,
  .map-panel {
    padding: 17px;
  }

  .sensor-live-grid {
    grid-template-columns:
      1fr;
  }

  .graph {
    height: 180px;

    gap: 7px;
  }

  .ai-grid {
    grid-template-columns:
      1fr;
  }

  .ai-footer {
    grid-template-columns:
      1fr 1fr;
  }

  .real-map .leaflet-container {
    height: 330px;
  }

  footer {
    flex-direction: column;

    align-items: flex-start;

    gap: 5px;
  }

}

@media (max-width: 420px) {

  .metric-grid {
    grid-template-columns:
      1fr;
  }

  .simulation-controls {
    display: grid;

    grid-template-columns:
      1fr 1fr;

    width: 100%;
  }

  .simulation-btn,
  .reset-btn 
    justify-content: center;
  }

  .risk-value {
    font-size: 38px;
  }

  .selected-node-data {
    grid-template-columns:
      1fr;
  }

}
/* =========================================================
   ACTIVE ALERT CENTER
   ========================================================= */

.alert-center {
  position: relative;

  padding: 24px;

  overflow: hidden;

  border-radius: 23px;

  background:
    linear-gradient(
      135deg,
      rgba(10, 28, 45, 0.97),
      rgba(7, 18, 32, 0.98)
    );

  border:
    1px solid rgba(103, 232, 249, 0.09);

  box-shadow:
    0 20px 65px rgba(0, 0, 0, 0.24);

  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}


/* TOP GLOW */

.alert-center::before {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  top: 0;

  height: 3px;

  background:
    linear-gradient(
      90deg,
      transparent,
      #22d3ee,
      #6366f1,
      transparent
    );

  opacity: 0.7;
}


/* ---------------------------------------------------------
   SAFE
   --------------------------------------------------------- */

.alert-center.safe {
  border-color:
    rgba(34, 197, 94, 0.18);

  background:
    radial-gradient(
      circle at 90% 20%,
      rgba(34, 197, 94, 0.08),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      rgba(9, 30, 31, 0.97),
      rgba(6, 19, 29, 0.98)
    );
}


/* ---------------------------------------------------------
   WARNING
   --------------------------------------------------------- */

.alert-center.warning {
  border-color:
    rgba(245, 158, 11, 0.32);

  background:
    radial-gradient(
      circle at 90% 20%,
      rgba(245, 158, 11, 0.1),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      rgba(39, 30, 13, 0.97),
      rgba(10, 20, 30, 0.98)
    );

  animation:
    alertWarningGlow 2.2s infinite;
}


@keyframes alertWarningGlow {

  0%,
  100% {
    box-shadow:
      0 20px 65px rgba(0, 0, 0, 0.24),
      0 0 25px rgba(245, 158, 11, 0.03);
  }

  50% {
    box-shadow:
      0 20px 65px rgba(0, 0, 0, 0.24),
      0 0 42px rgba(245, 158, 11, 0.1);
  }

}


/* ---------------------------------------------------------
   CRITICAL
   --------------------------------------------------------- */

.alert-center.critical {
  border-color:
    rgba(239, 68, 68, 0.4);

  background:
    radial-gradient(
      circle at 90% 20%,
      rgba(239, 68, 68, 0.13),
      transparent 31%
    ),
    linear-gradient(
      135deg,
      rgba(40, 15, 25, 0.98),
      rgba(10, 17, 29, 0.98)
    );

  animation:
    alertCriticalGlow 1.45s infinite;
}


@keyframes alertCriticalGlow {

  0%,
  100% {
    box-shadow:
      0 20px 65px rgba(0, 0, 0, 0.24),
      0 0 35px rgba(239, 68, 68, 0.05);
  }

  50% {
    box-shadow:
      0 20px 65px rgba(0, 0, 0, 0.24),
      0 0 65px rgba(239, 68, 68, 0.15);
  }

}


/* =========================================================
   ALERT HEADER
   ========================================================= */

.alert-center-header {
  position: relative;
  z-index: 2;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  padding-bottom: 19px;

  border-bottom:
    1px solid rgba(148, 163, 184, 0.08);
}


.alert-center-title {
  display: flex;

  align-items: center;

  gap: 13px;
}


.alert-center-icon {
  width: 48px;
  height: 48px;

  display: grid;

  place-items: center;

  border-radius: 14px;

  background:
    rgba(255, 255, 255, 0.04);

  border:
    1px solid rgba(148, 163, 184, 0.1);
}


.alert-center.safe .alert-center-icon {
  color: #4ade80;
}


.alert-center.warning .alert-center-icon {
  color: #fbbf24;

  box-shadow:
    0 0 22px rgba(245, 158, 11, 0.08);
}


.alert-center.critical .alert-center-icon {
  color: #fb7185;

  box-shadow:
    0 0 25px rgba(239, 68, 68, 0.1);

  animation:
    alertIconPulse 1.2s infinite;
}


@keyframes alertIconPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

}


.alert-center-title p {
  color: #70879a;

  font-size: 8px;

  font-weight: 900;

  letter-spacing: 1.6px;
}


.alert-center-title h2 {
  margin-top: 5px;

  color: #f2f9fc;

  font-size: 21px;

  font-weight: 900;

  letter-spacing: -0.4px;
}


.alert-priority {
  padding: 9px 13px;

  border-radius: 999px;

  color: #8ea4b3;

  background:
    rgba(148, 163, 184, 0.05);

  border:
    1px solid rgba(148, 163, 184, 0.08);

  font-size: 8px;

  font-weight: 900;

  letter-spacing: 1px;
}


.alert-center.warning .alert-priority {
  color: #fcd34d;

  border-color:
    rgba(245, 158, 11, 0.2);

  background:
    rgba(245, 158, 11, 0.06);
}


.alert-center.critical .alert-priority {
  color: #fda4af;

  border-color:
    rgba(239, 68, 68, 0.23);

  background:
    rgba(239, 68, 68, 0.07);
}


/* =========================================================
   ACTIVE ALERT CONTENT
   ========================================================= */

.active-alert-content {
  position: relative;
  z-index: 2;

  display: grid;

  grid-template-columns:
    1.15fr 1fr;

  gap: 18px;

  padding-top: 20px;
}


.alert-main-message {
  display: flex;

  flex-direction: column;

  justify-content: space-between;

  gap: 18px;

  padding: 19px;

  border-radius: 17px;

  background:
    rgba(255, 255, 255, 0.025);

  border:
    1px solid rgba(148, 163, 184, 0.07);
}


.alert-main-message > div:first-child {
  display: flex;

  flex-direction: column;

  gap: 5px;
}


.alert-main-message > div:first-child span {
  color: #687f91;

  font-size: 8px;

  font-weight: 900;

  letter-spacing: 1.1px;
}


.alert-main-message > div:first-child strong {
  color: #edf7fb;

  font-size: 22px;

  font-weight: 900;
}


.alert-main-message > div:first-child small {
  color: #6c8294;

  font-size: 9px;
}


.alert-message-box {
  display: flex;

  align-items: flex-start;

  gap: 11px;

  padding: 13px;

  border-radius: 13px;

  background:
    rgba(255, 255, 255, 0.025);

  border:
    1px solid rgba(148, 163, 184, 0.06);
}


.alert-message-box svg {
  flex: 0 0 auto;

  margin-top: 1px;
}


.alert-center.warning .alert-message-box {
  color: #fbbf24;

  border-color:
    rgba(245, 158, 11, 0.13);
}


.alert-center.critical .alert-message-box {
  color: #fb7185;

  border-color:
    rgba(239, 68, 68, 0.15);
}


.alert-message-box p {
  color: #9aadba;

  font-size: 10px;

  line-height: 1.6;
}


/* =========================================================
   ALERT DATA
   ========================================================= */

.alert-data-grid {
  display: grid;

  grid-template-columns:
    1fr;

  gap: 10px;
}


.alert-data-grid > div {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 16px;

  min-height: 71px;

  padding: 14px 16px;

  border-radius: 15px;

  background:
    rgba(255, 255, 255, 0.025);

  border:
    1px solid rgba(148, 163, 184, 0.07);
}


.alert-data-grid span {
  color: #678093;

  font-size: 8px;

  font-weight: 900;

  letter-spacing: 0.75px;
}


.alert-data-grid strong {
  color: #e0edf2;

  font-size: 12px;

  text-align: right;
}


.alert-center.warning
.alert-data-grid > div:first-child strong {
  color: #fcd34d;
}


.alert-center.critical
.alert-data-grid > div:first-child strong {
  color: #fb7185;
}


/* =========================================================
   ALERT ACTIONS
   ========================================================= */

.alert-actions {
  grid-column:
    1 / -1;

  display: flex;

  flex-wrap: wrap;

  gap: 9px;

  margin-top: 1px;
}


.alert-action {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  padding: 11px 15px;

  border-radius: 11px;

  border:
    1px solid rgba(148, 163, 184, 0.13);

  background:
    rgba(255, 255, 255, 0.035);

  color: #9eb2bf;

  font-size: 9px;

  font-weight: 900;

  letter-spacing: 0.6px;

  cursor: pointer;

  transition:
    0.2s ease;
}


.alert-action:hover {
  transform:
    translateY(-2px);

  color: #eef6fa;

  background:
    rgba(255, 255, 255, 0.06);
}


.primary-action {
  color: #a5f3fc;

  border-color:
    rgba(34, 211, 238, 0.22);

  background:
    rgba(34, 211, 238, 0.06);
}


.alert-center.warning .primary-action {
  color: #fcd34d;

  border-color:
    rgba(245, 158, 11, 0.25);

  background:
    rgba(245, 158, 11, 0.06);
}


.alert-center.critical .primary-action {
  color: #fda4af;

  border-color:
    rgba(239, 68, 68, 0.28);

  background:
    rgba(239, 68, 68, 0.07);
}


.alert-action:disabled {
  cursor: default;

  opacity: 0.7;

  transform: none;
}


/* =========================================================
   SAFE ALERT
   ========================================================= */

.safe-alert-content {
  position: relative;
  z-index: 2;

  display: flex;

  align-items: center;

  gap: 12px;

  padding-top: 18px;
}


.safe-alert-content > svg {
  width: 21px;
  height: 21px;

  flex: 0 0 auto;

  color: #4ade80;
}


.safe-alert-content div {
  display: flex;

  flex-direction: column;

  gap: 5px;
}


.safe-alert-content strong {
  color: #cfe8d7;

  font-size: 11px;
}


.safe-alert-content p {
  color: #718a7d;

  font-size: 9px;
}


/* =========================================================
   RESPONSIVE ALERT CENTER
   ========================================================= */

@media (max-width: 900px) {

  .active-alert-content {
    grid-template-columns:
      1fr;
  }

}


@media (max-width: 650px) {

  .alert-center-header {
    align-items: flex-start;

    flex-direction: column;
  }

  .alert-priority {
    align-self: flex-start;
  }

  .alert-main-message
  > div:first-child
  strong {
    font-size: 19px;
  }

  .alert-data-grid > div {
    align-items: flex-start;

    flex-direction: column;

    gap: 5px;
  }

  .alert-data-grid strong {
    text-align: left;
  }

  .alert-actions {
    flex-direction: column;
  }

  .alert-action {
    width: 100%;
  }

}/* =========================================================
   ENVIRONMENTAL INTELLIGENCE NETWORK
   SIH 2026 - COLORFUL INTERACTIVE COMMAND CENTER
   ========================================================= */

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

:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: #ecf9ff;
  background: #050b17;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

html {
  min-width: 320px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  background: #050b17;
}

#root {
  width: 100%;
  min-height: 100vh;
}

button {
  font: inherit;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: #030814;
}

::-webkit-scrollbar-thumb {
  background: #19354d;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #245777;
}


/* =========================================================
   APP BACKGROUND
   ========================================================= */

.app {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;

  background:
    radial-gradient(
      circle at 8% 5%,
      rgba(0, 229, 255, 0.15),
      transparent 23%
    ),
    radial-gradient(
      circle at 92% 10%,
      rgba(99, 102, 241, 0.16),
      transparent 23%
    ),
    radial-gradient(
      circle at 50% 85%,
      rgba(16, 185, 129, 0.07),
      transparent 27%
    ),
    linear-gradient(
      135deg,
      #030815 0%,
      #061325 48%,
      #091429 100%
    );
}

.app::before {
  content: "";

  position: fixed;

  width: 450px;
  height: 450px;

  top: 140px;
  left: -230px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(34, 211, 238, 0.07),
      transparent 70%
    );

  pointer-events: none;
}

.app::after {
  content: "";

  position: fixed;

  width: 420px;
  height: 420px;

  right: -220px;
  bottom: 70px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(129, 140, 248, 0.07),
      transparent 70%
    );

  pointer-events: none;
}


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

.header {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 17px 40px;

  background:
    rgba(4, 11, 22, 0.87);

  border-bottom:
    1px solid rgba(103, 232, 249, 0.12);

  backdrop-filter: blur(20px);

  box-shadow:
    0 10px 50px rgba(0, 0, 0, 0.35);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 49px;
  height: 49px;

  display: grid;
  place-items: center;

  border-radius: 15px;

  color: #67e8f9;

  background:
    linear-gradient(
      145deg,
      rgba(34, 211, 238, 0.18),
      rgba(59, 130, 246, 0.08)
    );

  border:
    1px solid rgba(34, 211, 238, 0.28);

  box-shadow:
    0 0 30px rgba(34, 211, 238, 0.08);
}

.header h1 {
  font-size: 20px;

  line-height: 1.1;

  font-weight: 850;

  letter-spacing: -0.5px;

  color: #eefdff;
}

.header p {
  margin-top: 5px;

  color: #718a9e;

  font-size: 10px;
}

.system-status {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  padding: 10px 15px;

  border-radius: 999px;

  color: #86efac;

  background:
    rgba(34, 197, 94, 0.08);

  border:
    1px solid rgba(34, 197, 94, 0.23);

  font-size: 9px;

  font-weight: 900;

  letter-spacing: 1px;
}

.status-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;

  background: #22c55e;

  box-shadow:
    0 0 0 5px rgba(34, 197, 94, 0.07),
    0 0 18px rgba(34, 197, 94, 0.75);

  animation:
    statusPulse 1.8s infinite;
}

@keyframes statusPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(0.78);
    opacity: 0.55;
  }
}


/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard {
  position: relative;
  z-index: 2;

  width: min(1540px, calc(100% - 48px));

  margin: 0 auto;

  padding:
    30px 0 60px;

  display: flex;

  flex-direction: column;

  gap: 19px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero-section {
  position: relative;

  min-height: 270px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 30px;

  padding: 38px;

  overflow: hidden;

  border-radius: 27px;

  background:
    radial-gradient(
      circle at 84% 24%,
      rgba(14, 165, 233, 0.22),
      transparent 28%
    ),
    radial-gradient(
      circle at 67% 90%,
      rgba(16, 185, 129, 0.11),
      transparent 25%
    ),
    linear-gradient(
      135deg,
      rgba(11, 29, 49, 0.98),
      rgba(6, 17, 33, 0.97)
    );

  border:
    1px solid rgba(56, 189, 248, 0.17);

  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.hero-section::before {
  content: "";

  position: absolute;

  width: 500px;
  height: 500px;

  right: -180px;
  top: -170px;

  border-radius: 50%;

  border:
    1px solid rgba(34, 211, 238, 0.08);

  box-shadow:
    0 0 100px rgba(34, 211, 238, 0.05);
}

.eyebrow {
  margin-bottom: 12px;

  color: #67e8f9;

  font-size: 9px;

  font-weight: 900;

  letter-spacing: 2.2px;
}

.hero-section h2 {
  position: relative;
  z-index: 2;

  max-width: 800px;

  font-size:
    clamp(35px, 4vw, 58px);

  line-height: 1.01;

  letter-spacing: -2.7px;

  background:
    linear-gradient(
      100deg,
      #ffffff 15%,
      #c3f6ff 56%,
      #7dd3fc 92%
    );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}

.hero-text {
  max-width: 650px;

  margin-top: 17px;

  color: #86a0b4;

  font-size: 13px;

  line-height: 1.75;
}

.hero-status {
  position: relative;
  z-index: 3;

  min-width: 280px;

  display: flex;

  align-items: center;

  gap: 13px;

  padding: 18px;

  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(7, 27, 45, 0.84),
      rgba(5, 15, 29, 0.76)
    );

  border:
    1px solid rgba(34, 211, 238, 0.18);

  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.25);
}

.hero-status-icon {
  width: 53px;
  height: 53px;

  display: grid;

  place-items: center;

  border-radius: 16px;

  color: #a5f3fc;

  background:
    linear-gradient(
      145deg,
      rgba(34, 211, 238, 0.15),
      rgba(59, 130, 246, 0.08)
    );

  border:
    1px solid rgba(34, 211, 238, 0.22);
}

.hero-status div:last-child {
  display: flex;
  flex-direction: column;
}

.hero-status span {
  color: #658095;

  font-size: 8px;

  font-weight: 900;

  letter-spacing: 1.7px;
}

.hero-status strong {
  margin-top: 4px;

  color: #cffafe;

  font-size: 14px;

  letter-spacing: 0.5px;
}

.hero-status small {
  margin-top: 4px;

  color: #6c8598;

  font-size: 9px;
}


/* =========================================================
   METRIC CARDS
   ========================================================= */

.metric-grid {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 14px;
}

.metric-card {
  position: relative;

  min-height: 140px;

  padding: 19px;

  overflow: hidden;

  border-radius: 19px;

  background:
    linear-gradient(
      145deg,
      rgba(13, 31, 51, 0.94),
      rgba(7, 18, 32, 0.97)
    );

  border:
    1px solid rgba(148, 163, 184, 0.09);

  box-shadow:
    0 17px 45px rgba(0, 0, 0, 0.2);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.metric-card::after {
  content: "";

  position: absolute;

  width: 135px;
  height: 135px;

  right: -72px;
  top: -70px;

  border-radius: 50%;

  background:
    rgba(34, 211, 238, 0.065);
}

.metric-card:hover {
  transform: translateY(-4px);

  border-color:
    rgba(103, 232, 249, 0.22);

  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.3);
}

.metric-card span {
  position: relative;
  z-index: 2;

  display: flex;

  align-items: center;

  gap: 7px;

  color: #7892a5;

  font-size: 8px;

  font-weight: 900;

  letter-spacing: 1.15px;
}

.metric-card:nth-child(1) span {
  color: #67e8f9;
}

.metric-card:nth-child(2) span {
  color: #86efac;
}

.metric-card:nth-child(3) span {
  color: #fcd34d;
}

.metric-card:nth-child(4) span {
  color: #fb7185;
}

.metric-card strong {
  position: relative;
  z-index: 2;

  display: block;

  margin-top: 13px;

  color: #f7fdff;

  font-size: 39px;

  line-height: 1;

  font-weight: 900;

  letter-spacing: -1.5px;
}

.metric-card small {
  position: relative;
  z-index: 2;

  display: block;

  margin-top: 9px;

  color: #60788a;

  font-size: 9px;
}


/* =========================================================
   GENERIC PANELS
   ========================================================= */

.panel,
.map-panel {
  position: relative;

  padding: 23px;

  overflow: hidden;

  border-radius: 22px;

  background:
    linear-gradient(
      145deg,
      rgba(12, 28, 47, 0.94),
      rgba(6, 16, 29, 0.96)
    );

  border:
    1px solid rgba(103, 232, 249, 0.085);

  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.2);
}

.panel::before,
.map-panel::before {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  top: 0;

  height: 2px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(34, 211, 238, 0.75),
      rgba(99, 102, 241, 0.5),
      transparent
    );

  opacity: 0.5;
}

.panel-title {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 18px;

  margin-bottom: 19px;
}

.panel-title h2 {
  color: #f1f9fc;

  font-size: 17px;

  font-weight: 800;

  letter-spacing: -0.4px;
}

.panel-title p {
  margin-top: 5px;

  color: #6d8598;

  font-size: 10px;
}

.panel-title > svg {
  width: 21px;
  height: 21px;

  color: #67e8f9;

  filter:
    drop-shadow(
      0 0 8px rgba(34, 211, 238, 0.3)
    );
}


/* =========================================================
   DEMO CONTROL
   ========================================================= */

.simulation-panel {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  padding: 18px 22px;

  border-radius: 20px;

  background:
    linear-gradient(
      120deg,
      rgba(8, 29, 50, 0.96),
      rgba(23, 25, 58, 0.88)
    );

  border:
    1px solid rgba(99, 102, 241, 0.23);

  box-shadow:
    0 15px 50px rgba(0, 0, 0, 0.23);
}

.simulation-title {
  display: flex;

  align-items: center;

  gap: 12px;
}

.simulation-title > svg {
  color: #a5b4fc;

  filter:
    drop-shadow(
      0 0 9px rgba(129, 140, 248, 0.55)
    );
}

.simulation-title h2 {
  color: #e4eaff;

  font-size: 13px;
}

.simulation-title p {
  margin-top: 4px;

  color: #778ba4;

  font-size: 9px;
}

.simulation-controls {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;
}

.simulation-btn,
.reset-btn {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  padding: 10px 14px;

  border-radius: 11px;

  border:
    1px solid rgba(148, 163, 184, 0.13);

  background:
    rgba(255, 255, 255, 0.025);

  color: #a9bbc7;

  font-size: 9px;

  font-weight: 900;

  letter-spacing: 0.75px;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.simulation-btn:hover,
.reset-btn:hover {
  transform: translateY(-2px);

  background:
    rgba(255, 255, 255, 0.05);

  color: #f3f8fb;
}

.simulation-btn.active-normal {
  color: #86efac;

  background:
    linear-gradient(
      135deg,
      rgba(34, 197, 94, 0.14),
      rgba(34, 197, 94, 0.05)
    );

  border-color:
    rgba(34, 197, 94, 0.4);

  box-shadow:
    0 0 25px rgba(34, 197, 94, 0.09);
}

.simulation-btn.active-warning {
  color: #fde68a;

  background:
    linear-gradient(
      135deg,
      rgba(245, 158, 11, 0.15),
      rgba(245, 158, 11, 0.04)
    );

  border-color:
    rgba(245, 158, 11, 0.44);

  box-shadow:
    0 0 30px rgba(245, 158, 11, 0.11);
}

.simulation-btn.active-critical {
  color: #fda4af;

  background:
    linear-gradient(
      135deg,
      rgba(239, 68, 68, 0.17),
      rgba(239, 68, 68, 0.05)
    );

  border-color:
    rgba(239, 68, 68, 0.48);

  box-shadow:
    0 0 34px rgba(239, 68, 68, 0.13);

  animation:
    criticalButton 1.5s infinite;
}

@keyframes criticalButton {

  0%,
  100% {
    box-shadow:
      0 0 20px rgba(239, 68, 68, 0.08);
  }

  50% {
    box-shadow:
      0 0 34px rgba(239, 68, 68, 0.22);
  }
}

.control-dot {
  width: 7px;
  height: 7px;

  border-radius: 50%;
}

.normal-dot {
  background: #22c55e;

  box-shadow:
    0 0 9px rgba(34, 197, 94, 0.6);
}

.warning-dot {
  background: #f59e0b;

  box-shadow:
    0 0 9px rgba(245, 158, 11, 0.6);
}

.critical-dot {
  background: #ef4444;

  box-shadow:
    0 0 10px rgba(239, 68, 68, 0.65);
}

.reset-btn {
  color: #93c5fd;

  border-color:
    rgba(96, 165, 250, 0.18);
}


/* =========================================================
   RISK + SENSOR LAYOUT
   ========================================================= */

.main-risk-layout {
  display: grid;

  grid-template-columns:
    0.88fr 1.12fr;

  gap: 17px;
}


/* =========================================================
   RISK PANEL
   ========================================================= */

.risk-panel {
  position: relative;

  min-height: 320px;

  padding: 28px;

  overflow: hidden;

  border-radius: 22px;

  background:
    linear-gradient(
      145deg,
      rgba(10, 28, 45, 0.98),
      rgba(5, 15, 27, 0.98)
    );

  border:
    1px solid rgba(148, 163, 184, 0.09);

  box-shadow:
    0 22px 65px rgba(0, 0, 0, 0.24);

  transition:
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    background 0.4s ease;
}

.risk-panel.low {
  border-color:
    rgba(34, 197, 94, 0.13);
}

.risk-panel.warning {
  border-color:
    rgba(245, 158, 11, 0.28);

  box-shadow:
    0 0 45px rgba(245, 158, 11, 0.06),
    0 22px 65px rgba(0, 0, 0, 0.24);

  animation:
    warningPanel 2.2s infinite;
}

.risk-panel.critical {
  border-color:
    rgba(239, 68, 68, 0.38);

  box-shadow:
    0 0 60px rgba(239, 68, 68, 0.09),
    0 22px 65px rgba(0, 0, 0, 0.27);

  animation:
    criticalPanel 1.5s infinite;
}

@keyframes warningPanel {

  0%,
  100% {
    box-shadow:
      0 0 35px rgba(245, 158, 11, 0.04),
      0 22px 65px rgba(0, 0, 0, 0.24);
  }

  50% {
    box-shadow:
      0 0 55px rgba(245, 158, 11, 0.1),
      0 22px 65px rgba(0, 0, 0, 0.24);
  }
}

@keyframes criticalPanel {

  0%,
  100% {
    box-shadow:
      0 0 42px rgba(239, 68, 68, 0.05),
      0 22px 65px rgba(0, 0, 0, 0.27);
  }

  50% {
    box-shadow:
      0 0 75px rgba(239, 68, 68, 0.16),
      0 22px 65px rgba(0, 0, 0, 0.27);
  }
}

.risk-panel::after {
  content: "";

  position: absolute;

  width: 350px;
  height: 350px;

  right: -150px;
  bottom: -170px;

  border-radius: 50%;

  filter: blur(5px);
}

.risk-panel.low::after {
  background:
    radial-gradient(
      circle,
      rgba(34, 197, 94, 0.11),
      transparent 70%
    );
}

.risk-panel.warning::after {
  background:
    radial-gradient(
      circle,
      rgba(245, 158, 11, 0.14),
      transparent 70%
    );
}

.risk-panel.critical::after {
  background:
    radial-gradient(
      circle,
      rgba(239, 68, 68, 0.18),
      transparent 70%
    );
}

.risk-header {
  position: relative;
  z-index: 3;

  display: flex;

  justify-content: space-between;

  align-items: flex-start;
}

.risk-header p {
  color: #70889a;

  font-size: 9px;

  font-weight: 900;

  letter-spacing: 1.6px;
}

.risk-header h2 {
  margin-top: 6px;

  color: #f2f9fc;

  font-size: 21px;
}

.risk-icon {
  width: 52px;
  height: 52px;

  display: grid;
  place-items: center;

  border-radius: 16px;

  background:
    rgba(255, 255, 255, 0.035);

  border:
    1px solid rgba(148, 163, 184, 0.1);
}

.risk-panel.low .risk-icon {
  color: #4ade80;
}

.risk-panel.warning .risk-icon {
  color: #fbbf24;
}

.risk-panel.critical .risk-icon {
  color: #fb7185;

  animation:
    iconPulse 1.2s infinite;
}

@keyframes iconPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.risk-value {
  position: relative;
  z-index: 3;

  margin-top: 31px;

  font-size: 45px;

  line-height: 1;

  font-weight: 950;

  letter-spacing: -2px;

  transition:
    color 0.4s ease,
    transform 0.3s ease;
}

.risk-panel.low .risk-value {
  color: #4ade80;
}

.risk-panel.warning .risk-value {
  color: #fbbf24;
}

.risk-panel.critical .risk-value {
  color: #fb7185;

  animation:
    criticalText 1.2s infinite;
}

@keyframes criticalText {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.025);
  }
}

.risk-description {
  position: relative;
  z-index: 3;

  max-width: 570px;

  margin-top: 12px;

  color: #8198aa;

  font-size: 11px;

  line-height: 1.65;
}

.risk-score {
  position: relative;
  z-index: 3;

  margin-top: 27px;
}

.score-header {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 9px;
}

.score-header span {
  color: #708799;

  font-size: 9px;

  font-weight: 800;

  letter-spacing: 0.7px;
}

.score-header strong {
  color: #e6f0f5;

  font-size: 12px;
}

.score-bar {
  width: 100%;

  height: 9px;

  overflow: hidden;

  border-radius: 999px;

  background:
    rgba(148, 163, 184, 0.09);
}

.score-fill {
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      #22c55e,
      #84cc16,
      #f59e0b,
      #ef4444
    );

  transition:
    width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);

  box-shadow:
    0 0 20px rgba(34, 211, 238, 0.15);
}


/* =========================================================
   LIVE SENSOR INPUTS
   ========================================================= */

.sensor-live-panel {
  min-height: 320px;
}

.sensor-live-grid {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 12px;
}

.live-value {
  position: relative;

  min-height: 122px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  gap: 8px;

  padding: 17px;

  overflow: hidden;

  border-radius: 17px;

  background:
    linear-gradient(
      145deg,
      rgba(17, 43, 66, 0.72),
      rgba(7, 20, 35, 0.72)
    );

  border:
    1px solid rgba(103, 232, 249, 0.08);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.live-value:hover {
  transform: translateY(-3px);

  border-color:
    rgba(34, 211, 238, 0.22);

  background:
    linear-gradient(
      145deg,
      rgba(20, 53, 79, 0.78),
      rgba(7, 23, 40, 0.78)
    );
}

.live-value::after {
  content: "";

  position: absolute;

  width: 95px;
  height: 95px;

  right: -35px;
  top: -42px;

  border-radius: 50%;

  background:
    rgba(34, 211, 238, 0.06);
}

.live-value svg {
  width: 18px;
  height: 18px;

  color: #67e8f9;
}

.live-value:nth-child(2) svg {
  color: #fbbf24;
}

.live-value:nth-child(3) svg {
  color: #60a5fa;
}

.live-value:nth-child(4) svg {
  color: #a78bfa;
}

.live-value span {
  color: #7892a5;

  font-size: 9px;
}

.live-value strong {
  color: #effaff;

  font-size: 27px;

  line-height: 1;

  letter-spacing: -1px;
}

.live-value small {
  color: #7994a8;

  font-size: 10px;
}


/* =========================================================
   NETWORK STATUS
   ========================================================= */

.edge-trend {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 11px;
}

.edge-trend > div {
  min-height: 89px;

  display: flex;

  flex-direction: column;

  gap: 7px;

  padding: 15px;

  border-radius: 15px;

  background:
    rgba(255, 255, 255, 0.027);

  border:
    1px solid rgba(148, 163, 184, 0.065);
}

.edge-trend svg {
  width: 16px;
  height: 16px;

  color: #60a5fa;
}

.edge-trend span {
  color: #688195;

  font-size: 8px;

  font-weight: 900;

  letter-spacing: 0.9px;

  text-transform: uppercase;
}

.edge-trend strong {
  color: #deebf0;

  font-size: 12px;
}


/* =========================================================
   WATER GRAPH
   ========================================================= */

.graph {
  position: relative;

  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  gap: 13px;

  height: 220px;

  padding:
    30px 12px 13px;

  overflow: hidden;

  border-radius: 17px;

  background:
    linear-gradient(
      180deg,
      rgba(15, 51, 73, 0.24),
      rgba(5, 18, 31, 0.22)
    );

  border:
    1px solid rgba(34, 211, 238, 0.07);
}

.graph::before,
.graph::after {
  content: "";

  position: absolute;

  left: 10px;
  right: 10px;

  border-top:
    1px dashed rgba(148, 163, 184, 0.07);
}

.graph::before {
  top: 33%;
}

.graph::after {
  top: 66%;
}

.bar {
  position: relative;
  z-index: 2;

  flex: 1;

  max-width: 75px;

  min-width: 18px;

  border-radius:
    9px 9px 4px 4px;

  background:
    linear-gradient(
      180deg,
      #67e8f9,
      #0ea5e9 46%,
      #2563eb 100%
    );

  box-shadow:
    0 0 25px rgba(14, 165, 233, 0.16);

  transition:
    height 0.45s ease;

  animation:
    graphBar 0.55s ease;
}

@keyframes graphBar {

  from {
    transform: scaleY(0.7);
    opacity: 0.3;
  }

  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

.bar::before {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  top: 0;

  height: 3px;

  border-radius: 99px;

  background:
    #cffafe;

  box-shadow:
    0 0 10px rgba(103, 232, 249, 0.55);
}

.bar span {
  position: absolute;

  top: -23px;
  left: 50%;

  transform:
    translateX(-50%);

  color: #9bc1d4;

  font-size: 9px;

  font-weight: 700;
}

.graph-label {
  margin-top: 12px;

  text-align: center;

  color: #5f788b;

  font-size: 8px;

  font-weight: 800;

  letter-spacing: 1.2px;

  text-transform: uppercase;
}

.trend-summary {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 11px;

  margin-top: 15px;
}

.trend-summary > div {
  display: flex;

  align-items: center;

  gap: 10px;

  padding: 13px;

  border-radius: 14px;

  background:
    rgba(255, 255, 255, 0.025);

  border:
    1px solid rgba(148, 163, 184, 0.06);
}

.trend-summary svg {
  width: 17px;
  height: 17px;

  color: #60a5fa;
}

.trend-summary span {
  color: #6d8699;

  font-size: 9px;
}

.trend-summary strong {
  margin-left: auto;

  color: #d9e7ee;

  font-size: 11px;
}


/* =========================================================
   NODE CARDS
   ========================================================= */

.node-grid {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 13px;
}

.node-card {
  position: relative;

  padding: 18px;

  overflow: hidden;

  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(17, 38, 57, 0.84),
      rgba(7, 19, 33, 0.9)
    );

  border:
    1px solid rgba(148, 163, 184, 0.07);

  transition:
    transform 0.23s ease,
    border-color 0.23s ease,
    box-shadow 0.23s ease;
}

.node-card:hover {
  transform: translateY(-3px);

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.23);
}

.node-card.normal {
  border-color:
    rgba(34, 197, 94, 0.15);
}

.node-card.warning {
  border-color:
    rgba(245, 158, 11, 0.22);

  box-shadow:
    0 0 25px rgba(245, 158, 11, 0.035);
}

.node-card.critical {
  border-color:
    rgba(239, 68, 68, 0.28);

  box-shadow:
    0 0 32px rgba(239, 68, 68, 0.055);

  animation:
    criticalNode 1.6s infinite;
}

@keyframes criticalNode {

  0%,
  100% {
    box-shadow:
      0 0 22px rgba(239, 68, 68, 0.04);
  }

  50% {
    box-shadow:
      0 0 38px rgba(239, 68, 68, 0.1);
  }
}

.node-card-top {
  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 10px;
}

.node-card-top > div {
  display: flex;

  flex-direction: column;

  gap: 4px;
}

.node-card-top span:first-child {
  color: #dcebf2;

  font-size: 12px;

  font-weight: 900;

  letter-spacing: 0.5px;
}

.node-card-top small {
  color: #617b8d;

  font-size: 9px;
}

.node-status-dot {
  width: 8px;
  height: 8px;

  margin-top: 2px;

  border-radius: 50%;

  background: #22c55e;

  box-shadow:
    0 0 14px rgba(34, 197, 94, 0.6);
}

.node-card.warning .node-status-dot {
  background: #f59e0b;

  box-shadow:
    0 0 14px rgba(245, 158, 11, 0.65);
}

.node-card.critical .node-status-dot {
  background: #ef4444;

  box-shadow:
    0 0 17px rgba(239, 68, 68, 0.75);

  animation:
    criticalDot 1.1s infinite;
}

@keyframes criticalDot {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(0.65);
    opacity: 0.4;
  }
}

.node-risk {
  display: inline-block;

  margin-top: 17px;

  font-size: 21px;

  font-weight: 950;

  letter-spacing: -0.5px;
}

.node-card.normal .node-risk {
  color: #4ade80;
}

.node-card.warning .node-risk {
  color: #fbbf24;
}

.node-card.critical .node-risk {
  color: #fb7185;
}

.node-details {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 8px;

  margin-top: 17px;

  padding-top: 14px;

  border-top:
    1px solid rgba(148, 163, 184, 0.07);
}

.node-details span {
  display: flex;

  flex-direction: column;

  gap: 4px;

  color: #647f91;

  font-size: 8px;

  text-transform: uppercase;

  letter-spacing: 0.4px;
}

.node-details b {
  color: #d0dfe6;

  font-size: 10px;

  font-weight: 700;

  text-transform: none;

  letter-spacing: 0;
}


/* =========================================================
   MAP
   ========================================================= */

.map-panel {
  padding-bottom: 18px;
}

.map-legend {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 17px;

  margin:
    -5px 0 13px;
}

.map-legend span {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  color: #748b9d;

  font-size: 8px;

  font-weight: 900;

  letter-spacing: 0.8px;

  text-transform: uppercase;
}

.legend-dot {
  width: 8px;
  height: 8px;

  border-radius: 50%;
}

.real-map {
  width: 100%;

  overflow: hidden;

  border-radius: 18px;

  border:
    1px solid rgba(103, 232, 249, 0.12);

  box-shadow:
    inset 0 0 50px rgba(0, 0, 0, 0.3);
}

.real-map .leaflet-container {
  width: 100%;

  height: 430px;

  background: #07131f;

  font-family:
    Inter,
    system-ui,
    sans-serif;
}

.real-map .leaflet-tile {
  filter:
    brightness(0.66)
    saturate(0.8)
    contrast(1.1)
    hue-rotate(5deg);
}

.real-map .leaflet-control-zoom a {
  width: 31px;
  height: 31px;

  line-height: 29px;

  background:
    rgba(4, 14, 25, 0.91);

  color: #caf4fb;

  border:
    1px solid rgba(103, 232, 249, 0.13);
}

.real-map .leaflet-control-attribution {
  background:
    rgba(3, 11, 19, 0.78) !important;

  color:
    #718696 !important;
}

.real-map .leaflet-control-attribution a {
  color:
    #8ea7b6 !important;
}

.real-map .leaflet-popup-content-wrapper,
.real-map .leaflet-popup-tip {
  background: #071723;

  color: #deedf2;

  border:
    1px solid rgba(103, 232, 249, 0.15);

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4);
}

.real-map .leaflet-popup-content {
  font-size: 10px;

  line-height: 1.75;
}


/* =========================================================
   ALERTS
   ========================================================= */

.alert-history-list {
  display: flex;

  flex-direction: column;

  gap: 9px;
}

.alert-item {
  display: flex;

  align-items: flex-start;

  gap: 13px;

  padding: 14px;

  border-radius: 15px;

  background:
    rgba(255, 255, 255, 0.025);

  border:
    1px solid rgba(148, 163, 184, 0.055);

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.alert-item:hover {
  transform: translateX(4px);

  background:
    rgba(255, 255, 255, 0.04);
}

.alert-item.low {
  border-left:
    3px solid #22c55e;
}

.alert-item.warning {
  border-left:
    3px solid #f59e0b;

  background:
    linear-gradient(
      90deg,
      rgba(245, 158, 11, 0.06),
      rgba(255, 255, 255, 0.02)
    );
}

.alert-item.critical {
  border-left:
    3px solid #ef4444;

  background:
    linear-gradient(
      90deg,
      rgba(239, 68, 68, 0.075),
      rgba(255, 255, 255, 0.02)
    );

  animation:
    alertCritical 1.5s infinite;
}

@keyframes alertCritical {

  0%,
  100% {
    box-shadow:
      inset 3px 0 0 rgba(239, 68, 68, 0.1);
  }

  50% {
    box-shadow:
      inset 3px 0 0 rgba(239, 68, 68, 0.32);
  }
}

.alert-icon {
  width: 35px;
  height: 35px;

  flex: 0 0 35px;

  display: grid;

  place-items: center;

  border-radius: 10px;

  background:
    rgba(255, 255, 255, 0.035);
}

.alert-icon svg {
  width: 17px;
  height: 17px;
}

.alert-item.low .alert-icon {
  color: #4ade80;
}

.alert-item.warning .alert-icon {
  color: #fbbf24;
}

.alert-item.critical .alert-icon {
  color: #fb7185;
}

.alert-item strong {
  display: block;

  color: #e1edf2;

  font-size: 10px;

  letter-spacing: 0.6px;
}

.alert-item p {
  margin-top: 4px;

  color: #72899b;

  font-size: 10px;

  line-height: 1.5;
}

.alert-item small {
  display: block;

  margin-top: 5px;

  color: #587183;

  font-size: 8px;
}


/* =========================================================
   AI SECTION
   ========================================================= */

.ai-grid {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 12px;
}

.ai-card {
  min-height: 138px;

  display: flex;

  flex-direction: column;

  gap: 9px;

  padding: 18px;

  border-radius: 17px;

  background:
    linear-gradient(
      145deg,
      rgba(17, 37, 58, 0.82),
      rgba(7, 19, 33, 0.86)
    );

  border:
    1px solid rgba(125, 211, 252, 0.075);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.ai-card:hover {
  transform: translateY(-3px);

  border-color:
    rgba(129, 140, 248, 0.28);
}

.ai-card:nth-child(1) svg {
  color: #a78bfa;
}

.ai-card:nth-child(2) svg {
  color: #67e8f9;
}

.ai-card:nth-child(3) svg {
  color: #fbbf24;
}

.ai-card:nth-child(4) svg {
  color: #60a5fa;
}

.ai-card svg {
  width: 20px;
  height: 20px;
}

.ai-card span {
  color: #6e8598;

  font-size: 8px;

  font-weight: 900;

  letter-spacing: 1px;

  text-transform: uppercase;
}

.ai-card strong {
  margin-top: auto;

  color: #e2edf2;

  font-size: 12px;

  line-height: 1.3;
}

.ai-footer {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 10px;

  margin-top: 15px;

  padding-top: 15px;

  border-top:
    1px solid rgba(148, 163, 184, 0.065);
}

.ai-footer div {
  display: flex;

  flex-direction: column;

  gap: 5px;
}

.ai-footer span {
  color: #5e7587;

  font-size: 8px;

  font-weight: 900;

  letter-spacing: 1px;
}

.ai-footer strong {
  color: #b6c8d1;

  font-size: 10px;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 15px;

  padding:
    10px 3px 2px;

  color: #506b7d;

  font-size: 8px;

  letter-spacing: 0.4px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

  .header {
    padding:
      17px 24px;
  }

  .dashboard {
    width:
      min(
        100% - 32px,
        1540px
      );
  }

  .metric-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .ai-grid {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .main-risk-layout {
    grid-template-columns:
      1fr;
  }

}


@media (max-width: 800px) {

  .hero-section {
    flex-direction: column;

    align-items: flex-start;

    padding: 28px;
  }

  .hero-status {
    width: 100%;
    min-width: 0;
  }

  .simulation-panel {
    flex-direction: column;

    align-items: flex-start;
  }

  .simulation-controls {
    width: 100%;
  }

  .node-grid {
    grid-template-columns:
      1fr;
  }

  .edge-trend {
    grid-template-columns:
      1fr;
  }

  .ai-footer {
    grid-template-columns:
      repeat(2, 1fr);
  }

}


@media (max-width: 600px) {

  .header {
    position: relative;

    flex-direction: column;

    align-items: flex-start;

    padding: 16px;
  }

  .system-status {
    width: 100%;

    justify-content: center;
  }

  .dashboard {
    width:
      calc(100% - 18px);

    padding:
      14px 0 35px;

    gap: 13px;
  }

  .hero-section h2 {
    font-size: 34px;

    letter-spacing: -1.5px;
  }

  .metric-grid {
    grid-template-columns:
      1fr 1fr;

    gap: 9px;
  }

  .metric-card {
    min-height: 115px;

    padding: 15px;
  }

  .metric-card strong {
    font-size: 29px;
  }

  .panel,
  .map-panel {
    padding: 17px;
  }

  .sensor-live-grid {
    grid-template-columns:
      1fr;
  }

  .graph {
    height: 180px;

    gap: 7px;
  }

  .ai-grid {
    grid-template-columns:
      1fr;
  }

  .ai-footer {
    grid-template-columns:
      1fr 1fr;
  }

  .real-map .leaflet-container {
    height: 330px;
  }

  footer {
    flex-direction: column;

    align-items: flex-start;

    gap: 5px;
  }

}


@media (max-width: 420px) {

  .metric-grid {
    grid-template-columns:
      1fr;
  }

  .simulation-controls {
    display: grid;

    grid-template-columns:
      1fr 1fr;

    width: 100%;
  }

  .simulation-btn,
  .reset-btn {
    justify-content: center;
  }

  .risk-value {
    font-size: 38px;
  }

}/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: url(#default#VML);
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=);
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}
