/* SmartSearchBar — built to play nice with themes (uses CSS variables with fallbacks) */

.sw-search {
  position: relative;
  width: 100%;
  max-width: 560px;
}

.sw-search__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;

  border-radius: 14px;
  padding: 8px 10px;

  background: var(--sw-panel-bg, rgba(15, 18, 28, 0.62));
  border: 1px solid var(--sw-panel-border, rgba(255, 255, 255, 0.10));
  backdrop-filter: blur(10px);
}

.sw-search__input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;

  color: var(--sw-text, rgba(255,255,255,0.92));
  font-size: 14px;
  padding: 2px 4px;
}

.sw-search__input::placeholder {
  color: var(--sw-muted, rgba(255,255,255,0.55));
}

.sw-search__icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sw-search__iconBtn {
  border: 0;
  outline: 0;
  cursor: pointer;

  width: 34px;
  height: 34px;
  border-radius: 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: var(--sw-chip-bg, rgba(255,255,255,0.08));
  color: var(--sw-text, rgba(255,255,255,0.92));
}

.sw-search__iconBtn:active {
  transform: translateY(1px);
}

.sw-search__dropdown {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  margin-top: 8px;

  border-radius: 14px;
  overflow: hidden;

  background: var(--sw-panel-bg-2, rgba(12, 14, 22, 0.80));
  border: 1px solid var(--sw-panel-border, rgba(255, 255, 255, 0.10));
  backdrop-filter: blur(12px);
}

.sw-search__row {
  padding: 10px 12px;
  text-align: left;
}

.sw-search__item {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.sw-search__item:hover,
.sw-search__item.is-active {
  background: var(--sw-hover, rgba(255,255,255,0.08));
}

.sw-search__title {
  color: var(--sw-text, rgba(255,255,255,0.92));
  font-size: 13.5px;
  line-height: 1.2;
}

.sw-search__sub {
  margin-top: 2px;
  color: var(--sw-muted, rgba(255,255,255,0.60));
  font-size: 12px;
}

.sw-search__muted {
  color: var(--sw-muted, rgba(255,255,255,0.60));
  font-size: 12.5px;
}

.sw-search__error {
  color: var(--sw-danger, #ff6b6b);
  font-size: 12.5px;
}
