@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,700;0,900;1,800&display=swap');
@import "/assets/cyber2077.css";

/* Cyber Breath Pulse Animation for AE Status Indicator */
@keyframes aeBreathGlow {
  0% {
    transform: scale(0.92);
    box-shadow: 0 0 4px #00ffaa, 0 0 10px rgba(0, 255, 170, 0.4);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 12px #00ffaa, 0 0 22px rgba(0, 255, 170, 0.85);
    opacity: 1.0;
  }
  100% {
    transform: scale(0.92);
    box-shadow: 0 0 4px #00ffaa, 0 0 10px rgba(0, 255, 170, 0.4);
    opacity: 0.7;
  }
}

.ae-dot-indicator {
  animation: aeBreathGlow 3s ease-in-out infinite !important;
}

/* Cyberpunk Vertical Scanline Loader Animation */
@keyframes cyberScanlineMove {
  0% { top: 0%; opacity: 0.15; }
  20% { opacity: 0.9; }
  80% { opacity: 0.9; }
  100% { top: 100%; opacity: 0.15; }
}

.cyber-scan-loader {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 16px;
  min-height: 16px;
  background: rgba(0, 240, 255, 0.03);
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: inset 0 0 4px rgba(0, 240, 255, 0.08);
  overflow: hidden;
  border-radius: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.cyber-scan-loader::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: #00f0ff;
  box-shadow: 0 0 6px #00f0ff, 0 0 12px rgba(0, 240, 255, 0.8);
  animation: cyberScanlineMove 1.8s ease-in-out infinite;
  z-index: 2;
}

.cyber-scan-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 240, 255, 0.05) 0px, rgba(0, 240, 255, 0.05) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: 1;
}

/* 2077 Cyberpunk Free Text Loader (No-Frame HUD Glitch Pulse) */
@keyframes cyberTextPulse {
  0% { opacity: 0.2; transform: scaleX(0.8); text-shadow: 0 0 2px rgba(0, 240, 255, 0.2); }
  50% { opacity: 0.95; transform: scaleX(1); text-shadow: 0 0 8px rgba(0, 240, 255, 0.8), 0 0 14px rgba(0, 240, 255, 0.4); }
  100% { opacity: 0.2; transform: scaleX(0.8); text-shadow: 0 0 2px rgba(0, 240, 255, 0.2); }
}

.cyber-text-loader {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono, monospace);
  font-size: 13px;
  font-weight: 900;
  color: #00f0ff;
  letter-spacing: 2px;
  user-select: none;
  animation: cyberTextPulse 1.4s ease-in-out infinite;
}

.cyber-text-loader span {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #00f0ff;
  box-shadow: 0 0 6px #00f0ff;
}

/* 🛸 UNIFIED REUSABLE HUD CONTROL STYLES (SOLID / CLEAN CODE) */
.hud-text-input {
  width: 100%;
  background: linear-gradient(180deg, rgba(8, 14, 22, 0.85) 0%, rgba(4, 8, 14, 0.95) 100%) !important;
  border: 1px solid rgba(0, 240, 255, 0.2) !important;
  border-bottom: 2px solid rgba(0, 240, 255, 0.4) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9), inset 0 -1px 0 rgba(255, 255, 255, 0.05) !important;
  color: #00f0ff !important;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.6) !important;
  font-family: var(--font-mono, monospace) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 5px 10px !important;
  border-radius: 0 !important;
  outline: none !important;
  transition: all 0.25s ease !important;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%) !important;
}

.hud-text-input::placeholder {
  color: #415268 !important;
  font-weight: 500 !important;
  text-shadow: none !important;
}

.hud-text-input:focus {
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.12) 0%, rgba(8, 18, 30, 0.95) 100%) !important;
  border-bottom-color: #00f0ff !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 12px rgba(0, 240, 255, 0.35) !important;
}

.hud-custom-dropdown-btn {
  background: linear-gradient(180deg, rgba(16, 22, 34, 0.85) 0%, rgba(6, 10, 18, 0.95) 100%) !important;
  border: 1px solid rgba(0, 240, 255, 0.25) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-bottom: 2px solid rgba(0, 240, 255, 0.4) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 6px rgba(0, 0, 0, 0.7) !important;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%) !important;
}

