/* AskQuiz — Custom dropdown component */

.custom-select {
  position: relative;
  width: 100%;
}
.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s;
  user-select: none;
}
.custom-select-trigger:hover,
.custom-select.open .custom-select-trigger {
  border-color: var(--primary);
}
.custom-select-trigger::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-muted);
  margin-left: 0.5rem;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.custom-select.open .custom-select-trigger::after {
  transform: rotate(180deg);
}
.custom-select-options {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  z-index: 60;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.custom-select.open .custom-select-options {
  display: block;
}
.custom-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 0.95rem;
}
.custom-select-option:hover {
  background: rgba(108,92,231,0.15);
}
.custom-select-option.selected {
  background: rgba(108,92,231,0.1);
  color: var(--primary-light);
}
.custom-select-option.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.custom-select-option.disabled:hover {
  background: transparent;
}
.custom-select-option .option-label {
  flex: 1;
}
.custom-select-option .option-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  margin-left: 0.75rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.option-badge.badge-free {
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
}
.option-badge.badge-pro {
  background: rgba(108,92,231,0.2);
  color: var(--primary-light);
}
