@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Share+Tech+Mono&family=Exo+2:wght@300;400;500;600&display=swap");

:root {
  --c: #00d4ff;
  --c2: #0ff;
  --r: #ff3355;
  --g: #00ff88;
  --o: #ff8800;
  --y: #ffdd00;
  --p: #aa44ff;
  --bg: #00080f;
  --bg2: #000d18;
  --bg3: #001020;
  --b1: rgba(0, 212, 255, 0.35);
  --b2: rgba(0, 212, 255, 0.18);
  --b3: rgba(0, 212, 255, 0.08);
  --br1: rgba(255, 51, 85, 0.45);
  --br2: rgba(255, 51, 85, 0.2);
  --t1: #d0f0ff;
  --t2: #4db8d4;
  --t3: #1a5a70;
  --fh: "Orbitron", monospace;
  --fm: "Share Tech Mono", monospace;
  --fb: "Exo 2", sans-serif;
  --gc:
    0 0 8px #00d4ff, 0 0 24px rgba(0, 212, 255, 0.5),
    0 0 48px rgba(0, 212, 255, 0.2);
  --gr:
    0 0 8px #ff3355, 0 0 24px rgba(255, 51, 85, 0.5),
    0 0 48px rgba(255, 51, 85, 0.2);
  --gg: 0 0 8px #00ff88, 0 0 24px rgba(0, 255, 136, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--fb);
  background: #00080f;
  color: var(--t1);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.07) 2px,
    rgba(0, 0, 0, 0.07) 4px
  );
}

::-webkit-scrollbar {
  width: 3px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--b1);
  border-radius: 2px;
}

/* HEADER */
.aqis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 52px;
  background: linear-gradient(
    180deg,
    rgba(0, 15, 30, 0.99) 0%,
    rgba(0, 8, 18, 0.99) 100%
  );
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--b1);
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.06),
    0 4px 40px rgba(0, 0, 0, 0.9),
    inset 0 -1px 0 rgba(0, 212, 255, 0.1),
    inset 0 1px 0 rgba(0, 212, 255, 0.05);
}
.aqis-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--c) 15%,
    var(--c2) 40%,
    #fff 50%,
    var(--c2) 60%,
    var(--c) 85%,
    transparent 100%
  );
  box-shadow: var(--gc);
  animation: headerGlow 4s ease-in-out infinite;
}
@keyframes headerGlow {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}
.aqis-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  width: 80px;
  height: 2px;
  left: -80px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--c2),
    var(--c),
    transparent
  );
  box-shadow:
    0 0 10px var(--c),
    0 0 20px rgba(0, 212, 255, 0.6);
  animation: streak 3.5s linear infinite;
}
@keyframes streak {
  0% {
    left: -80px;
  }
  100% {
    left: 110%;
  }
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--c);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.06);
  box-shadow:
    var(--gc),
    inset 0 0 12px rgba(0, 212, 255, 0.08);
  animation: ringBreath 2.8s ease-in-out infinite;
  position: relative;
}
.logo-ring::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.18);
  animation: ringBreath 2.8s ease-in-out infinite 0.5s;
}
.logo-ring::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.07);
  animation: ringBreath 2.8s ease-in-out infinite 1s;
}
@keyframes ringBreath {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}
.sys-title {
  font-family: var(--fh);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: var(--gc);
}
.header-meta {
  font-family: var(--fm);
  font-size: 14px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.live-clock {
  color: #ffffff;
  font-size: 16px;
  letter-spacing: 3px;
  font-weight: 600;
  text-shadow:
    0 0 10px var(--c2),
    0 0 20px rgba(0, 255, 255, 0.4);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--fm);
  font-size: 10px;
  color: var(--g);
  padding: 4px 12px;
  border: 1px solid rgba(0, 255, 136, 0.35);
  border-radius: 2px;
  background: rgba(0, 255, 136, 0.04);
  box-shadow:
    0 0 12px rgba(0, 255, 136, 0.12),
    inset 0 0 8px rgba(0, 255, 136, 0.03);
  letter-spacing: 1px;
}
.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--g);
  box-shadow: var(--gg);
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.1;
  }
}
.nav-btn {
  font-family: var(--fm);
  font-size: 13px;
  letter-spacing: 1px;
  color: white;
  text-decoration: none;
  padding: 5px 14px;
  border: 1px solid var(--b2);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.nav-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 212, 255, 0.08),
    transparent
  );
  transition: left 0.4s;
}
.nav-btn:hover {
  color: var(--c);
  border-color: var(--b1);
  background: var(--b3);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.15);
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}
.nav-btn:hover::before {
  left: 100%;
}
.admin-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--fm);
  font-size: 10px;
  color: white;
}