.hud-custom-dropdown-btn:hover {
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.15) 0%, rgba(12, 22, 36, 0.95) 100%) !important;
  border-color: rgba(0, 240, 255, 0.6) !important;
  color: #00f0ff !important;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.7) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 12px rgba(0, 240, 255, 0.3) !important;
}

.hud-custom-dropdown-menu {
  background: linear-gradient(160deg, rgba(12, 18, 28, 0.98) 0%, rgba(4, 7, 12, 0.99) 100%) !important;
  border: 1px solid rgba(0, 240, 255, 0.4) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 30px rgba(0, 0, 0, 0.95), 0 0 15px rgba(0, 240, 255, 0.2) !important;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)) !important;
}

.hud-custom-dropdown-item:hover {
  background: rgba(0, 240, 255, 0.22) !important;
  color: #00f0ff !important;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.8) !important;
}

.hud-badge-pill {
  font-family: var(--font-mono, monospace) !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  letter-spacing: 0.8px !important;
  padding: 3px 9px !important;
  border-radius: 0 !important;
  text-transform: uppercase !important;
  border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.8) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 5px rgba(0, 0, 0, 0.6) !important;
}

:root {
  --bg-primary: #03060d;
  --bg-card: rgba(6, 12, 24, 0.88);
  --accent-blue: #3b82f6;
  --accent-blue-glow: rgba(59, 130, 246, 0.5);
  --accent-cyan: #3b82f6;
  --accent-red: #ff0055;
  --accent-yellow: #ffe600;
  --accent-green: #00ffaa;
  --accent-purple: #a855f7;
  --text-main: #f0f6fc;
  --text-muted: #58687a;
  --border-neon: rgba(59, 130, 246, 0.35);
  --font-mono: 'JetBrains Mono', monospace;
  --glow-cyan: drop-shadow(0 0 10px rgba(59, 130, 246, 0.7));
  --glow-red: drop-shadow(0 0 10px rgba(255, 0, 85, 0.7));
}

/* Modal Cyberpunk Styling */
.k-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 18, 0.88);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.k-modal-card {
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  background: rgba(5, 10, 22, 0.96);
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.9), 0 0 15px rgba(59, 130, 246, 0.25);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  padding: 24px;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.k-modal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff0055, #3b82f6, #00ffaa);
}

.ip-clickable-badge {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-blue, #3b82f6);
  padding: 2px 8px;
  font-weight: 800;
  font-size: 11px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ip-clickable-badge:hover {
  background: rgba(59, 130, 246, 0.28);
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
  color: #fff;
}

.leaflet-container {
  background: #020612 !important;
  font-family: var(--font-mono, monospace) !important;
}
.leaflet-popup-content-wrapper {
  background: rgba(3, 8, 20, 0.96) !important;
  border: 1px solid rgba(0, 240, 255, 0.4) !important;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25) !important;
  border-radius: 4px !important;
  color: #f0f6fc !important;
  padding: 2px !important;
}
.leaflet-popup-tip {
  background: rgba(3, 8, 20, 0.96) !important;
  border: 1px solid rgba(0, 240, 255, 0.4) !important;
}
.leaflet-popup-close-button {
  color: #00f0ff !important;
  padding: 4px !important;
}
.leaflet-control-container .leaflet-routing-container,
.leaflet-control-attribution {
  background: rgba(2, 6, 18, 0.85) !important;
  color: #64748b !important;
  font-size: 9px !important;
  border-radius: 3px !important;
  border: 1px solid rgba(0, 240, 255, 0.2) !important;
}
.leaflet-control-attribution a {
  color: #00f0ff !important;
  text-decoration: none !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-mono);
}

/* Cyber Ambient Lighting & Atmospheric Vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255, 0, 85, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.04) 0%, transparent 60%),
    radial-gradient(circle at center, transparent 40%, rgba(2, 3, 6, 0.85) 100%);
  pointer-events: none;
  z-index: 1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0px, rgba(0, 0, 0, 0.2) 1px, transparent 1px, transparent 2px);
  pointer-events: none;
  z-index: 2;
}

/* Cyber Loading Screen */
.app-loading-screen {
  position: fixed;
  inset: 0;
  background: #030408;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.app-loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.k-loading-logo {
  margin-bottom: 20px;
}

.k-loading-logo img {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.8));
  animation: logo-glow-pulse 2s infinite ease-in-out;
}

@keyframes logo-glow-pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.8)); }
  50% { transform: scale(1.06); filter: drop-shadow(0 0 25px rgba(96, 165, 250, 1)); }
}

