/* Estilos customizados para o Traccar Simulator */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  font-family: var(--font-sans);
  background-color: #0f172a;
  color: #f8fafc;
}

.font-mono {
  font-family: var(--font-mono);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #1e293b;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Regras de Mapa Leaflet */
#map {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  background-color: #0b1120;
}

.leaflet-container {
  width: 100% !important;
  height: 100% !important;
  background-color: #0b1120 !important;
}

/* Estilo do Marcador de Veículo no Leaflet */
.leaflet-marker-icon.custom-vehicle-div-icon {
  transition: transform 0.95s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}

.vehicle-marker-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vehicle-icon {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
  transition: transform 0.5s ease;
}

.vehicle-label {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(15, 23, 42, 0.9);
  color: #38bdf8;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
  border: 1px solid rgba(56, 189, 248, 0.3);
  pointer-events: none;
}

/* Badges e animações */
.pulse-online {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .4;
  }
}
