:root {
  --bg: #0f1115;
  --panel: #171a21;
  --text: #e7e9ee;
  --muted: #8a93a6;
  --accent: #4f8cff;
  --danger: #ff5a5a;
  --border: #242936;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: var(--bg); color: var(--text); }
body.center { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.card { background: var(--panel); border: 1px solid var(--border); padding: 24px; border-radius: 12px; width: min(360px, 92vw); display: flex; flex-direction: column; gap: 12px; }
.card h1 { margin: 0 0 4px; font-size: 20px; }
.muted { color: var(--muted); margin: 0; font-size: 13px; }
input, button { font: inherit; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: #0c0e13; color: var(--text); }
input:focus { outline: 2px solid var(--accent); }
button { cursor: pointer; background: #22283a; }
button:hover { background: #2b3348; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.err { color: var(--danger); min-height: 1em; font-size: 13px; }

.topbar { display: flex; align-items: center; gap: 16px; padding: 8px 14px; background: var(--panel); border-bottom: 1px solid var(--border); flex-wrap: wrap; min-height: 48px; }
.controls { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.controls label { display: flex; flex-direction: column; font-size: 11px; color: var(--muted); }
.controls input, .controls select, .controls button { padding: 6px 10px; font-size: 13px; }
#map { position: absolute; top: 80px; left: 0; right: 0; bottom: 0; }
@media (max-width: 780px) { #map { top: 200px; } }
.info { position: absolute; bottom: 12px; left: 12px; background: rgba(23,26,33,0.92); border: 1px solid var(--border); padding: 8px 12px; border-radius: 8px; font-size: 13px; max-width: 60vw; }
.leaflet-container { background: #0a0c10; }

select { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); background: #0c0e13; color: var(--text); }
.live-status { color: var(--muted); font-size: 12px; }
.live-status.on { color: #ff3b3b; font-weight: bold; }

button.live-on { background: #ff3b3b; border-color: #ff3b3b; color: #fff; }

/* Canli konum isaretcisi - pulse animasyonu */
.live-marker {
  width: 28px; height: 28px; border-radius: 50%;
  background: #ff3b3b; border: 4px solid #fff;
  box-shadow: 0 0 0 4px rgba(255,59,59,0.4), 0 2px 8px rgba(0,0,0,0.6);
  position: relative;
}
.live-marker::after {
  content: ""; position: absolute; inset: -10px;
  border-radius: 50%; border: 3px solid #ff3b3b;
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}
