/* Linha horizontal para separar o horário das demais informações */

.section-flights-panel, .container {
  padding: 0;
}

.flight-card-home {
  background: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0.1) 100%);
}

.border-mobile-end {
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  width: calc(100% - 20px);
  height: 100%;
  padding: 18px 20px 18px 0;
  border-left: 1px solid #d5d6d8;
}

.flight-card-home .border-mobile-end {
  border-left: 1px solid #d5d6d831;
}

.flight-card-home .city {
  font-weight: 300;
  font-size: 1.2rem;
  color: #FFF;
}

.flight-card-home .title-mobile {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Estilos para alinhar o botão */

.btn-toggle-row {
  width: 10px;
  height: 10px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Esconde o ícone de menos por padrão */

.icon-minus {
  display: none;
}

/* Mostra o ícone de menos e esconde o de mais quando a área está expandida */

.btn-toggle-row[aria-expanded="true"] .icon-plus {
  display: none;
}

.btn-toggle-row[aria-expanded="true"] .icon-minus {
  display: inline-block;
}

/* Logo com altura máxima 30px */

.logo-flights-panel {
  max-width: 100%;
  height: 40px;
  padding: 0.5rem;
  background-color: #FFF;
  border-radius: 0.5rem;
}

.nav-link .icon {
  width: 2.25em;
  height: 2.25em;
  vertical-align: middle;
}

.nav-link {
  color: #d8d8d88f;
}

.nav-link.active {
  color: #0d6efd;
  background-color: #d5d6d8;
}

.nav-pills .nav-link, .nav-pills .show > .nav-link {
  color: #ffffff88;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #004489;
  background-color: #fffffff8;
}

/* Estilos para as tabs do painel de voos */

/* Reset dos estilos das tabs */
.nav-pills .nav-link {
  background-color: transparent;
  color: white;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Estado hover */
.nav-pills .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Tab ativa - Fundo branco */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: white !important;
  color: #0066cc !important; /* Azul para o texto quando ativo */
  border-color: white !important;
}

/* Ajuste dos ícones SVG quando a tab está ativa */
.nav-pills .nav-link.active svg path,
.nav-pills .nav-link.active svg g path {
  fill: #0066cc !important; /* Azul para os ícones quando ativo */
}

/* Containers de voos - garantir visibilidade */
#flights-container-departures,
#flights-container-arrivals,
#flights-container {
  min-height: 300px;
  width: 100%;
}

/* Tab panes - controle de visibilidade */
.tab-pane {
  display: none !important;
}

.tab-pane.active {
  display: block !important;
}

.tab-pane.show.active {
  display: block !important;
}

/* Forçar visibilidade quando ativo */
#tab-1.active,
#tab-2.active,
#tab-3.active {
  display: block !important;
}

/* Ajustes para o spinner */
#spinner {
  z-index: 9999;
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 10px;
}

/* Card de voo */
.flight-card-home {
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 0;
  transition: background-color 0.3s ease;
}

.flight-card-home:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Título mobile */
.title-mobile {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Logo das companhias aéreas */
.logo-flights-panel {
  max-height: 40px;
  background: white;
  padding: 5px 10px;
  border-radius: 8px;
}

/* Status pills */
.flight-card-home .rounded-pill {
  font-size: 0.85rem;
  padding: 0.25rem 1rem;
}

/* Debug - remover após testes */
.debug-visible {
  border: 2px solid red !important;
}