:root {
  --bg: #0b0f14;
  --panel: #0f1620;
  --text: #e7eef7;
  --muted: #9bb0c7;
  --border: #1d2733;
  --border2: #253244;
  --accent: #1f7a3a;
  --accentHover: #226f39;
}

/* Reset / safety */
* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  font-family: system-ui, -apple-system, Arial;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

h1 {
  margin: 0 0 10px 0;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

button {
  background: var(--accent);
  border: 0;
  color: white;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

button:hover { background: var(--accentHover); }
button:active { transform: translateY(1px); }
button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

input {
  width: 84px;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid var(--border2);
  background: var(--panel);
  color: var(--text);
}

input:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.panel {
  padding: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.hint {
  color: var(--muted);
  margin-top: 6px;
}

#status {
  color: var(--muted);
  font-size: 12px;
}

/* Table */
.tableWrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  margin-top: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th, td {
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
  text-align: left;
  font-size: 13px;
  white-space: nowrap;
}

th {
  color: #bcd0e6;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Small screens */
@media (max-width: 720px) {
  header { padding: 12px; }
  .panel { padding: 12px; }
  input { width: 96px; }
}
/* --- Leaflet aircraft icon + callsign labels --- */
.plane-divicon { background: transparent !important; border: 0 !important; }

.plane-icon{
  width: 20px;
  height: 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  line-height:1;
  color:#ffd400; /* yellow */
  text-shadow: 0 0 6px rgba(255,212,0,.6);
  transform: rotate(-20deg);
}

.plane-icon.plane-priority{
  color:#00e5ff; /* cyan */
  text-shadow: 0 0 8px rgba(0,229,255,.75);
}

.leaflet-tooltip.callsign-label{
  background: rgba(10,14,18,.75);
  border: 1px solid rgba(255,255,255,.18);
  color:#fff;
  font-weight:700;
  font-size:12px;
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}

.leaflet-tooltip.callsign-label.callsign-priority{
  border-color: rgba(0,229,255,.55);
}

/* --- Dark interval input (scan interval box) --- */
#intervalInput{
  background:#0f141b;
  color:#ffffff;
  border:1px solid rgba(255,255,255,.22);
  border-radius:8px;
  padding:8px 10px;
  outline:none;
}

#intervalInput:focus{
  border-color: rgba(0,229,255,.75);
  box-shadow: 0 0 0 3px rgba(0,229,255,.18);
}