* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #0f172a; color: #e2e8f0; }

.header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}
.header h1 { font-size: 18px; font-weight: 600; }

.controls {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto;
}
.controls input {
  padding: 6px 12px;
  background: #0f172a;
  border: 1px solid #475569;
  border-radius: 6px;
  color: #e2e8f0;
  font-size: 14px;
  width: 180px;
}
.controls button {
  padding: 6px 16px;
  background: #3b82f6;
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
}
.controls button:hover { background: #2563eb; }
.controls button.disconnect { background: #ef4444; }
.controls button.disconnect:hover { background: #dc2626; }

.status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}
.status.connected { background: #166534; color: #86efac; }
.status.disconnected { background: #7f1d1d; color: #fca5a5; }

.main {
  display: flex;
  height: calc(100vh - 53px);
}

#map { flex: 1; }

.sidebar {
  width: 320px;
  background: #1e293b;
  border-left: 1px solid #334155;
  display: flex;
  flex-direction: column;
}
.sidebar h2 {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #334155;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.log {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.log-entry {
  padding: 8px 10px;
  margin-bottom: 4px;
  background: #0f172a;
  border-radius: 6px;
  font-size: 12px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  line-height: 1.5;
}
.log-entry .time { color: #64748b; }
.log-entry .coords { color: #38bdf8; }
.log-entry .speed { color: #a78bfa; }
.log-entry .user { color: #34d399; }

.stats {
  padding: 12px 16px;
  border-top: 1px solid #334155;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 12px;
}
.stat-label { color: #64748b; }
.stat-value { color: #e2e8f0; font-weight: 600; }
