/* Custom select component - adapted to site theme */
.select {
  width: fit-content;
  cursor: pointer;
  position: relative;
  transition: 300ms;
  color: white;
  overflow: visible;
  font-family: inherit;
}

.selected {
  background-color: #191B1E;
  padding: 5px 8px;
  border-radius: 5px;
  position: relative;
  z-index: 100000;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.selected::before {
  content: attr(data-value);
}

/* Dark mode support */
.dark .select .selected {
  background-color: #170F2F;
}

.arrow {
  position: relative;
  right: 0px;
  height: 10px;
  transform: rotate(-90deg);
  width: 25px;
  fill: white;
  z-index: 100000;
  transition: 300ms;
  flex-shrink: 0;
}

/* Arrow points down when dropdown open */
.select:hover > .selected .arrow {
  transform: rotate(0deg);
}

.options {
  display: flex;
  flex-direction: column;
  border-radius: 5px;
  padding: 5px;
  background-color: #191B1E;
  position: absolute;
  top: 100%;
  left: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 300ms ease;
  z-index: 100001;
  min-width: 100%;
  box-shadow: 0 0 50px 10px rgba(95, 45, 237, 0.15);
  margin-top: -4px;
}
.dark .select .options {
  background-color: #170F2F;
}

.select:hover > .options,
.options:hover {
  opacity: 1;
  transform: translateY(0);
}

.option {
  border-radius: 5px;
  padding: 5px 8px;
  transition: 300ms;
  background-color: #191B1E;
  width: auto;
  font-size: 0.75rem;
}
.dark .option {
  background-color: #170F2F;
}
.dark .option:hover {
  background-color: #2A2F3A;
}
.option:hover {
  background-color: #21252b;
  cursor: pointer;
}

.options input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  overflow: hidden;
}
.options label {
  display: inline-block;
  cursor: pointer;
}
.options label::before {
  content: attr(data-txt);
}
.options input[type="radio"]:checked + label {
  display: none;
}