.loading-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--accent-blue);
  margin-bottom: 6px;
  text-shadow: 0 0 15px rgba(59, 130, 246, 0.7);
  animation: hud-flicker 3s infinite;
}

.loading-sub {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #64748b;
  margin-bottom: 24px;
}

.loading-bar {
  width: 380px;
  height: 6px;
  background: rgba(59, 130, 246, 0.05);
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--border-neon);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.25), inset 0 0 8px rgba(59, 130, 246, 0.1);
  position: relative;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.loading-bar .progress {
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-blue), #60a5fa);
  box-shadow: 0 0 20px var(--accent-blue), 0 0 8px #60a5fa;
  animation: loading-pulse 1.2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes loading-pulse {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}

@keyframes hud-flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.4; }
  94% { opacity: 0.9; }
  96% { opacity: 0.2; }
  97% { opacity: 1; }
}

/* Cloud Container & Cyber 2077 HUD Layout */
.cloud-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}

.cloud-header {
  height: 68px;
  background: linear-gradient(180deg, rgba(20, 26, 38, 0.98) 0%, rgba(8, 12, 20, 0.99) 100%);
  border-bottom: 1px solid rgba(0, 240, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.8), 0 8px 30px rgba(0, 0, 0, 0.95);
  position: relative;
  z-index: 1000;
}

.cloud-header::before {
  content: "•";
  position: absolute;
  top: 4px;
  left: 12px;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 1px #000;
  pointer-events: none;
}

.cloud-header::after {
  content: "•";
  position: absolute;
  top: 4px;
  right: 12px;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 1px #000;
  pointer-events: none;
}

/* Header VM Selector Integration (No Borders) */
.header-vm-select-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  padding: 4px 8px;
  border: none;
  box-shadow: none;
}

.header-vm-select-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--accent-blue);
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
}

