@charset "utf-8";
/* CSS Document */


.bg-background {
  background-image: url('/assets/img/fundos.png');
  /* Substitua 'sua-imagem.jpg' pelo caminho da sua imagem */
  background-size: cover;
  /* Faz a imagem cobrir toda a área */
  background-position: center;
  /* Centraliza a imagem */
  background-repeat: no-repeat;
  /* Evita repetição */
  width: 100%;
  /* Ocupa 100% da largura */
  min-height: 100vh;
  /* Garante que a altura mínima seja 100% da viewport */
  display: flex;
  /* Permite centralizar conteúdo interno, opcional */
  align-items: center;
  /* Centraliza verticalmente o conteúdo, opcional */
  justify-content: center;
  /* Centraliza horizontalmente o conteúdo, opcional */
}

/* 📱 Quando for mobile, troca a imagem */
@media (max-width: 768px) {
  .bg-background {
    background-image: url('/assets/img/fundos-mobile.png');
    /* 👉 imagem específica para mobile */
  }
}


nav.navbar {
  text-align: center;
  background-color: #a5a5a5 !important;
  text-decoration: none !important;
  color: white !important;
}

/* Corrige a cor dos links do menu principal */
nav.navbar .nav-link {
  color: white !important;
  text-decoration: none !important;
}

nav.navbar .nav-link:hover {
  color: black !important;
  text-decoration: none !important;
}

/* Mantém a cor preta mesmo quando o link está ativo ou em foco */
nav.navbar .nav-link:focus,
nav.navbar .nav-link:active {
  color: white !important;
  text-decoration: none !important;
}

nav.navbar a:hover {
  text-decoration: none;
  color: black !important;
}

nav.navbar .dropdown-item:hover {
  background-color: #a5a5a5;
  color: white !important;
}

.faixa_topo {
  background-color: #575757 !important;
  color: rgb(255, 255, 255) !important;
  text-decoration: none !important;
}

.faixa_sub_topo {
  background-color: rgb(8, 218, 11) !important;
  color: rgb(255, 255, 255) !important;
  text-decoration: none !important;
  min-height: 5px;
}

.faixa_topo ul.navbar-nav li.nav-item a.nav-link {
  background-color: #575757 !important;
  color: rgb(255, 255, 255) !important;
  text-decoration: none !important;
}

.faixa_topo .dropdown-item:hover {
  background-color: #575757;
  color: black !important;
}

.rodape {
  background-color: #575757;
  color: white;
  min-height: 200px;
}

button.abas.active {
  background-color: #575757 !important;
  color: #ffffff !important;
  position: relative;
  transition: all 0.3s ease;
}

button.abas.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  /* ajusta a distância do sublinhado */
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background-color: #575757;
  transition: transform 0.3s ease;
  transform-origin: center;
}

.bg_subcor {
  background-color: #fa716c;
  color: white !important;
}

.motorista-info {
  font-size: 11px;
  color: #28a745;
  margin-top: 2px;
}

.motorista-info i {
  margin-right: 3px;
}

.vehicle-image img {
  border-radius: 8px;
  object-fit: cover;
}

/* Quando é foto de motorista, deixar circular */
.vehicle-image.motorista img {
  border-radius: 50%;
  border: 2px solid #28a745;
}

/* Info Window - Espaçamento reduzido */
.info-window-content {
  padding: 8px;
  line-height: 1.2;
}

.info-window-content h6 {
  margin-bottom: 4px;
}

.info-window-content p {
  margin: 2px 0;
}

.info-window-content .btn {
  margin-top: 8px;
}

/* Overlay do Motorista no Mapa */
.motorista-overlay {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #28a745;
  border-radius: 8px;
  padding: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  font-family: Arial, sans-serif;
  font-size: 11px;
  text-align: center;
  z-index: 1000;
  min-width: 60px;
  max-width: 100px;
}

.motorista-overlay img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 2px auto;
}

.motorista-overlay .nome {
  color: #28a745;
  font-weight: bold;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Motorista info na lista lateral */
.motorista-info {
  font-size: 11px;
  color: #28a745;
  margin-top: 2px;
}

.motorista-info i {
  margin-right: 3px;
}

/* Imagem do veículo vs motorista */
.vehicle-image img {
  border-radius: 8px;
  object-fit: cover;
}

.vehicle-image.motorista img {
  border-radius: 50%;
  border: 2px solid #28a745;
}

.driver-overlay {
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 1000;
  pointer-events: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Imagem do motorista */
.driver-overlay img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  border: 3px solid #fff;
}

/* Fundo colorido por status */
.driver-overlay.status-online {
  background: #28a745;
  /* verde */
  border: 3px solid #28a745;
}

.driver-overlay.status-stopped {
  background: #ff9800;
  /* laranja */
  border: 3px solid #ff9800;
}

.driver-overlay.status-offline {
  background: #dc3545;
  /* vermelho */
  border: 3px solid #dc3545;
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2999;
  display: none;
}

.drawer-backdrop.show {
  display: block;
}