.search-container {
  position: relative;
  margin: 0 auto 2rem;
  max-width: 600px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1.1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-color: #3b82f6;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
  z-index: 50;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.search-results-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-result-item {
  border-bottom: 1px solid #edf2f7;
}

.search-result-item:last-child {
  border-bottom: 0;
}

.search-result-link {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #2d3748;
  transition: background-color 0.2s;
}

.search-result-link:hover,
.search-result-item.is-active .search-result-link {
  background-color: #f7fafc;
}

.search-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.search-result-title {
  font-weight: 600;
}

.search-result-badge {
  background-color: #e0e7ff;
  color: #4338ca;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.search-result-empty {
  padding: 1rem;
  color: #718096;
  text-align: center;
}
