.native-select {
  position: relative;
  width: 100%;
}

.native-select-button {
  width: 100%;
  min-height: 38px;

  padding: 0.625rem 2rem 0.625rem 0.875rem;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);

  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;

  cursor: pointer;
  text-align: left;

  transition: var(--transition);
  outline: none;
}

.native-select-button:hover {
  border-color: var(--text-muted);
}

.native-select-button:focus-visible,
.native-select.open .native-select-button {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.15);
}

.native-select-button svg {
  color: var(--text-muted);
  transition: transform 0.2s;
}

.native-select.open .native-select-button svg {
  transform: rotate(180deg);
}

/* Dropdown */

.native-select-dropdown {
  position: absolute;

  top: calc(100% + 4px);
  left: 0;
  right: 0;

  z-index: 9999;

  background: var(--bg-secondary);
  border: 1px solid var(--accent-blue);
  border-radius: var(--radius-sm);

  box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.15);

  display: none;
}

.native-select.open .native-select-dropdown {
  display: block;
}

/* Search */

.native-select-search {
  padding: 8px;
  border-bottom: 1px solid var(--border-color);
}

.native-select-search input {
  width: 100%;

  box-sizing: border-box;

  padding: 7px 10px;

  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);

  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;

  outline: none;

  transition: var(--transition);
}

.native-select-search input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.native-select-search input:hover {
  border-color: var(--text-muted);
}

.native-select-search input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(79, 195, 247, 0.15);
}

/* Options */

.native-select-options {
  max-height: 230px;
  overflow-y: auto;
}

.native-select-option {
  padding: 9px 12px;

  font-size: 14px;
  color: var(--text-primary);

  cursor: pointer;

  transition:
    background 0.1s,
    color 0.1s;
}

.native-select-option:hover {
  background: rgba(79, 195, 247, 0.08);
}

.native-select-option.selected {
  background: rgba(79, 195, 247, 0.12);
  color: var(--accent-blue);
  box-shadow: inset 0 0 0 1px var(--accent-blue);
}

.native-select-option.hidden {
  display: none;
}

/* Tidak ditemukan */

.native-select-no-result {
  padding: 12px;

  color: var(--text-muted);

  font-size: 14px;

  text-align: center;
}
