:root {
  --primary: #007bff;
  --danger: red;
  --bg: #f2f2f2;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg);
}

header {
  background-color: var(--primary);
  color: white;
  padding: 10px 20px;
  text-align: center;
  font-size: 20px;
}

#mapContainer {
  width: 95%;
  max-width: 800px;
  height: 60vh;
  margin: 20px auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
}

/* Botão admin */
#toggleTracking {
  position: absolute;
  top: 30px;
  left: 480px;
  z-index: 1000;
  padding: 30px 13px;
  font-size: 30px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  cursor: pointer;
  display: none;
}

#toggleTracking.active { background: var(--danger); }

/* Botões de foco */
.controlBtn {
  position: absolute;
  z-index: 1000;
  padding: 28px 28px;
  font-size: 30px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

#btnUser { bottom: 170px; right: 10px; }
#btnFretado { bottom: 50px; right: 10px; }

.legend {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: white;
  padding: 6px 10px;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
  font-size: 23px;
  line-height: 1.5;
  z-index: 1000;
}

#statusMsg {
  text-align: center;
  font-size: 30px;
  color: #ff0000;
  margin-top: 5px;
}

footer {
  text-align: center;
  font-size: 12px;
  color: #555;
  margin: 20px 0;
}

#onlineCounter {
  background: white; 
  padding: 6px 10px; 
  border-radius: 8px; 
  box-shadow: 0 0 6px rgba(0,0,0,0.3); 
  font-size: 25px; 
  display: none;
  margin-bottom: 5px;
}

#credits {
  font-size: 20px;
}
