/* ==========================================================================
   Custom Select Component (Makam Red Theme)
   ========================================================================== */

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

.custom-select-trigger {
  width: 100%;
  height: 42px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  color: #0F172A;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
  text-align: left;
}

.custom-select-trigger:hover {
  border-color: #94A3B8;
}

.custom-select-wrapper.open .custom-select-trigger {
  border-color: #DF0513;
  border-width: 1.5px;
  box-shadow: 0 0 0 3px rgba(223, 5, 19, 0.12);
}

.custom-select-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 8px;
  font-weight: 500;
}

.custom-select-text.placeholder {
  color: #64748B;
  font-weight: 400;
}

.custom-select-chevron {
  width: 18px;
  height: 18px;
  color: #64748B;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
  flex-shrink: 0;
}

.custom-select-wrapper.open .custom-select-chevron {
  transform: rotate(180deg);
  color: #DF0513;
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: selectDropdownFade 0.15s ease;
}

@keyframes selectDropdownFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.custom-select-wrapper.open .custom-select-dropdown {
  display: flex;
}

.custom-select-search-box {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid #F1F5F9;
  background: #F8FAFC;
  gap: 8px;
}

.custom-select-search-box svg {
  width: 15px;
  height: 15px;
  color: #94A3B8;
  flex-shrink: 0;
}

.custom-select-search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 13px;
  color: #0F172A;
  outline: none;
  font-family: inherit;
  padding: 0;
}

.custom-select-options-list {
  max-height: 230px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 0;
}

.custom-select-options-list::-webkit-scrollbar {
  width: 5px;
}

.custom-select-options-list::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

.custom-select-options-list::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

.custom-select-option {
  padding: 10px 16px;
  font-size: 13.5px;
  color: #0F172A;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  user-select: none;
}

.custom-select-option:hover,
.custom-select-option.highlighted {
  background: #FFF1F2;
  color: #DF0513;
  font-weight: 600;
}

.custom-select-option.selected {
  background: #FEF2F2;
  color: #DF0513;
  font-weight: 700;
}

.custom-select-empty {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: #94A3B8;
}
