/* ============================================================
   CUSTOM SELECT (Dropdown) - Substitui o select nativo
   Remove a seleção azul padrão do Windows
   ============================================================ */

.custom-select-wrapper {
  position: relative;
  width: 100%;
  user-select: none;
}

.custom-select-trigger {
  width: 100%;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.custom-select-trigger span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 10px;
}

.custom-select-trigger i {
  width: 16px;
  height: 16px;
  color: #a0a0b0;
  transition: transform 0.3s;
}

.custom-select-wrapper.open .custom-select-trigger i {
  transform: rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: 350px;
  z-index: 1000;
  background: #0a0a0f;
  border: 1px solid var(--border);
  border-radius: 8px;
  max-height: 0;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: all 0.2s ease;
}

.custom-select-wrapper.open-up .custom-select-options {
  top: auto;
  bottom: calc(100% + 4px);
}

.custom-select-wrapper.open .custom-select-options {
  opacity: 1;
  visibility: visible;
  max-height: 400px;
  transform: translateY(0);
}

.custom-option {
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.custom-option:hover {
  background: var(--gold);
  color: #1a1a24;
}

.custom-option.selected {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
  font-weight: 500;
}

.custom-option.selected:hover {
  background: var(--gold);
  color: #1a1a24;
}

/* Fallback e integração */
select.customized {
  display: none !important;
}

/* Scrollbar estilizada pro dropdown */
.custom-select-options::-webkit-scrollbar {
  width: 6px;
}
.custom-select-options::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.custom-select-options::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 6px;
}
.custom-select-options::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.7);
}
