/* Dropdown UI Styling */
.dropdown-ui {
  position: relative;
  width: 100%;
}

/* Custom Select Styling */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select {
  position: relative;
  width: 100%;
  cursor: pointer;
}

/* Dropdown Trigger */
.custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: rgba(10, 15, 25, 0.5);
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: 10px;
  color: var(--light-text);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.custom-select-trigger:hover {
  border-color: rgba(0, 229, 255, 0.3);
}

.custom-select-arrow {
  position: relative;
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
}

/* Dropdown Options */
.custom-options {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  background: #6c757d;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  transform: translateY(-10px);
  max-height: 300px;
  overflow-y: auto;
}

.custom-select.open .custom-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown Header */
.custom-option-header {
  padding: 1rem 1.5rem;
  background: #a9a9a9;
  color: #fff;
  font-weight: 500;
  border-radius: 10px 10px 0 0;
}

/* Dropdown Options */
.custom-option {
  padding: 1rem 1.5rem;
  background: #6c757d;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-option:last-child {
  border-bottom: none;
  border-radius: 0 0 10px 10px;
}

.custom-option:hover {
  background: #5a6268;
}

.custom-option.selected {
  background: #495057;
  font-weight: 500;
}

/* Tooltip */
.custom-select-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-size: 0.85rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  transform: translateY(5px);
  pointer-events: none;
  white-space: nowrap;
}

.custom-select-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 10px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

.custom-select:hover .custom-select-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .custom-select-trigger {
    padding: 1rem 1.25rem;
  }
  
  .custom-option {
    padding: 0.75rem 1.25rem;
  }
}