.header-vm-select-label::before {
  content: "◈";
  color: var(--accent-red);
  filter: drop-shadow(0 0 6px #ff0055);
}

/* Custom Cyberpunk Dropdown Trigger & Panel */
.k-dropdown {
  position: relative;
  display: inline-block;
}

.k-dropdown-trigger {
  background: transparent;
  border: none;
  color: #fff;
  padding: 6px 24px 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
  user-select: none;
  position: relative;
}

.k-dropdown-trigger::after {
  content: "▾";
  color: #3b82f6;
  font-size: 10px;
  position: absolute;
  right: 8px;
  transition: transform 0.2s ease;
}

.k-dropdown.open .k-dropdown-trigger::after {
  transform: rotate(180deg);
  color: #60a5fa;
}

.k-dropdown-trigger:hover {
  color: #60a5fa;
  text-shadow: 0 0 12px #3b82f6;
}

.k-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: rgba(3, 7, 18, 0.96);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-top: 2px solid #3b82f6;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(59, 130, 246, 0.15);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: none;
  flex-direction: column;
  padding: 4px 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.k-dropdown.open .k-dropdown-menu {
  display: flex;
  animation: hud-dropdown-appear 0.15s ease-out;
}

@keyframes hud-dropdown-appear {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 📜 BOOK TYPEWRITER & FADE-IN ANIMATIONS FOR MONITOR LOG STREAM */
@keyframes logCardFadeIn {
  0% {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes typewritingText {
  0% {
    max-width: 0;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    max-width: 100%;
    opacity: 1;
  }
}

.mon-card-stream-item {
  opacity: 0;
  animation: logCardFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.book-typewriter-line {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  animation: typewritingText 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.k-dropdown-item {
  padding: 9px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 2px solid transparent;
}

.k-dropdown-item:hover {
  color: #fff;
  background: rgba(59, 130, 246, 0.12);
  border-left-color: #3b82f6;
  padding-left: 20px;
}

.k-dropdown-item.selected {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.18);
  border-left-color: #60a5fa;
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.5);
}

.k-dropdown-item.selected::after {
  content: "◈";
  color: #3b82f6;
  font-size: 9px;
}

/* Header Matrix Squares Matrix Container */
.header-matrix-squares {
  display: flex;
  align-items: center;
  gap: 6px;
}

.matrix-square-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(20, 26, 36, 0.95) 0%, rgba(8, 12, 20, 0.98) 100%);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(0, 0, 0, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.8), 0 4px 10px rgba(0, 0, 0, 0.8);
  padding: 5px;
  width: 38px;
  height: 38px;
  min-width: 38px;
  box-sizing: border-box;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}

.ms-digits-2x2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.ms-digits-row {
  display: flex;
  gap: 3px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.matrix-square-chip:hover {
  border-color: rgba(0, 240, 255, 0.8);
  background: linear-gradient(145deg, rgba(28, 38, 54, 0.98) 0%, rgba(12, 18, 30, 0.99) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 16px rgba(0, 240, 255, 0.4);
  transform: translateY(-1px);
}

.matrix-square-chip.selected {
  border-color: #00f0ff;
  border-top-color: #ffffff;
  background: linear-gradient(145deg, rgba(14, 38, 62, 0.98) 0%, rgba(4, 18, 32, 0.99) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 20px rgba(0, 240, 255, 0.6), inset 0 0 12px rgba(0, 240, 255, 0.25);
}

/* Gold steel styling specifically for AE (Node 0;0;0) */
.matrix-square-chip.is-ae {
  border-color: rgba(255, 215, 0, 0.5);
  border-top-color: rgba(255, 255, 255, 0.35);
}

.matrix-square-chip.is-ae:hover {
  border-color: #ffd700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 16px rgba(255, 215, 0, 0.5);
}

.matrix-square-chip.is-ae.selected {
  border-color: #ffd700;
  border-top-color: #ffffff;
  background: linear-gradient(145deg, rgba(42, 34, 10, 0.98) 0%, rgba(18, 14, 2, 0.99) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 22px rgba(255, 215, 0, 0.7), inset 0 0 12px rgba(255, 215, 0, 0.3);
}

.ms-coord {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #64748b;
  margin-bottom: 2px;
}

.matrix-square-chip:hover .ms-coord,
.matrix-square-chip.selected .ms-coord {
  color: #00f0ff;
}

.matrix-square-chip.is-ae .ms-coord {
  color: #ffd700;
  text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);
}

.ms-digits {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
}

/* Selected VM Metadata Engraved Steel Display (Directly on header chassis, no button box) */
.selected-vm-meta-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0 4px;
  height: 38px;
  box-sizing: border-box;
  font-family: var(--font-mono);
  user-select: none;
  white-space: nowrap;
  margin-left: 6px;
}

.selected-vm-meta-chip .vm-meta-coord {
  display: inline-block;
  min-width: 65px;
  font-size: 12px;
  font-weight: 900;
  color: var(--accent-cyan);
  letter-spacing: 1.5px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.8), 0 1px 2px #000;
}

.selected-vm-meta-chip .vm-meta-apps {
  display: inline-block;
  min-width: 140px;
  font-size: 11px;
  font-weight: 900;
  color: #cbd5e1;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 1px 2px #000, 0 0 6px rgba(255, 255, 255, 0.3);
}

.brand-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 1px 2px #000, 0 0 8px rgba(0, 240, 255, 0.4);
}

.status-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent-green);
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 255, 170, 0.5);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  opacity: 0.9;
  white-space: nowrap;
}

/* Header Right Zone Container */
.header-right-zone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

/* Header Cyberpunk Matrix Summary Widget */
.header-matrix-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.header-matrix-title {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #475569;
}

.header-matrix-chips {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header-matrix-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(5, 10, 20, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 2px 6px;
  clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 0 100%);
  transition: all 0.2s ease;
}

.header-matrix-chip:hover {
  border-color: #60a5fa;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

.hm-node {
  font-size: 8px;
  font-weight: 900;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.hm-digits {
  font-size: 10px;
  font-weight: 900;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  color: #64748b;
}

.status-badge::before {
  content: "::";
  color: var(--text-muted);
  font-weight: 900;
  letter-spacing: 1px;
}

.cloud-body {
  flex: 1;
  display: flex;
  height: calc(100vh - 68px);
  width: 100vw;
  overflow: hidden;
}

/* 🛸 SOVEREIGN MONITORING DASHBOARD STYLES */

.mon-dashboard {
  display: flex;
  width: 100%;
  height: 100%;
  color: #f0f6fc;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  overflow: hidden;
}

/* Left Sidebar Menu Bar (Brushed Steel Chassis) */
.mon-sidebar {
  width: 64px;
  min-width: 64px;
  height: 100%;
  max-height: 100%;
  background: linear-gradient(90deg, rgba(22, 28, 40, 0.98) 0%, rgba(10, 14, 22, 0.99) 100%);
  border-right: 1px solid rgba(0, 240, 255, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset -1px 0 0 rgba(0, 0, 0, 0.8), 8px 0 24px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  padding: 10px 0 0 0;
  gap: 4px;
  box-sizing: border-box;
  position: relative;
  z-index: 900;
  overflow: hidden;
}

.mon-sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 240, 255, 0.3) transparent;
}

.mon-sidebar-nav::-webkit-scrollbar {
  width: 3px;
}
.mon-sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}
.mon-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.4);
  border-radius: 2px;
}

