/* ═══════════════════════════════════════════════════════
   CVC Dashboard — Hive Singularity UI (God-Level Swarm)
   ═══════════════════════════════════════════════════════ */

#tab-swarm {
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background-color: #03030b;
  font-family: 'Courier New', Courier, monospace;
}

#3d-graph {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Sci-Fi Overlay Grid */
.swarm-ui-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  padding: 20px;
  box-sizing: border-box;
  background: radial-gradient(circle at center, transparent 50%, rgba(0, 10, 30, 0.6) 100%);
}

/* Glassmorphism Panels */
.cyber-panel {
  background: rgba(4, 9, 20, 0.7);
  border: 1px solid rgba(0, 255, 204, 0.3);
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.1), inset 0 0 20px rgba(0, 255, 204, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 4px;
  padding: 15px;
  color: #00ffcc;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
}

.panel-title {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(0, 255, 204, 0.3);
  padding-bottom: 5px;
  text-shadow: 0 0 5px #00ffcc;
  display: flex;
  justify-content: space-between;
}

.panel-title .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #00ffcc;
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 204, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(0, 255, 204, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 204, 0); }
}

/* Left Panel: Stats & Agents */
.swarm-left {
  width: 300px;
  height: calc(100vh - 40px);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
}

.stat-value {
  color: #fff;
  font-weight: bold;
  text-shadow: 0 0 5px #fff;
}

.agent-list {
  flex: 1;
  overflow-y: auto;
  margin-top: 10px;
  padding-right: 5px;
}

.agent-list::-webkit-scrollbar { width: 4px; }
.agent-list::-webkit-scrollbar-thumb { background: rgba(0, 255, 204, 0.5); border-radius: 2px; }

.agent-item {
  display: flex;
  align-items: center;
  padding: 8px;
  margin-bottom: 5px;
  background: rgba(0, 255, 204, 0.05);
  border-left: 2px solid #00ffcc;
  font-size: 11px;
  transition: all 0.2s;
}
.agent-item:hover {
  background: rgba(0, 255, 204, 0.15);
  cursor: pointer;
}
.agent-icon {
  margin-right: 10px;
  color: #ff00ff;
  text-shadow: 0 0 5px #ff00ff;
}

/* Right Panel: Live Telemetry Feed */
.swarm-right {
  width: 350px;
  height: calc(100vh - 40px);
}

.terminal-feed {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.terminal-feed::-webkit-scrollbar { width: 4px; }
.terminal-feed::-webkit-scrollbar-thumb { background: rgba(0, 255, 204, 0.5); border-radius: 2px; }

.log-entry {
  font-size: 11px;
  margin-bottom: 6px;
  line-height: 1.4;
  word-break: break-all;
  animation: slide-in 0.3s ease-out forwards;
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.log-time { color: rgba(255, 255, 255, 0.5); margin-right: 5px; }
.log-agent { color: #fff; font-weight: bold; }
.log-action.read { color: #00ffff; text-shadow: 0 0 5px #00ffff; }
.log-action.write { color: #ffaa00; text-shadow: 0 0 5px #ffaa00; }

/* Scanline Effect */
.scanlines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
  background-size: 100% 4px;
  z-index: 11;
  pointer-events: none;
  opacity: 0.3;
}
