/* ==========================================================================
   ENGINE AI QUANTUM DECK - FUTURISTIC HUD STYLES
   ========================================================================== */

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

:root {
  --font-display: 'Orbitron', -apple-system, sans-serif;
  --font-tech: 'Rajdhani', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --bg-deep: #030712;
  --bg-panel: rgba(15, 23, 42, 0.72);
  --border-neon: rgba(0, 243, 255, 0.35);
  
  --neon-cyan: #00f3ff;
  --neon-cyan-glow: rgba(0, 243, 255, 0.45);
  --neon-magenta: #f43f5e;
  --neon-purple: #a855f7;
  --neon-emerald: #10b981;
  --neon-amber: #f59e0b;
  --neon-crimson: #ef4444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-deep);
  color: #e2e8f0;
  font-family: var(--font-tech);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  letter-spacing: 0.03em;
}

/* Background Cyber Grid & Vignette */
.cyber-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(to right, rgba(0, 243, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 243, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 90%);
}

.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

.glow-top-left {
  top: -200px;
  left: -200px;
  background: var(--neon-cyan);
}

.glow-bottom-right {
  bottom: -200px;
  right: -200px;
  background: var(--neon-purple);
}

/* Sci-Fi Glass Panels */
.hud-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--neon-cyan);
  border-left: 2px solid var(--neon-cyan);
}

.hud-panel::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  border-bottom: 2px solid var(--neon-cyan);
  border-right: 2px solid var(--neon-cyan);
}

.hud-panel:hover {
  border-color: rgba(0, 243, 255, 0.35);
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.12);
  transform: translateY(-2px);
}

/* Neon Text Glows */
.text-orbitron {
  font-family: var(--font-display);
}

.text-mono {
  font-family: var(--font-mono);
}

.glow-cyan {
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.65), 0 0 20px rgba(0, 243, 255, 0.3);
}

.glow-magenta {
  text-shadow: 0 0 10px rgba(244, 63, 94, 0.65), 0 0 20px rgba(244, 63, 94, 0.3);
}

.glow-amber {
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.65), 0 0 20px rgba(245, 158, 11, 0.3);
}

.glow-emerald {
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.65), 0 0 20px rgba(16, 185, 129, 0.3);
}

/* Radial SVG Rings */
.circular-chart {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 250px;
}

.circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 2.8;
}

.circle {
  fill: none;
  stroke-width: 3.2;
  stroke-linecap: round;
  transition: stroke-dasharray 0.8s ease, stroke 0.4s ease;
}

/* Sci-fi Scanning HUD Beam */
.scan-beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  animation: scanDown 4s ease-in-out infinite;
  opacity: 0.35;
  pointer-events: none;
}

@keyframes scanDown {
  0% { transform: translateY(0); opacity: 0; }
  50% { opacity: 0.5; }
  100% { transform: translateY(320px); opacity: 0; }
}

/* Pulse Animation for Status Indicators */
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; filter: drop-shadow(0 0 4px currentColor); }
  50% { transform: scale(1.15); opacity: 0.7; filter: drop-shadow(0 0 10px currentColor); }
}

.pulse-indicator {
  animation: pulseGlow 2.2s infinite ease-in-out;
}

/* Futuristic Cut Button */
.cyber-button {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(0, 243, 255, 0.08);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  padding: 8px 16px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.25s ease;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.cyber-button:hover {
  background: var(--neon-cyan);
  color: #030712;
  box-shadow: 0 0 20px var(--neon-cyan-glow);
}

.cyber-button:active {
  transform: scale(0.97);
}

.cyber-button.secondary {
  border-color: rgba(255, 255, 255, 0.2);
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
}

.cyber-button.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* Quick Action Burn Buttons */
.action-chip {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-chip:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  background: rgba(0, 243, 255, 0.1);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 3px;
  border: 1px solid rgba(0, 243, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan);
}