/*--- static/css/navbar.css ---*/

/* Supprime le contour bleu sur les liens dropdown de la navbar */
.navbar .nav-link:focus,
.navbar .dropdown-toggle:focus {
  box-shadow: none !important;
  outline: none !important;
}

/* Conteneur bouton (fixe, masque le surplus) */
.scrolling-wrapper {
  max-width: 150px;
  /* largeur fixe du bouton */
  overflow: hidden;
  /* masque le texte hors zone */
  position: relative;
}

/* Texte qui défile toujours */
.scrolling-text {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-text 8s linear infinite;
}

@keyframes scroll-text {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.navbar .dropdown-toggle::after {
  display: none !important;
}

/* Dropdown affiché au hover */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}

/* Indicateur aligné proprement au centre */
#postgres-indicator {
  align-self: center;
}

/* --- Style minimal dark moderne --- */
.navbar .dropdown-menu {
  z-index: 2000;
  border-radius: 0.75rem;
  background: #1f2937;
  /* gris anthracite */
  border: 1px solid #374151;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);

  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  /* 🚀 empêche la scrollbar horizontale */

  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.7s ease;
  /* ralenti pour Aircraft + Registration */
}

.navbar .dropdown-menu.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Items */
.dropdown-menu .dropdown-item {
  color: #e5e7eb;
  transition: all 0.2s ease;
  border-radius: 0.25rem;
}

.dropdown-menu .dropdown-item:hover {
  background: #2563eb;
  /* bleu moderne */
  color: white;
  transform: translateX(6px);
}

/* Scrollbar custom fine */
.navbar .dropdown-menu::-webkit-scrollbar {
  width: 4px;
}

.navbar .dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}

.navbar .dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.navbar .dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.6);
}

.navbar .dropdown-menu {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* --- Cas spécial RegistrationDropdown --- */
#registrationDropdown {
  cursor: default;
  /* pas cliquable */
  pointer-events: none;
  /* désactive tout clic */
}