/* ===================================================================
   INDENANT BROKER - COMPONENTES PERSONALIZADOS
   Archivo de estilos para componentes reutilizables
   Extraído de home.php para mejor modularización
   =================================================================== */

/* ===================================================================
   1. CUSTOM SELECT DROPDOWN
   =================================================================== */
.custom-select-wrapper {
  position: relative;
  user-select: none;
}

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

.custom-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  color: white;
  transition: all 0.3s ease;
}

.custom-select-trigger:hover {
  border-color: rgba(255, 87, 51, 0.4);
}

.custom-select.open .custom-select-trigger {
  border-color: rgba(255, 87, 51, 0.6);
  box-shadow: 0 0 0 2px rgba(255, 87, 51, 0.3);
}

.custom-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(30, 30, 40, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-height: 200px;
  overflow-y: auto;
}

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

.custom-option {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  color: #e5e7eb; /* gray-200 */
}

.custom-option:hover {
  background-color: rgba(255, 87, 51, 0.2);
  color: white;
}

.custom-option.selected {
  background-color: rgba(255, 87, 51, 0.4);
  font-weight: 600;
  color: white;
}

.arrow {
  transition: transform 0.3s ease;
}

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