.mon-sidebar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 2px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  border-left: 2px solid transparent;
  color: #4b5563;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  text-shadow: -1px -1px 1px rgba(0,0,0,0.9), 1px 1px 1px rgba(255,255,255,0.15);
}

.mon-sidebar-btn:hover {
  color: #00f0ff;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.12) 0%, rgba(10, 18, 30, 0.95) 100%);
  border-left-color: rgba(0, 240, 255, 0.7);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.6);
}

.mon-sidebar-switch-btn {
  margin-top: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 12px 2px;
  background: linear-gradient(180deg, rgba(16, 24, 36, 0.95) 0%, rgba(6, 10, 18, 0.99) 100%);
  border: none;
  border-top: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: #00f0ff;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  animation: neonCyanBreath 3.5s ease-in-out infinite;
}

.mon-sidebar-switch-btn:hover {
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.2) 0%, rgba(12, 22, 34, 0.98) 100%);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 14px rgba(0, 240, 255, 0.4);
}

.mon-sidebar-switch-btn .mon-icon-square {
  background: transparent;
  border: none;
  color: #00f0ff;
  filter: drop-shadow(0 0 4px rgba(0, 240, 255, 0.5));
}

.mon-sidebar-switch-btn:hover .mon-icon-square {
  color: #ffffff;
  filter: drop-shadow(0 0 8px #00f0ff) drop-shadow(0 0 14px rgba(0, 240, 255, 0.8));
}

.mon-sidebar-btn.active {
  color: #00f0ff;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.22) 0%, rgba(8, 16, 28, 0.98) 100%);
  border-left-color: #00f0ff;
  box-shadow: inset 0 0 12px rgba(0, 240, 255, 0.2);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.8);
  animation: neonCyanBreath 3.5s ease-in-out infinite;
}

/* Icon Box without borders, Cyberpunk 2077 clean glowing icons */
.mon-icon-square {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #475569;
}

.mon-sidebar-btn:hover .mon-icon-square {
  color: #60a5fa;
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.8));
}

.mon-sidebar-btn.active .mon-icon-square {
  color: #60a5fa;
  filter: drop-shadow(0 0 10px #3b82f6) drop-shadow(0 0 18px rgba(59, 130, 246, 0.6));
}

.mon-icon-square svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

/* Main Content Area */
.mon-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
  background: 
    radial-gradient(ellipse at top right, rgba(0, 240, 255, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(255, 0, 85, 0.02) 0%, transparent 60%);
}

/* Top Bar inside Content Area: Title & VM Selector */
.mon-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  background: rgba(10, 14, 22, 0.95);
}

.mon-view-title {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
  width: 100%;
}

/* 2077 Cyberpunk Interactive Zoom Wheel Dial (from JPI) */
.cyber-zoom-wheel-container {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  user-select: none;
}

.zoom-wheel-wrap {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 12px rgba(0, 240, 255, 0.4));
  transition: transform 0.1s ease;
}

.zoom-wheel-wrap:active {
  transform: scale(1.04);
}

.zoom-zone-sector {
  cursor: pointer;
  transition: opacity 0.15s ease, fill 0.15s ease;
}

.zoom-zone-sector:hover {
  opacity: 0.9;
  fill: rgba(0, 240, 255, 0.4) !important;
}

.zoom-center-btn {
  cursor: pointer;
  transition: opacity 0.15s ease, fill 0.15s ease;
}

.zoom-center-btn:hover {
  opacity: 0.85;
}

.zoom-wheel-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.mon-vm-select-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mon-vm-select-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #48546a;
}

