@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@300;400;500;600;700&family=Fira+Code:wght@300;400;500;600;700&family=Exo+2:wght@300;400;500;600;700&display=swap');

:root {
  --cyan: #00d4ff;
  --cyan-dark: #0099cc;
  --cyan-darker: #006699;
  --yellow: #ffd700;
  --yellow-dark: #ffb800;
  --red: #cc0000;
  --red-dark: #8b0000;
  --green: #00cc66;
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-panel: #1a1a2e;
  --text-primary: #e0e0e0;
  --text-bright: #ffffff;
  --text-dim: #666666;
}

* { box-sizing: border-box; }

body {
  background: linear-gradient(135deg, #0a0a0a 0%, #0d0d1a 50%, #0a0a0a 100%);
  overflow-x: hidden;
  font-family: 'Exo 2', sans-serif;
  color: var(--text-primary);
}

/* Glow Effects */
.glow-cyan { text-shadow: 0 0 7px #00d4ff, 0 0 15px #00d4ff, 0 0 25px #00d4ff; }
.glow-yellow { text-shadow: 0 0 7px #ffd700, 0 0 15px #ffd700; }
.glow-red { text-shadow: 0 0 7px #cc0000, 0 0 15px #cc0000; }
.glow-green { text-shadow: 0 0 7px #00cc66, 0 0 10px #00cc66; }

.box-glow-cyan { box-shadow: 0 0 10px rgba(0,212,255,0.3), inset 0 0 10px rgba(0,212,255,0.05); }
.box-glow-yellow { box-shadow: 0 0 10px rgba(255,215,0,0.4), inset 0 0 10px rgba(255,215,0,0.05); }
.box-glow-red { box-shadow: 0 0 15px rgba(204,0,0,0.5), inset 0 0 15px rgba(204,0,0,0.1); }
.box-glow-green { box-shadow: 0 0 8px rgba(0,204,102,0.3); }

/* Scan Line */
@keyframes scanDown {
  0% { transform: translateY(-100%); opacity: 0.8; }
  100% { transform: translateY(100vh); opacity: 0; }
}
.scan-line-anim {
  position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, #00d4ff, transparent);
  animation: scanDown 8s linear infinite;
  pointer-events: none; z-index: 50;
}

/* CRT Lines */
@keyframes crtLines {
  0% { background-position: 0 0; }
  100% { background-position: 0 4px; }
}
.crt-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.15) 2px, rgba(0,0,0,0.15) 4px);
  animation: crtLines 0.5s linear infinite;
  pointer-events: none; z-index: 2;
}

/* Border glow animation */
@keyframes borderGlow {
  0%, 100% { border-color: rgba(0,212,255,0.4); }
  50% { border-color: rgba(0,153,204,0.7); }
}
.border-glow { animation: borderGlow 3s ease-in-out infinite; }

/* Pulse for bat logo */
@keyframes batPulse {
  0%, 100% { filter: drop-shadow(0 0 8px #ffd700) drop-shadow(0 0 20px rgba(255,215,0,0.4)); }
  50% { filter: drop-shadow(0 0 15px #ffd700) drop-shadow(0 0 35px rgba(255,215,0,0.6)); }
}
.bat-pulse { animation: batPulse 3s ease-in-out infinite; }

/* Alert pulse */
@keyframes alertPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.alert-pulse { animation: alertPulse 1.5s ease-in-out infinite; }

/* Data ticker */
@keyframes tickerScroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.ticker-scroll { animation: tickerScroll 30s linear infinite; }

/* Matrix rain background */
@keyframes matrixRain {
  0% { transform: translateY(-50px); }
  100% { transform: translateY(0); }
}
body::before {
  content: '';
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,212,255,0.03) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5; z-index: -1;
  animation: matrixRain 15s linear infinite;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #00d4ff44; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #00d4ff88; }

/* Panel hover 3D effect */
.panel-3d { transition: transform 0.3s ease, box-shadow 0.3s ease; perspective: 1000px; }
.panel-3d:hover { transform: translateY(-2px); box-shadow: 0 0 20px rgba(0,212,255,0.2); }

/* Terminal cursor */
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
.cursor-blink { animation: blink 1s step-end infinite; }

/* Gauge sweep */
@keyframes gaugeSweep {
  0% { stroke-dashoffset: 282.7; }
}
.gauge-animate { animation: gaugeSweep 1.5s ease-out forwards; }

/* Button shine */
button { position: relative; overflow: hidden; }
button::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.15), transparent);
  transition: left 0.5s;
}
button:hover::before { left: 100%; }

/* Status dot pulse */
@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 4px currentColor; }
  50% { box-shadow: 0 0 12px currentColor, 0 0 20px currentColor; }
}
.status-pulse { animation: statusPulse 2s ease-in-out infinite; }

/* Emergency mode */
.emergency-mode { background: linear-gradient(135deg, #1a0000 0%, #0a0000 50%, #1a0000 100%) !important; }
.emergency-border { border-color: #cc0000 !important; }

/* Progress bar animation */
@keyframes progressShine {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.progress-shine {
  background: linear-gradient(90deg, #00d4ff, #0099cc, #00d4ff, #0099cc);
  background-size: 200% 100%;
  animation: progressShine 2s linear infinite;
}

/* Modal transitions */
.modal-enter { animation: modalIn 0.3s ease-out; }
@keyframes modalIn {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

/* Sidebar active indicator */
.sidebar-active { position: relative; }
.sidebar-active::after {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 60%; background: #00d4ff;
  box-shadow: 0 0 10px #00d4ff;
}

/* Input glow focus */
input:focus, textarea:focus {
  box-shadow: 0 0 0 1px #00d4ff, 0 0 15px rgba(0,212,255,0.2);
  outline: none;
}

/* Ensure footer is visible */
.footer-link { color: #666; text-decoration: none; font-size: 11px; }
.footer-link:hover { color: #00d4ff; }