/* Vectronis AI - Design System: Quantum-Photonic Spectral Telemetry HUD */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@300;400;500;600;700&family=Syne:wght@600;700;800&display=swap');

:root {
  --bg-deep: #02040A;
  --bg-space: #060B18;
  --bg-surface: #0B132B;
  --bg-card: rgba(11, 19, 43, 0.78);
  --bg-card-hover: rgba(16, 28, 62, 0.9);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hud: rgba(139, 92, 246, 0.35);
  --border-cyan: rgba(6, 182, 212, 0.35);
  --border-emerald: rgba(16, 185, 129, 0.35);

  --accent-violet: #8B5CF6;
  --accent-indigo: #6366F1;
  --accent-cyan: #06B6D4;
  --accent-emerald: #10B981;
  --accent-amber: #F59E0B;
  --accent-neon: #38BDF8;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-deep);
  color: #E2E8F0;
  overflow-x: hidden;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

.font-display {
  font-family: 'Syne', 'Plus Jakarta Sans', sans-serif;
}

/* Background Grids & Ambient Holographic Illumination */
.bg-orbital-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(99, 102, 241, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
}

.bg-dot-grid {
  background-size: 32px 32px;
  background-image: radial-gradient(rgba(6, 182, 212, 0.16) 1.2px, transparent 1.2px);
}

.bg-radial-quantum {
  background: radial-gradient(circle at 50% 8%, rgba(99, 102, 241, 0.18) 0%, rgba(6, 182, 212, 0.12) 35%, rgba(2, 4, 10, 0) 72%);
}

.bg-radial-amber {
  background: radial-gradient(circle at 80% 90%, rgba(245, 158, 11, 0.1) 0%, rgba(2, 4, 10, 0) 60%);
}

/* Glass Panels with Multi-Spectrum Glow */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.15);
}

.glass-panel-glow {
  background: rgba(11, 19, 43, 0.88);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(139, 92, 246, 0.45);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-panel-cyan {
  background: rgba(8, 18, 38, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.12);
}

/* Interactive Buttons */
.btn-aurora {
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #06B6D4 100%);
  color: #FFFFFF;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.35);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-aurora::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(30deg);
  transition: 0.5s all;
  opacity: 0;
}

.btn-aurora:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.5);
}

.btn-aurora:hover::after {
  opacity: 1;
  transform: rotate(30deg) translate(20%, 20%);
}

.btn-outline-hud {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #C4B5FD;
  transition: all 0.25s ease;
}

.btn-outline-hud:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: #A78BFA;
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
}

.btn-outline-cyan {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #67E8F9;
  transition: all 0.25s ease;
}

.btn-outline-cyan:hover {
  background: rgba(6, 182, 212, 0.12);
  border-color: #22D3EE;
  color: #FFFFFF;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

/* Telemetry Status Badges */
.telemetry-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #C4B5FD;
}

.telemetry-tag-cyan {
  background: rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.35);
  color: #67E8F9;
}

.telemetry-tag-emerald {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6EE7B7;
}

.telemetry-tag-amber {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #FCD34D;
}

/* Pulse Beacons */
.beacon-pulse {
  animation: beaconPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.beacon-pulse-violet {
  box-shadow: 0 0 8px #8B5CF6;
  animation: beaconPulseViolet 2.2s infinite;
}

.beacon-pulse-cyan {
  box-shadow: 0 0 8px #06B6D4;
  animation: beaconPulseCyan 2.2s infinite;
}

@keyframes beaconPing {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

@keyframes beaconPulseViolet {
  0%, 100% { box-shadow: 0 0 4px #8B5CF6; }
  50% { box-shadow: 0 0 14px #A78BFA, 0 0 20px rgba(139, 92, 246, 0.4); }
}

@keyframes beaconPulseCyan {
  0%, 100% { box-shadow: 0 0 4px #06B6D4; }
  50% { box-shadow: 0 0 14px #22D3EE, 0 0 20px rgba(6, 182, 212, 0.4); }
}

/* Custom Range Slider for 1024-Band Scanner */
.spectral-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: linear-gradient(to right, 
    #A855F7 0%, /* UV */
    #3B82F6 18%, /* Blue Visible */
    #10B981 32%, /* Green Visible */
    #EAB308 45%, /* Red Visible */
    #EF4444 60%, /* NIR */
    #EC4899 75%, /* SWIR */
    #8B5CF6 90%, /* MWIR/LWIR */
    #06B6D4 100% /* Terahertz */
  );
  outline: none;
  cursor: pointer;
}

.spectral-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #6366F1;
  box-shadow: 0 0 12px #22D3EE;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.spectral-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.spectral-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #6366F1;
  box-shadow: 0 0 12px #22D3EE;
  cursor: pointer;
}

/* Hologram Scanning Line Effect */
.scanline-overlay {
  position: relative;
  overflow: hidden;
}

.scanline-overlay::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.04), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.04));
  z-index: 2;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

.laser-scan {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, #22D3EE, #8B5CF6, transparent);
  box-shadow: 0 0 12px #22D3EE;
  animation: laserScanDown 3.5s linear infinite;
  pointer-events: none;
}

@keyframes laserScanDown {
  0% { top: 0%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Toast Notifications */
#toastContainer {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 400px;
  padding: 0.85rem 1.15rem;
  background: rgba(11, 19, 43, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.5);
  border-radius: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #F8FAFC;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(139, 92, 246, 0.25);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Code Mirror / Terminal Display */
.code-window {
  background: #040817;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
}

.code-header {
  background: #081026;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #02040A;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}