.mon-vm-select {
  background: rgba(8, 14, 28, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #00f0ff;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  outline: none;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.1);
  transition: all 0.2s ease;
}

.mon-vm-select:hover, .mon-vm-select:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* 🛸 FLEET TOPOLOGY MATRIX SUMMARY WIDGET */
.fleet-matrix-summary {
  background: rgba(5, 10, 20, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 14px 18px;
  margin-bottom: 20px;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.7), inset 0 0 15px rgba(59, 130, 246, 0.03);
}

.fleet-matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #60a5fa;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.fleet-matrix-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.matrix-node-chip {
  background: rgba(8, 14, 28, 0.92);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 10px 14px;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.matrix-node-chip:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(12, 20, 40, 0.95);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.matrix-node-chip.selected {
  border-color: #60a5fa;
  background: rgba(15, 25, 50, 0.95);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.25);
}

.matrix-node-title {
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.matrix-node-coord {
  font-size: 9px;
  color: #3b82f6;
  font-weight: 800;
}

.matrix-digits-container {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(2, 5, 12, 0.9);
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
}

.matrix-digits-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 900;
}

.matrix-digit {
  padding: 1px 4px;
  border-radius: 2px;
}

/* 4 Digits Dizain Color Scale (CPU RAM / TRF DISK) */
.m-dig-low { color: #60a5fa; background: rgba(59, 130, 246, 0.1); } /* 0-1 */
.m-dig-mid { color: #00ffaa; background: rgba(0, 255, 170, 0.1); } /* 2-6 */
.m-dig-warn { color: #fb923c; background: rgba(251, 146, 60, 0.1); } /* 7-8 */
.m-dig-crit { color: #f87171; background: rgba(248, 113, 113, 0.2); } /* 9 / X */

.matrix-digit-label {
  font-size: 7px;
  color: #475569;
  letter-spacing: 1px;
  font-weight: 800;
}
.mon-view-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
}

.mon-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1100px) {
  .mon-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mon-sidebar {
    width: 48px;
    min-width: 48px;
    padding: 6px 0;
    gap: 2px;
  }

  .mon-sidebar-btn {
    padding: 6px 1px;
    font-size: 7px;
    gap: 2px;
    letter-spacing: 0px;
  }

  .mon-icon-square {
    width: 18px;
    height: 18px;
    min-width: 18px;
  }

  .mon-icon-square svg {
    width: 18px;
    height: 18px;
  }
}

.mon-card {
  background: linear-gradient(145deg, rgba(22, 28, 38, 0.94) 0%, rgba(10, 14, 22, 0.97) 60%, rgba(4, 7, 12, 0.99) 100%);
  border-left: 1px solid rgba(0, 240, 255, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-right: none;
  border-bottom: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.8), 0 8px 24px rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 240, 255, 0.12);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: all 0.3s ease;
  flex: 1;
  height: 100%;
}

.mon-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: #ff0055;
  box-shadow: 0 0 10px #ff0055;
}

.mon-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background: #00f0ff;
  box-shadow: 0 0 10px #00f0ff;
}

.mon-card:hover {
  border-color: rgba(0, 240, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.9), 0 12px 36px rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 240, 255, 0.25);
}

.mon-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  padding: 8px 12px;
  background: rgba(10, 15, 24, 0.95);
  flex-shrink: 0;
}

.mon-card-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #00f0ff;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.mon-card-badge {
  font-size: 9px;
  padding: 3px 9px;
  background: linear-gradient(180deg, rgba(16, 26, 40, 0.85) 0%, rgba(6, 12, 20, 0.95) 100%);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #00f0ff;
  font-weight: 900;
  letter-spacing: 0.8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 6px rgba(0, 0, 0, 0.7);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.5);
}

/* Custom Cyberpunk Select Styling for Bans Toolbar */
.ban-select-input {
  background: rgba(3, 7, 18, 0.92);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 6px 28px 6px 10px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%233b82f6' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: all 0.2s ease;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
}

.ban-select-input:hover, .ban-select-input:focus {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
  color: #fff;
}

.ban-select-input option {
  background: #030712;
  color: #f0f6fc;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 8px;
}

.mon-stream-box {
  background: linear-gradient(180deg, rgba(8, 14, 22, 0.92) 0%, rgba(3, 6, 12, 0.98) 100%);
  border-left: 1px solid rgba(0, 240, 255, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-right: none;
  border-bottom: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.9), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  flex: 1;
  height: 100% !important;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 4px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.mon-stream-box::-webkit-scrollbar {
  width: 4px;
}
.mon-stream-box::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.3);
}

