.search-field {
  position: relative;
  z-index: 999;
  border-radius: 10px;
  box-shadow: 2px 2px 2px 3px rgba(0, 0, 0, 0.02);
  width: 18vw;
}

.NavBar {
  .search-header {
    background-color: #deeaf5;
  }
}
.search-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4vw;
  padding: 0;
  cursor: pointer;
  background-color: var(--bg);
  color: var(--primary);
  font-weight: bold;
  border-radius: 10px;
  // text-align: center;
  width: 18vw;
  height: 3vw;
  transition: 0.5s ease-in-out;
}

.search__icon {
  font-size: 1.6vw;
  color: var(--primary);
}

.search__input {
  font-size: 1vw;
  width: 70%;
  height: 100%;
  background-color: transparent;
  outline: none;
  border: none;
  color: #a098ae;
  font-weight: normal;
}

.search_select_icon {
  transition: transform 0.3s ease;
}

.search_select_icon.open {
  transform: rotate(180deg);
}

.search-options-list {
  max-height: 220px;
  overflow: auto;
  scroll-behavior: smooth;
  scroll-padding: 10rem;
  direction: ltr;
  scroll-behavior: smooth;
  scroll-padding: 10rem;
  &::-webkit-scrollbar {
    width: 10px;
  }

  /* Handle */
  &::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 5px; /* Adjust border-radius as needed */
  }

  /* Track */
  &::-webkit-scrollbar-track {
    border-radius: 5px; /* Adjust border-radius as needed */
    background-color: #d3d5d7; /* Set to desired background color */
  }
}

@mixin CustomScrollbar($color) {
  scroll-behavior: smooth;
  scroll-padding: 10rem;
  &::-webkit-scrollbar {
    width: 10px;
  }

  /* Handle */
  &::-webkit-scrollbar-thumb {
    background-color: $color;
    border-radius: 5px; /* Adjust border-radius as needed */
  }

  /* Track */
  &::-webkit-scrollbar-track {
    border-radius: 5px; /* Adjust border-radius as needed */
    background-color: transparent; /* Set to desired background color */
  }
}

.search-options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg);
  border-top: none;
  padding: 0.1vw 0.3vw;
  direction: rtl;
  // border-radius: 10px;
  // margin-top: 5px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  z-index: 99;
}

.search-option {
  padding: 0.6vw 1vw;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4vw;
}

.search-option:hover {
  background-color: #deeaf5;
}

.search-field.open .search-header {
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}
