.search-box {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  padding: 18px 26px 10px 18px;
  background-color: rgba(56, 126, 242, 0.2);
  border-radius: 2px;
  box-shadow: rgba(20, 20, 20, 0.06) 0px 2px 6px, rgba(61, 61, 61, 0.10) 0px 12px 30px;
  z-index: 1;
}

.button-box {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}


#searchBtn {
  padding: 13px 40px;
  border-radius: 999px;
  /* completely round shape */
  border: 1px solid rgba(0, 0, 0, 0.15);

  /* lighter gradient with a smooth transition from top to bottom */
  background: linear-gradient(180deg,
      #5aa0f7 0%,
      /* light top */
      #267beb 55%,
      /* main color */
      #1f66c8 80%
      /* slightly darkened bottom */
    );

  color: white;

  /* realistic 3D effect */
  box-shadow:
    0 8px 20px rgba(20, 40, 90, 0.25),
    /* main outer shadow */
    0 4px 6px rgba(20, 40, 80, 0.20),
    inset 0 2px 4px rgba(255, 255, 255, 0.35);
  /* soft top highlight */

  margin-top: -12px;
  width: 145px;
  margin-left: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
  outline: none;
}

#searchBtn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 16px 36px rgba(20, 40, 90, 0.35),
    0 6px 12px rgba(20, 40, 80, 0.25),
    inset 0 2px 4px rgba(255, 255, 255, 0.40);
}

#searchBtn:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 6px 10px rgba(0, 0, 0, 0.25),
    inset 0 -2px 4px rgba(255, 255, 255, 0.20);
}

#searchBtn:focus {
  box-shadow:
    0 10px 20px rgba(30, 60, 120, 0.12),
    0 0 0 4px rgba(100, 150, 255, 0.15);
}

/* Поле ввода */
.button-box input {
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid rgba(24, 34, 55, 0.08);
  background: linear-gradient(180deg, #fbfdff 0%, #f3f7fb 100%);

  color: black;
  /* text inside input is black */

  box-shadow:
    0 6px 12px rgba(20, 30, 60, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);

  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
  min-height: 32px;
  min-width: 0px;
  font-size: 14px;
}

.button-box input:focus {
  outline: none;
  transform: translateY(-3px);
  border-color: rgba(90, 130, 255, 0.35);
  box-shadow:
    0 12px 24px rgba(30, 60, 120, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.button-box input:active {
  transform: translateY(0);
}

.button-box input::placeholder {
  color: #9ba6b3;
  opacity: 1;
}

/* 1. Restore the even alignment of all elements in the search bar */
.custom-select-wrapper {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
}

.custom-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  /* Margin exactly under the input */
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  max-height: 250px;
  /* Made the dropdown slightly larger */
  overflow-y: auto;
  z-index: 100;
  display: none;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  /* Shadow to make the list stand out */
  text-align: left;
}

.custom-dropdown.show {
  display: block;
}

/* 2. Adjusting the rows inside the list so the text is clearly */
.dropdown-item {
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: #f0f4f8;
}

/* Text settings so it doesn't blend together and fits */
.dropdown-item span,
.dropdown-item label {
  font-size: 14px !important;
  color: #333 !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.3;
  white-space: normal;
  /* Allows long names to wrap to a new line */
  font-weight: 500;
}

/* 3. HARD RESET of old styles for checkboxes so they aren't huge */
.dropdown-item input[type="checkbox"] {
  -webkit-appearance: checkbox !important;
  appearance: checkbox !important;
  width: 16px !important;
  height: 16px !important;
  min-height: auto !important;
  min-width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  border-radius: 3px !important;
  transform: none !important;
  background: white !important;
}