/* Style de base correspondant aux autres champs */
.chain-selector {
  width: 100%;
  border: 1px solid #d1d5db; /* border-gray-300 */
  border-radius: 0.375rem; /* rounded-md */
  padding: 0.5rem 0.75rem; /* py-2 px-3 */
  outline: none;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  min-height: 2.5rem; /* Hauteur cohérente avec les inputs */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
}

/* Style au hover */
.chain-selector:hover {
  border-color: #9ca3af; /* border-gray-400 */
}

/* Style quand le dropdown est ouvert */
.chain-selector.active {
  border-color: #6b7280; /* border-gray-500 */
  box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.2);
}

/* Contenu interne */
.chain-selector .selected-blockchain {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-grow: 1;
}

/* Style du logo */
.chain-selector .selected-blockchain img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  object-fit: contain;
  background-color: #f3f4f6; /* bg-gray-100 */
  padding: 0.125rem;
  border: 1px solid #e5e7eb; /* border-gray-200 */
}

/* Style de la flèche */
.chain-selector .fa-chevron-down {
  color: #6b7280; /* text-gray-500 */
  transition: transform 0.2s ease;
  margin-left: 0.5rem;
  font-size: 0.875rem;
}

.chain-selector.active .fa-chevron-down {
  transform: rotate(180deg);
}

/* Vos styles existants */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 250px;
  max-height: 400px;
  border-radius: 0.5rem;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1000;
  margin-top: 0.5rem;
  width: 100%;
  overflow-y: auto; /* Scroll uniquement à l'intérieur */
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.dropdown.active .dropdown-content {
  display: block;
}

/* Empêche le scroll de la page quand dropdown ouvert */
.dropdown.active ~ * {
  position: fixed;
  width: 100%;
}

.dropdown-item {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-item:hover {
  background-color: #374151;
  color: white;
  cursor: pointer;
}

.dropdown-item:focus {
  outline: none; /* Enlève le contour de focus par défaut */
}

.selected-blockchain {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #374151;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #6b7280;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}