/* CirixSpace Unified RPO Styles - Space Gray, White & Black */
:root {
  color-scheme: dark;
}

.glass-panel {
  background: rgba(6, 15, 28, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.hud-glow-cyan { text-shadow: 0 0 8px rgba(56, 189, 248, 0.6); }
.hud-glow-emerald { text-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }

body {
  background-color: #09090b; /* pure dark zinc */
  color: #d4d4d8;
  overflow-x: hidden;
}

body.fullscreen-cockpit {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #030712;
  position: relative;
}

body.fullscreen-cockpit #viewport3d {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background: #040814;
  overflow: hidden;
}

#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* 3D Viewport Grab */
#viewport3d {
  cursor: grab;
}
#viewport3d:active {
  cursor: grabbing;
}

/* Result Headings */
.result-heading {
  margin-bottom: 12px;
}
.result-heading h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #ffffff;
}
.result-heading p {
  font-size: 0.85rem;
  color: #a1a1aa;
}

/* Fragment Cards (Space Gray / Black glassmorphism) */
.fragment {
  background: rgba(24, 24, 27, 0.9);
  border: 1px solid #3f3f46;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease;
}
.fragment:hover {
  border-color: #71717a;
}

.fragment-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.fragment-title h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: #fafafa;
  margin: 0;
}

/* Badges (Space Gray & White) */
.badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  text-transform: uppercase;
}
.badge.supported {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.badge.partial {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.region {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #a1a1aa;
  background: rgba(9, 9, 11, 0.7);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #27272a;
  margin: 0.5rem 0;
  word-break: break-word;
}

.evidence {
  font-size: 0.8rem;
  color: #a1a1aa;
  margin-bottom: 1rem;
}

.action {
  border-top: 1px solid #27272a;
  margin-top: 1rem;
  padding-top: 1rem;
}
.action strong {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #ffffff;
  margin-bottom: 0.35rem;
}
.action p {
  color: #e4e4e7;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0.35rem 0;
}
.action small {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #71717a;
  margin-top: 0.35rem;
}

.gap {
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: 1rem;
  padding: 1.5rem;
}
.gap strong {
  font-family: 'Space Grotesk', sans-serif;
  color: #fb7185;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.5rem;
}
.gap p {
  color: #fda4af;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

.next-step {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #a1a1aa;
  padding: 0.75rem 1rem;
  background: rgba(24, 24, 27, 0.7);
  border: 1px solid #27272a;
  border-radius: 0.75rem;
}

.download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: #09090b;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}
.download:hover {
  background: #e4e4e7;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #52525b;
}

/* Flight Playback Timeline Slider Styling */
input[type=range]#flightTimelineSlider {
  -webkit-appearance: none;
  background: rgba(39, 39, 42, 0.8);
  border-radius: 9999px;
  outline: none;
}
input[type=range]#flightTimelineSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #00f0ff;
  cursor: pointer;
  box-shadow: 0 0 10px #00f0ff;
  transition: transform 0.15s ease;
}
input[type=range]#flightTimelineSlider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

/* Tactical HUD Glassmorphism & Radar */
#tacticalHudOverlay canvas {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

#pcaCompassCanvas,
#heatmapCanvas {
  width: 112px !important;
  height: 112px !important;
  min-width: 112px !important;
  max-width: 112px !important;
  min-height: 112px !important;
  max-height: 112px !important;
  display: block !important;
  flex-shrink: 0 !important;
}

#tacticalWidgetsCard {
  flex-shrink: 0 !important;
  max-width: 280px !important;
}

#chaserTelemetryCard {
  width: 100% !important;
  max-width: 100% !important;
}

