#swagger-search-container {
  background-color: white;
  padding: 15px 20px;
  margin-bottom: 20px;
  z-index: 1000;
}

#swagger-search-container.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#swagger-search-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

#swagger-search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

#swagger-search-input {
  flex: 1;
  padding: 10px 15px;
  border: 2px solid #663f74;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

#swagger-search-input:focus {
  border-color: #8b4f9e;
}

#swagger-search-input::placeholder {
  color: #999;
}

#swagger-search-clear {
  padding: 10px 20px;
  background-color: #663f74;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

#swagger-search-clear:hover {
  background-color: #8b4f9e;
}

#swagger-search-clear:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

#swagger-search-stats {
  font-size: 13px;
  color: #663f74;
  white-space: nowrap;
  min-width: 100px;
  text-align: right;
}

/* Autocomplete Dropdown */
#swagger-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 110px; /* Account for clear button */
  margin-top: 5px;
  background-color: white;
  border: 2px solid #663f74;
  border-radius: 4px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 1001;
}

#swagger-search-dropdown.visible {
  display: block;
}

.search-result-item {
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

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

.search-result-item:hover,
.search-result-item.selected {
  background-color: #f5f0f7;
}

.search-result-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.search-result-method {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  margin-right: 8px;
  min-width: 50px;
  text-align: center;
}

.search-result-method.get {
  background-color: #61affe;
  color: white;
}

.search-result-method.post {
  background-color: #49cc90;
  color: white;
}

.search-result-method.put {
  background-color: #fca130;
  color: white;
}

.search-result-method.delete {
  background-color: #f93e3e;
  color: white;
}

.search-result-method.patch {
  background-color: #50e3c2;
  color: white;
}

.search-result-method.model {
  background-color: #663f74;
  color: white;
}

.search-result-method.tag {
  background-color: #8b4f9e;
  color: white;
}

.search-result-path {
  font-family: monospace;
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
}

.search-result-description {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.search-result-type {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

.search-no-results {
  padding: 15px;
  text-align: center;
  color: #999;
  font-style: italic;
}

/* Highlight matching text */
.search-highlight {
  background-color: #ffeb3b;
  padding: 1px 2px;
  border-radius: 2px;
  font-weight: 600;
}