/* STATION CARDS */
.station-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #000f20 0%, #000a16 100%);
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  background-image:
    radial-gradient(
      1px 1px at 8% 20%,
      rgba(0, 212, 255, 0.35) 0%,
      transparent 100%
    ),
    radial-gradient(
      1px 1px at 22% 70%,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 100%
    ),
    radial-gradient(
      1px 1px at 45% 35%,
      rgba(0, 212, 255, 0.25) 0%,
      transparent 100%
    ),
    radial-gradient(
      1px 1px at 60% 80%,
      rgba(255, 255, 255, 0.12) 0%,
      transparent 100%
    ),
    radial-gradient(
      1px 1px at 78% 15%,
      rgba(0, 212, 255, 0.3) 0%,
      transparent 100%
    ),
    radial-gradient(
      1px 1px at 92% 55%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 100%
    ),
    radial-gradient(
      1px 1px at 33% 90%,
      rgba(0, 212, 255, 0.2) 0%,
      transparent 100%
    ),
    linear-gradient(180deg, #000f20 0%, #000a16 100%);
}
.station-bar::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent calc(20% - 1px),
    rgba(0, 212, 255, 0.12) calc(20% - 1px),
    rgba(0, 212, 255, 0.12) 20%
  );
}
.s-card {
  padding: 12px 14px 12px 18px;
  cursor: pointer;
  border-right: none;
  position: relative;
  overflow: hidden;
  transition:
    background 0.25s,
    box-shadow 0.25s;
  animation: cardIn 0.4s ease both;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(0, 20, 40, 0.6) 0%,
    rgba(0, 10, 24, 0.8) 60%,
    rgba(0, 6, 16, 0.95) 100%
  );
}
.s-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--c) 20%,
    var(--c) 80%,
    transparent 100%
  );
  box-shadow:
    0 0 8px var(--c),
    0 0 16px rgba(0, 212, 255, 0.4);
  opacity: 0.5;
  transition: opacity 0.3s;
}
.s-card.offline::before {
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--r) 20%,
    var(--r) 80%,
    transparent 100%
  );
  box-shadow:
    0 0 8px var(--r),
    0 0 16px rgba(255, 51, 85, 0.4);
  opacity: 0.7;
}
.s-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--c) 0%, transparent 70%);
  box-shadow: 0 0 6px rgba(0, 212, 255, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
}
.s-card.offline::after {
  background: linear-gradient(90deg, var(--r) 0%, transparent 70%);
  box-shadow: 0 0 6px rgba(255, 51, 85, 0.5);
}
.s-card:hover::before {
  opacity: 1;
}
.s-card:hover::after {
  opacity: 1;
}
.s-card.active::before {
  opacity: 1;
}
.s-card.active::after {
  opacity: 1;
}
.s-card:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.08) 0%,
    rgba(0, 20, 40, 0.8) 50%,
    rgba(0, 6, 16, 0.95) 100%
  );
}
.s-card.active {
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.12) 0%,
    rgba(0, 25, 50, 0.85) 50%,
    rgba(0, 8, 20, 0.97) 100%
  );
  box-shadow: inset 4px 0 20px rgba(0, 212, 255, 0.06);
}
.s-card.offline {
  background: linear-gradient(
    135deg,
    rgba(255, 51, 85, 0.07) 0%,
    rgba(30, 5, 12, 0.85) 60%,
    rgba(10, 0, 6, 0.97) 100%
  );
}
.s-card.offline.active {
  background: linear-gradient(
    135deg,
    rgba(255, 51, 85, 0.13) 0%,
    rgba(40, 5, 15, 0.9) 60%,
    rgba(12, 0, 6, 0.98) 100%
  );
  box-shadow: inset 4px 0 20px rgba(255, 51, 85, 0.06);
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.s-card:nth-child(1) {
  animation-delay: 0.05s;
}
.s-card:nth-child(2) {
  animation-delay: 0.1s;
}
.s-card:nth-child(3) {
  animation-delay: 0.15s;
}
.s-card:nth-child(4) {
  animation-delay: 0.2s;
}
.s-card:nth-child(5) {
  animation-delay: 0.25s;
}
.sc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}
.s-card.offline .sc-head {
  border-bottom-color: rgba(255, 51, 85, 0.12);
}
.sc-name {
  font-family: var(--fh);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: white;
  text-shadow: 0 0 14px rgba(0, 212, 255, 0.7);
  text-transform: uppercase;
}
.s-card.offline .sc-name {
  color: var(--r);
  text-shadow: 0 0 14px rgba(255, 51, 85, 0.7);
}
.sc-badge {
  font-family: var(--fm);
  font-size: 9px;
  padding: 3px 9px;
  border-radius: 1px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.b-online {
  color: var(--g);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.35);
  box-shadow:
    0 0 8px rgba(0, 255, 136, 0.2),
    inset 0 0 6px rgba(0, 255, 136, 0.04);
}
.b-offline {
  color: var(--r);
  background: rgba(255, 51, 85, 0.08);
  border: 1px solid rgba(255, 51, 85, 0.35);
  box-shadow: 0 0 8px rgba(255, 51, 85, 0.2);
  animation: badgePulse 1.6s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(255, 51, 85, 0.2);
  }
  50% {
    box-shadow:
      0 0 18px rgba(255, 51, 85, 0.5),
      inset 0 0 8px rgba(255, 51, 85, 0.1);
  }
}
.sc-params {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.sc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--fm);
  font-size: 16px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(0, 212, 255, 0.06);
}
.sc-row:last-child {
  border-bottom: none;
}
.s-card.offline .sc-row {
  border-bottom-color: rgba(255, 51, 85, 0.06);
}
.sc-label {
  color: white;
  letter-spacing: 1px;
}
.sc-val {
  color: white;
  font-size: 16px;
}

