/* 
  Custom Select Dropdown Styles - Venlyx Theme
  
  Z-INDEX HIERARCHY:
  - custom-select-dropdown: 1001 (above modals, visible within forms)
  
  This component is used within forms and modals. The z-index of 1001
  ensures that custom select dropdowns appear above modal content (1000)
  but below floating elements (9999+).
*/

.custom-select-container {
  position: relative;
  width: 100%;
  min-width: 150px;
  display: inline-block !important;
}

.custom-select-button {
  width: 100% !important;
  padding: 10px 36px 10px 14px !important;
  border: 2px solid #00BCD4 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  background: white !important;
  color: #333 !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-align: left !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  box-sizing: border-box !important;
  position: relative !important;
  transition: all 0.2s ease !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
}

.custom-select-button:hover {
  background-color: rgba(0, 188, 212, 0.05) !important;
  border-color: #1FD084 !important;
}

.custom-select-button:focus {
  outline: none !important;
  border-color: #1FD084 !important;
  box-shadow: 0 0 0 3px rgba(31, 208, 132, 0.15) !important;
}

.custom-select-button::after {
  content: '▼' !important;
  font-size: 10px !important;
  color: #00BCD4 !important;
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  transition: transform 0.2s ease !important;
  pointer-events: none !important;
}

.custom-select-button.open::after {
  transform: translateY(-50%) rotate(180deg) !important;
}

.custom-select-dropdown {
  position: absolute !important;
  top: calc(100% + 4px) !important;
  left: 0 !important;
  right: 0 !important;
  background: white !important;
  border: 2px solid #1FD084 !important;
  border-radius: 8px !important;
  max-height: 0 !important;
  overflow: hidden !important;
  z-index: 1001 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0) !important;
  box-sizing: border-box !important;
  transition: all 0.3s ease !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.custom-select-dropdown.open {
  max-height: 300px !important;
  overflow-y: auto !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.custom-select-option {
  padding: 14px 16px;
  cursor: pointer;
  color: #333;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  font-size: 14px;
}

.custom-select-option:last-child {
  border-bottom: none;
}

.custom-select-option:hover,
.custom-select-option.highlighted {
  background: linear-gradient(135deg, #00BCD4 0%, #1FD084 100%);
  color: white;
  font-weight: 600;
}

.custom-select-option.selected {
  background: #1FD084;
  color: white;
  font-weight: 600;
}

/* Keep "Todas Categorias" and "Todos Status" gray when selected */
.custom-select-option.selected[data-value=""] {
  background: transparent;
  color: #999;
  font-weight: 500;
}

.custom-select-option.selected[data-value=""]:hover {
  background: linear-gradient(135deg, #00BCD4 0%, #1FD084 100%);
  color: white;
  font-weight: 600;
}

.custom-select-option.selected:hover,
.custom-select-option.selected.highlighted {
  background: linear-gradient(135deg, #1FD084 0%, #00BCD4 100%);
}

/* Scrollbar customizado */
.custom-select-dropdown::-webkit-scrollbar {
  width: 6px;
}

.custom-select-dropdown::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb {
  background: #1FD084;
  border-radius: 3px;
}

.custom-select-dropdown::-webkit-scrollbar-thumb:hover {
  background: #00BCD4;
}
