/* Компонент кастомного выпадающего списка с поиском */
.custom-select {
  position: relative;
  width: 100%;
  font-family: 'Nunito', sans-serif;
}

.custom-select__trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 48px;
}

.custom-select__trigger:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.custom-select__trigger.active {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.custom-select__value {
  color: #ffffff;
  font-size: 15px;
  font-weight: 400;
  flex: 1;
  text-align: left;
}

.custom-select__value.placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.custom-select__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: transform 0.3s ease;
  margin-left: 12px;
}

.custom-select__trigger.active .custom-select__arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.custom-select__options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(20, 20, 20, 0.95);
  border: 1px solid var(--accent);
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  max-height: 300px;
  overflow: hidden;
}

.custom-select__options.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-select__search {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.custom-select__search-input {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #ffffff;
  font-size: 14px;
  font-family: 'Nunito', sans-serif;
  transition: all 0.3s ease;
}

.custom-select__search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.custom-select__search-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}

.custom-select__list {
  max-height: 200px;
  overflow-y: auto;
  padding: 8px 0;
}

.custom-select__option {
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-select__option:last-child {
  border-bottom: none;
}

.custom-select__option:hover {
  background: rgba(233, 30, 99, 0.1);
  color: #ffffff;
}

.custom-select__option.selected {
  background: rgba(233, 30, 99, 0.15);
  color: var(--accent);
  font-weight: 500;
}

.custom-select__option.hidden {
  display: none;
}

/* Scrollbar styling */
.custom-select__list::-webkit-scrollbar {
  width: 6px;
}

.custom-select__list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.custom-select__list::-webkit-scrollbar-thumb {
  background: rgba(233, 30, 99, 0.3);
  border-radius: 3px;
}

.custom-select__list::-webkit-scrollbar-thumb:hover {
  background: rgba(233, 30, 99, 0.5);
}