/* MAIN GRID & MAP */
.main-grid {
  display: grid;
  grid-template-columns: 1fr 325px;
  border-bottom: 1px solid var(--b2);
  height: calc(100vh - 300px);
  min-height: 345px;
  position: relative;
  z-index: 1;
}
.map-pane {
  position: relative;
  overflow: hidden;
  background: #000c18;
  border-right: 1px solid var(--c);
  box-shadow:
    2px 0 20px rgba(0, 212, 255, 0.15),
    2px 0 4px rgba(0, 212, 255, 0.3);
}
.map-pane::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  width: 24px;
  height: 24px;
  pointer-events: none;
  border-top: 2px solid rgba(0, 212, 255, 0.7);
  border-left: 2px solid rgba(0, 212, 255, 0.7);
  box-shadow: -1px -1px 8px rgba(0, 212, 255, 0.3);
}
.map-pane::after {
  content: "";
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 10;
  width: 24px;
  height: 24px;
  pointer-events: none;
  border-bottom: 2px solid rgba(0, 212, 255, 0.7);
  border-right: 2px solid rgba(0, 212, 255, 0.7);
  box-shadow: 1px 1px 8px rgba(0, 212, 255, 0.3);
}
.map-label {
  position: absolute;
  top: 16px;
  left: 44px;
  z-index: 10;
  font-family: var(--fh);
  font-size: 8px;
  color: rgba(0, 212, 255, 0.45);
  letter-spacing: 3px;
  text-transform: uppercase;
  pointer-events: none;
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

/* DETAIL PANEL */
.detail-pane {
  background: linear-gradient(
    180deg,
    rgba(0, 10, 22, 0.99) 0%,
    rgba(0, 8, 18, 0.99) 100%
  );
  padding: 16px 14px;
  overflow-y: auto;
  border-left: 1px solid var(--c);
  box-shadow:
    -2px 0 20px rgba(0, 212, 255, 0.12),
    inset 2px 0 20px rgba(0, 212, 255, 0.04);
  position: relative;
}
.detail-pane::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 212, 255, 0.5) 15%,
    rgba(0, 212, 255, 0.3) 50%,
    rgba(0, 212, 255, 0.5) 85%,
    transparent 100%
  );
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
  pointer-events: none;
}
.dp-placeholder {
  color: var(--t3);
  font-family: var(--fm);
  font-size: 10px;
  text-align: center;
  margin-top: 60px;
  line-height: 3.2;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.dp-name {
  font-family: var(--fh);
  font-size: 14px;
  font-weight: 700;
  color: var(--c);
  margin-bottom: 6px;
  text-shadow: var(--gc);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.dp-name.red {
  color: var(--r);
  text-shadow: var(--gr);
}
.status-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--fm);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.sr-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.sr-dot.on {
  background: var(--g);
  box-shadow: var(--gg);
}
.sr-dot.off {
  background: var(--r);
  box-shadow: var(--gr);
  animation: blink 1s infinite;
}
.sr-online {
  color: var(--g);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}
.sr-offline {
  color: var(--r);
  text-shadow: 0 0 10px rgba(255, 51, 85, 0.5);
}
.divider {
  height: 1px;
  margin: 8px 0;
  background: rgba(0, 212, 255, 0.12);
  position: relative;
  overflow: hidden;
}
.divider::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 212, 255, 0.7),
    rgba(0, 255, 255, 0.9),
    transparent
  );
  box-shadow: 0 0 4px rgba(0, 212, 255, 0.5);
  animation: divSweep 3.5s ease-in-out infinite;
}
@keyframes divSweep {
  0% {
    left: -80%;
  }
  100% {
    left: 180%;
  }
}
.divider.red {
  background: rgba(255, 51, 85, 0.15);
}
.divider.red::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 51, 85, 0.7),
    rgba(255, 100, 120, 0.9),
    transparent
  );
}
.p-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 6px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.05);
  transition: all 0.15s;
  border-radius: 2px;
}
.p-row:hover {
  background: rgba(0, 212, 255, 0.04);
  border-color: rgba(0, 212, 255, 0.12);
  padding-left: 10px;
}
.p-name {
  font-family: var(--fm);
  font-size: 14px;
  color: white;
  min-width: 48px;
  letter-spacing: 1.5px;
}
.p-val {
  font-family: var(--fm);
  font-size: 14px;
  color: #9beaff;
  flex: 1;
  margin-left: 20px;
}
.p-badge {
  font-family: var(--fm);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 1px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.bn {
  color: var(--g);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.25);
  box-shadow: 0 0 6px rgba(0, 255, 136, 0.1);
}
.bm {
  color: var(--y);
  background: rgba(255, 221, 0, 0.08);
  border: 1px solid rgba(255, 221, 0, 0.25);
}
.bh {
  color: var(--o);
  background: rgba(255, 136, 0, 0.08);
  border: 1px solid rgba(255, 136, 0, 0.25);
}
.bc {
  color: var(--r);
  background: rgba(255, 51, 85, 0.08);
  border: 1px solid rgba(255, 51, 85, 0.25);
  box-shadow: 0 0 6px rgba(255, 51, 85, 0.1);
}

