:root {
  --bg: #020b05;
  --radar-bg: #001100;
  --primary: #00ff33; /* Radar Green */
  --danger: #ff3300;  /* Hazard Red */
  --grid: rgba(0, 255, 51, 0.2);
  --font: 'Share Tech Mono', monospace;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--primary);
  font-family: var(--font);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.radar-container {
  display: flex;
  width: 90%;
  max-width: 1200px;
  height: 80vh;
  border: 2px solid var(--primary);
  background: var(--radar-bg);
  box-shadow: 0 0 30px rgba(0, 255, 51, 0.1);
}

/* Radar Visuals */
.radar-screen {
  position: relative;
  flex: 2;
  border-right: 2px solid var(--primary);
  overflow: hidden;
  background: 
    radial-gradient(circle, transparent 0%, transparent 69%, var(--grid) 70%, transparent 71%),
    radial-gradient(circle, transparent 0%, transparent 49%, var(--grid) 50%, transparent 51%),
    radial-gradient(circle, transparent 0%, transparent 29%, var(--grid) 30%, transparent 31%),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(0deg, var(--grid) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 50px 50px, 50px 50px;
  background-position: center;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.scan-line {
  position: absolute;
  top: 50%; left: 50%;
  width: 50%; height: 2px;
  background: var(--primary);
  transform-origin: 0 0;
  animation: scan 4s linear infinite;
  box-shadow: 0 0 15px var(--primary);
  opacity: 0.8;
  pointer-events: none;
}

@keyframes scan {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Data Panel */
.data-panel {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(0, 20, 0, 0.8);
}

header h1 { margin: 0; font-size: 2rem; letter-spacing: 2px; }
.accent { color: #fff; }
.subtitle { font-size: 0.8rem; opacity: 0.7; border-bottom: 1px solid var(--primary); padding-bottom: 10px; }

.status-box {
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Table */
.list-container {
  flex: 1;
  overflow-y: auto;
  border: 1px solid var(--primary);
  font-size: 0.8rem;
}

table { width: 100%; border-collapse: collapse; }
th { background: rgba(0, 255, 51, 0.2); padding: 5px; text-align: left; position: sticky; top: 0; }
td { padding: 5px; border-bottom: 1px solid rgba(0, 255, 51, 0.1); }
tr:hover { background: rgba(0, 255, 51, 0.1); cursor: crosshair; }

.danger-row { color: var(--danger); font-weight: bold; }

/* Controls */
button {
  width: 100%;
  padding: 15px;
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-family: var(--font);
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.2s;
  font-weight: bold;
}
button:hover { background: var(--primary); color: #000; box-shadow: 0 0 20px var(--primary); }

/* Tooltip */
#tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid var(--primary);
  padding: 10px;
  pointer-events: none;
  color: #fff;
  font-size: 0.9rem;
  z-index: 100;
}