/* Shared visual polish: navigation icons and reusable dropdowns. */
.sidebar .nav {
  min-height: 44px;
  padding: 0 14px;
  gap: 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 520;
  letter-spacing: .01em;
}

.sidebar nav > p {
  margin: 18px 14px 7px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .12em;
  color: #77718f;
}

.nav-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .82;
}

.sidebar .nav.active .nav-icon {
  opacity: 1;
  color: #fff;
}

.sidebar.collapsed .nav {
  justify-content: center;
  padding: 0;
}

.native-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.select-ui {
  position: relative;
  width: 100%;
}

.select-trigger {
  width: 100%;
  min-height: 42px;
  padding: 0 12px 0 14px;
  border: 1px solid #e6e2ef;
  border-radius: 10px;
  background: #fff;
  color: #242036;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 560;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.select-trigger:hover {
  border-color: #c9c0eb;
  background: #fdfcff;
}

.select-ui.open .select-trigger,
.select-trigger:focus-visible {
  border-color: #7655f6;
  box-shadow: 0 0 0 3px rgba(118, 85, 246, .12);
  outline: none;
}

.select-chevron {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: #726c83;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .16s ease;
}

.select-ui.open .select-chevron {
  transform: rotate(180deg);
}

.select-menu {
  position: absolute;
  z-index: 120;
  left: 0;
  right: 0;
  top: calc(100% + 7px);
  display: none;
  padding: 6px;
  border: 1px solid #e5e0ef;
  border-radius: 12px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 48px rgba(35, 28, 63, .16), 0 3px 10px rgba(35, 28, 63, .08);
  backdrop-filter: blur(12px);
}

.select-ui.open .select-menu {
  display: grid;
  gap: 2px;
  animation: select-in .14s ease-out;
}

.select-option {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #3a354a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.select-option:hover,
.select-option.focused {
  background: #f4f1ff;
  color: #5d3fe8;
}

.select-option.selected {
  background: #eee9ff;
  color: #5c3bea;
  font-weight: 650;
}

.select-option.selected::after {
  content: "✓";
  font-size: 13px;
}

.select-option[disabled] {
  color: #aaa5b7;
  cursor: not-allowed;
}

@keyframes select-in {
  from { opacity: 0; transform: translateY(-5px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.api-key-control {
  position: relative;
  width: 100%;
}

.api-key-control input {
  width: 100%;
  padding-right: 44px !important;
}

.api-key-eye {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #777086;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.api-key-eye:hover,
.api-key-eye:focus-visible {
  background: #f1edff;
  color: #6545ec;
  outline: none;
}

.api-key-eye svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