/* CHART PANEL DASHBOARD */
.chart-panel {
  margin: 0px 20px;
  background: #010a14;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 4px;
  position: relative;
  z-index: 1;
  height: 100%;
}
.chart-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 80px;
  height: 2px;
  background: #00d4ff;
  box-shadow: 0 0 10px #00d4ff;
  pointer-events: none;
}
.chart-panel::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 80px;
  height: 2px;
  background: #00d4ff;
  box-shadow: 0 0 10px #00d4ff;
  pointer-events: none;
}
.chart-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 0 18px;
  background: transparent;
  border-top: 1px solid var(--b2);
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.chart-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100px;
  height: 1px;
  left: -100px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--c2),
    var(--c),
    transparent
  );
  box-shadow:
    0 0 8px var(--c),
    0 0 16px rgba(0, 212, 255, 0.4);
  animation: tabScan 4s linear infinite;
}
@keyframes tabScan {
  0% {
    left: -100px;
  }
  100% {
    left: 110%;
  }
}
.tab-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 13px;
  margin: 0 5px;
  user-select: none;
}
.ctab {
  padding: 10px 20px;
  font-family: var(--fb);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.3s ease;
}
.ctab:hover {
  color: #fff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
}
.ctab.active {
  color: #fff;
  border-bottom: 2px solid #00d4ff;
  background: radial-gradient(
    120px 35px at bottom center,
    rgba(0, 212, 255, 0.35) 0%,
    transparent 100%
  );
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.8);
}
.ctab.active-red {
  color: #fff;
  border-bottom: 2px solid #ff3355;
  background: radial-gradient(
    120px 35px at bottom center,
    rgba(255, 51, 85, 0.35) 0%,
    transparent 100%
  );
  text-shadow: 0 0 8px rgba(255, 51, 85, 0.8);
}
.chart-body {
  height: 250px;
  padding: 20px 20px 10px 10px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.chart-body canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
.legend-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 10px 0 15px;
  background: transparent;
}
.leg-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fm);
  font-size: 11px;
  color: #fff;
  cursor: default;
}
.leg-line {
  width: 20px;
  height: 3px;
  border-radius: 2px;
  flex-shrink: 0;
}