.mon-line-log {
  color: #f1f5f9;
  word-break: break-all;
  border-left: 2px solid #e2e8f0;
  padding-left: 8px;
  padding-top: 2px;
  padding-bottom: 2px;
  margin-bottom: 2px;
  font-size: 11px;
  line-height: 1.4;
}

.mon-line-log.level-critical {
  border-left-color: #8b5cf6; /* VIOLET FOR CRITICAL */
  color: #c084fc;
  background: rgba(139, 92, 246, 0.08);
}

.mon-line-log.level-error {
  border-left-color: #ef4444; /* RED FOR ERROR */
  color: #f87171;
  background: rgba(239, 68, 68, 0.08);
}

.mon-line-log.level-warning {
  border-left-color: #f97316; /* ORANGE FOR WARNING */
  color: #fb923c;
  background: rgba(249, 115, 22, 0.08);
}

.mon-line-log.level-info {
  border-left-color: #e2e8f0; /* WHITE FOR INFO */
  color: #f1f5f9;
}

.mon-line-log.level-debug {
  border-left-color: #3b82f6; /* BLUE FOR DEBUG */
  color: #60a5fa;
}

.mon-line-nup {
  color: #00ff66;
  word-break: break-all;
  border-left: 2px solid #00ff66;
  padding-left: 8px;
  font-weight: 600;
}

.mon-line-intent {
  color: #d8b4fe;
  word-break: break-all;
  border-left: 2px solid var(--accent-purple);
  padding: 8px 10px;
  background: rgba(168, 85, 247, 0.05);
  transition: all 0.2s ease;
}

.mon-line-intent:hover {
  background: rgba(168, 85, 247, 0.12);
  border-left-color: var(--accent-cyan);
}

.mon-line-time {
  color: #48546a;
  font-size: 9px;
  margin-right: 6px;
}

/* Per VM Detailed View Header */
.mon-vm-overview-card {
  background: rgba(8, 12, 22, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.mon-vm-title {
  font-size: 16px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 2px;
}

.mon-vm-meta {
  font-size: 11px;
  color: #00f0ff;
  display: flex;
  gap: 16px;
}

/* 🛸 NO-DATA 2077 STEEL TELEMETRY PLACEHOLDER & REFRESH TRIGGER */
.k-telemetry-nodata-box {
  width: 100%;
  height: 100%;
  min-height: 48px;
  background: linear-gradient(145deg, rgba(16, 22, 34, 0.6) 0%, rgba(6, 10, 16, 0.8) 100%);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
  padding: 4px;
  box-sizing: border-box;
}

.k-telemetry-nodata-box:hover {
  border-color: rgba(0, 240, 255, 0.6);
  background: linear-gradient(145deg, rgba(22, 32, 48, 0.8) 0%, rgba(10, 16, 26, 0.9) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 12px rgba(0, 240, 255, 0.25);
}

.mon-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .mon-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .cloud-header {
    height: 56px;
    padding: 0 12px;
    gap: 8px;
  }

  .brand-title {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .brand-title span {
    display: inline-block !important;
    font-size: 9px !important;
    letter-spacing: 1px !important;
    white-space: pre-line !important;
    line-height: 1.1 !important;
    max-width: 55px !important;
  }

  .header-vm-select-wrapper {
    max-width: none;
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
  }

  .selected-vm-meta-chip {
    height: 32px;
    padding: 2px 8px;
    gap: 5px;
    margin-left: 2px;
    flex-shrink: 0;
  }

  .selected-vm-meta-chip .vm-meta-coord {
    font-size: 10px;
  }

  .selected-vm-meta-chip .vm-meta-apps {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .header-vm-select-wrapper::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
  }

  .header-matrix-squares {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .status-badge {
    font-size: 8px;
    letter-spacing: 1px;
    padding: 4px 6px !important;
  }

  /* Compact glowing dot indicator on mobile for AE Status (no text) */
  .status-badge .full-text {
    display: none !important;
  }

  .status-badge .mini-text {
    display: none !important;
  }

  .status-badge .ae-dot-indicator {
    display: inline-block !important;
  }

  /* Mobile Streams & Logs Layout Padding */
  .mon-main-content {
    padding: 12px 10px;
  }

  .mon-card {
    padding: 10px;
  }

  .mon-stream-box {
    height: 320px;
    padding: 8px;
    font-size: 10px;
  }

  .mon-line-log, .mon-line-nup, .mon-line-intent {
    padding-left: 4px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .mon-metrics-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
