/* custom-select — standart görünüm: Sınıflar “Düzenle” modalı */

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

.custom-select__button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #c0c7cc;
  border-radius: 8px;
  background: #ffffff;
  color: #6b7280;
  cursor: pointer;
  font-family: "Plus Jakarta Sans", "Be Vietnam Pro", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  outline: none;
  padding: 10px 12px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.custom-select__button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: #41484c;
  transition: transform 160ms ease;
}

.custom-select.has-value .custom-select__button {
  color: #191c1d;
  font-weight: 600;
}

.custom-select__button:hover {
  border-color: #00658f;
}

.custom-select__button:focus-visible,
.custom-select.is-open .custom-select__button {
  border-color: #00658f;
  box-shadow: none;
}

.custom-select.is-open .custom-select__button svg {
  transform: rotate(180deg);
}

.custom-select__menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  z-index: 30;
  display: none;
  max-height: 320px;
  margin: 0;
  padding: 4px;
  border: 1px solid #c0c7cc;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(25, 28, 29, 0.12);
  list-style: none;
  overflow-y: auto;
}

.custom-select.is-open .custom-select__menu {
  display: block;
}

.custom-select__menu.is-floating {
  display: block;
  margin: 0;
  list-style: none;
}

.custom-select__menu.is-floating.custom-select__menu--health-theme {
  border: 1px solid #c0c7cc;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(25, 28, 29, 0.12);
  padding: 4px;
}

.custom-select__menu.is-floating.custom-select__menu--health-theme li {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 6px;
}

.custom-select__menu.is-floating.custom-select__menu--health-theme li:hover,
.custom-select__menu.is-floating.custom-select__menu--health-theme li.is-selected {
  background: #4152b7;
  color: #ffffff;
  font-weight: 600;
}

.custom-select__menu.is-floating.custom-select__menu--health-theme li.custom-select__search,
.custom-select__menu.is-floating.custom-select__menu--health-theme li.custom-select__empty {
  background: #ffffff;
}

.custom-select__menu.is-floating.custom-select__menu--health-theme li.custom-select__search:hover,
.custom-select__menu.is-floating.custom-select__menu--health-theme li.custom-select__empty:hover {
  background: #ffffff;
  color: #191c1d;
  font-weight: 500;
}

.custom-select__menu li {
  display: flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  color: #191c1d;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.custom-select__menu li:hover,
.custom-select__menu li.is-selected {
  background: #4152b7;
  color: #ffffff;
  font-weight: 600;
}

.custom-select__menu li.custom-select__search,
.custom-select__menu li.custom-select__empty {
  position: sticky;
  top: 0;
  z-index: 1;
  display: block;
  min-height: 0;
  padding: 6px;
  cursor: default;
  background: #ffffff;
}

.custom-select__menu li.custom-select__search:hover,
.custom-select__menu li.custom-select__empty:hover,
.custom-select__menu li.custom-select__search.is-selected,
.custom-select__menu li.custom-select__empty.is-selected {
  background: #ffffff;
  color: #191c1d;
  font-weight: 500;
}

.custom-select__menu li.custom-select__empty {
  color: #71787d;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  pointer-events: none;
}

.custom-select__menu [data-custom-select-search] {
  width: 100%;
  min-height: 38px;
  border: 1px solid #c0c7cc;
  border-radius: 8px;
  background: #ffffff;
  color: #191c1d;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  padding: 8px 10px;
}

.custom-select__menu [data-custom-select-search]:focus {
  border-color: #00658f;
  box-shadow: none;
}

.custom-select__menu li[hidden] {
  display: none !important;
}

.custom-select__option-main {
  flex: 1 1 auto;
  min-width: 0;
}

.custom-select__option-meta {
  flex: 0 0 auto;
  margin-left: 12px;
  color: #71787d;
  font-size: 12px;
  font-weight: 500;
}

.custom-select__menu li:hover .custom-select__option-meta,
.custom-select__menu li.is-selected .custom-select__option-meta {
  color: inherit;
  opacity: 0.85;
}

.custom-select--relation .custom-select__menu {
  max-height: 360px;
}

.custom-select--menu-5 .custom-select__menu,
.custom-select__menu.is-floating.custom-select__menu--max-5 {
  max-height: calc(5 * 40px + 8px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.students-modal .custom-select__menu {
  z-index: 40;
}