.status-bar {
  padding: 5px 18px;
  background: rgba(0, 5, 12, 0.99);
  border-top: 1px solid var(--b2);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--fm);
  font-size: 9px;
  color: var(--t3);
  letter-spacing: 1.5px;
  position: relative;
  overflow: hidden;
}
.status-bar::after {
  content: "";
  position: absolute;
  top: 0;
  width: 60px;
  height: 1px;
  left: -60px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 212, 255, 0.5),
    transparent
  );
  animation: statusScan 7s linear infinite;
}
@keyframes statusScan {
  0% {
    left: -60px;
  }
  100% {
    left: 110%;
  }
}
.sb-val {
  color: var(--c);
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

/* ==== LAYOUT ==== */
.map-marker {
  position: absolute;
  width: 0;
  height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.wind-canvas {
  position: absolute;
  top: -110px;
  left: -110px;
  width: 220px;
  height: 220px;
  pointer-events: none;
  z-index: 2;
}
.marker-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  top: -10px;
  left: -10px;
  z-index: 4;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.15s;
}
.marker-dot:hover {
  transform: scale(1.35);
}
.marker-dot.online {
  background: var(--g);
  box-shadow:
    var(--gg),
    0 0 0 3px rgba(0, 255, 136, 0.2);
}
.marker-dot.offline {
  background: var(--r);
  box-shadow:
    var(--gr),
    0 0 0 3px rgba(255, 51, 85, 0.2);
  animation: mBlink 1.2s ease-in-out infinite;
}
.marker-ring {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  top: -10px;
  left: -10px;
  z-index: 3;
  pointer-events: none;
}
.marker-ring.online {
  border: 1.5px solid var(--g);
  animation: mPulse 2.4s ease-out infinite;
  opacity: 0;
}
.marker-ring.offline {
  border: 1.5px solid var(--r);
  animation: mPulse 2.4s ease-out infinite;
  opacity: 0;
}
.map-marker-label {
  position: absolute;
  top: 16px;
  left: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--fm);
  font-size: 8px;
  color: var(--c);
  letter-spacing: 1px;
  text-shadow:
    0 0 10px rgba(0, 212, 255, 1),
    0 1px 4px rgba(0, 0, 0, 1);
  pointer-events: none;
  z-index: 5;
}

