/* conditions.search.css - Styles for the indicator search suggestion dropdown.
   One feature, one CSS file. No dependencies on styles.css selectors. */

.ind-filter-wrap {
  position: relative;
}

.ind-search-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--panel-bg, #1b1f36);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  z-index: 40;
  padding: 4px 0;
}

.ind-search-suggestions[hidden] {
  display: none;
}

.ind-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.ind-search-item:hover,
.ind-search-item:focus {
  background: rgba(96, 125, 255, 0.18);
  outline: none;
}

.ind-search-icon {
  flex-shrink: 0;
  width: 20px;
  text-align: center;
  opacity: 0.85;
}

.ind-search-label {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ind-search-key {
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.55;
}

body.light-theme .ind-search-suggestions {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  color: #2b2b46;
}

body.light-theme .ind-search-item:hover,
body.light-theme .ind-search-item:focus {
  background: rgba(96, 125, 255, 0.12);
}