@keyframes mBlink {
  0%,
  100% {
    box-shadow:
      var(--gr),
      0 0 0 3px rgba(255, 51, 85, 0.15);
  }
  50% {
    box-shadow: 0 0 4px rgba(255, 51, 85, 0.3);
  }
}
@keyframes mPulse {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.sensor-popup .maplibregl-popup-content {
  background: rgba(0, 8, 20, 0.98) !important;
  border: 1px solid var(--b1) !important;
  border-radius: 3px !important;
  padding: 12px 14px !important;
  box-shadow:
    var(--gc),
    0 8px 40px rgba(0, 0, 0, 0.8) !important;
  min-width: 190px;
}
.sensor-popup.offline-popup .maplibregl-popup-content {
  border-color: var(--br1) !important;
  box-shadow:
    var(--gr),
    0 8px 40px rgba(0, 0, 0, 0.8) !important;
}
.sensor-popup .maplibregl-popup-close-button {
  color: white !important;
  font-size: 16px !important;
}
.sp-title {
  font-family: var(--fh);
  font-size: 10px;
  font-weight: 700;
  color: var(--c);
  letter-spacing: 2px;
  margin-bottom: 4px;
  text-shadow: var(--gc);
  text-transform: uppercase;
  background: #000000c7;
  text-align: center;
}
.sp-title.red {
  color: var(--r);
  text-shadow: var(--gr);
}
.sp-status {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 1.5px;
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: #000000c7;
}
.sp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.sp-dot.on {
  background: var(--g);
  box-shadow: var(--gg);
}
.sp-dot.off {
  background: var(--r);
  box-shadow: var(--gr);
}
.sp-online {
  color: var(--g);
}
.sp-offline {
  color: var(--r);
}
.sp-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--fm);
  font-size: 9px;
  padding: 3px 10;
  border-bottom: 1px solid rgba(0, 212, 255, 0.07);
  background: #000000c7;
}
.sp-key {
  color: white;
  letter-spacing: 1px;
}
.sp-val {
  color: var(--t2);
}
.sp-btn {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-family: var(--fm);
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--c);
  border: 1px solid var(--b1);
  padding: 5px 10px;
  border-radius: 2px;
  cursor: pointer;
  background: #000000c7;
  text-transform: uppercase;
  transition: all 0.2s;
}
.sp-btn:hover {
  background: rgba(0, 212, 255, 0.12);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.maplibregl-ctrl-attrib {
  background: rgba(0, 6, 14, 0.85) !important;
  color: rgba(0, 212, 255, 0.3) !important;
  font-size: 8px !important;
}
.maplibregl-ctrl-attrib a {
  color: rgba(0, 212, 255, 0.4) !important;
}
.maplibregl-ctrl-group {
  background: rgba(0, 8, 20, 0.96) !important;
  border: 1px solid var(--b1) !important;
  border-radius: 2px !important;
  box-shadow: var(--gc) !important;
}
.maplibregl-ctrl-group button {
  background-color: transparent !important;
  border-bottom: 1px solid rgba(0, 212, 255, 0.08) !important;
}
.maplibregl-ctrl-icon {
  filter: invert(75%) sepia(60%) saturate(500%) hue-rotate(160deg)
    brightness(1.1);
}


.img-panel{
    width:100%;
    padding:6px;
    background:#071a33;

    clip-path: polygon(
        20px 0,
        calc(100% - 20px) 0,
        100% 20px,
        100% calc(100% - 20px),
        calc(100% - 20px) 100%,
        20px 100%,
        0 calc(100% - 20px),
        0 20px
    );

    border:2px solid #00eaff;

    box-shadow:
        0 0 10px #00eaff,
        0 0 20px #00eaff;
}

.img-panel img{
    width:100%;
    display:block;

    clip-path: polygon(
        15px 0,
        calc(100% - 15px) 0,
        100% 15px,
        100% calc(100% - 15px),
        calc(100% - 15px) 100%,
        15px 100%,
        0 calc(100% - 15px),
        0 15px
    );
}

/* PANEL */
.search-panel{

padding:20px;
background:linear-gradient(145deg,#041326,#071f3b);

clip-path: polygon(
15px 0,
calc(100% - 15px) 0,
100% 15px,
100% calc(100% - 15px),
calc(100% - 15px) 100%,
15px 100%,
0 calc(100% - 15px),
0 15px
);

border:1px solid #00eaff;

box-shadow:
0 0 10px #00eaff33,
inset 0 0 10px #00eaff22;
}

/* INPUT */
.futuristic-input{

background:#031425;
border:1px solid #00eaff;
color:#00eaff;

padding:10px;

clip-path: polygon(
10px 0,
calc(100% - 10px) 0,
100% 10px,
100% calc(100% - 10px),
calc(100% - 10px) 100%,
10px 100%,
0 calc(100% - 10px),
0 10px
);

box-shadow:0 0 5px #00eaff55;

}

/* INPUT FOCUS */
.futuristic-input:focus{

outline:none;

border:1px solid #00ffff;

box-shadow:
0 0 10px #00ffff,
0 0 20px #00ffff55;

background:#02101d;

}

/* BUTTON */
.futuristic-btn{

width:100%;

background:linear-gradient(90deg, #00eaff, #35738b);

border:none;

color:white;
font-weight:bold;

clip-path: polygon(
10px 0,
calc(100% - 10px) 0,
100% 10px,
100% calc(100% - 10px),
calc(100% - 10px) 100%,
10px 100%,
0 calc(100% - 10px),
0 10px
);

box-shadow:
0 0 10px #00eaff,
0 0 20px #0077ff;

transition:0.3s;

}

/* BUTTON HOVER */
.futuristic-btn:hover{

box-shadow:
0 0 20px #00ffff,
0 0 40px #0077ff;

transform:translateY(-2px);

}
.table-panel{

padding:20px;
background:linear-gradient(145deg,#041326,#071f3b);

border:1px solid #00eaff;

clip-path: polygon(
15px 0,
calc(100% - 15px) 0,
100% 15px,
100% calc(100% - 15px),
calc(100% - 15px) 100%,
15px 100%,
0 calc(100% - 15px),
0 15px
);

box-shadow:
0 0 10px #00eaff33,
inset 0 0 15px #00eaff22;

}

/* TABLE */
.futuristic-table{

width:100%;
border-collapse:collapse;
background:transparent;

}

/* HEADER */
.futuristic-table thead{

background:linear-gradient(90deg, #0d2747, #06a5b3);

color:white;
text-transform:uppercase;
font-size:13px;
letter-spacing:1px;

}

/* HEADER CELL */
.futuristic-table th{

padding:14px;
border:1px solid rgba(0,255,255,0.3);

}

/* BODY */
.futuristic-table td{

padding:12px;
border:1px solid rgba(0,255,255,0.15);
text-align:center;

}

/* ROW HOVER */
.futuristic-table tbody tr{

transition:0.3s;

}

.futuristic-table tbody tr:hover{

background:rgba(0,255,255,0.08);

box-shadow:
inset 0 0 10px rgba(0,255,255,0.3);

}

/* ZEBRA */
.futuristic-table tbody tr:nth-child(even){

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

}
.title-menu h5 {
  font-family: var(--fh);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: var(--gc);
}
.logout{
  background: #00a659;
    color: white;
    font-weight: bold;
}