.search-bar-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.search-bar {
  background: var(--navbar-bg);
  border: 0px;
  border-radius: 12px;
  box-shadow: none;
  gap: 15px;
  justify-content: center;
  margin: 10px auto;
  padding: 0px;
  display: flex;
  flex-direction: column;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.search-bar input {
  border: 2px solid var(--button-bg);
  border-radius: 6px;
  padding: 9px;
  text-align: center;
  margin: auto;
  align-content: center;
  justify-content: center;
  font-size: 1.1em;
  background-color: var(--navbar-bg);
  color: var(--navbar-text);
  transition: all 0.3s ease;
}

.search-bar input:hover,
.search-bar input:focus {
  border-color: var(--button-bg);
  background: var(--background);
}

.search-bar input.dark-mode {
  background-color: #2d2d2d;
  color: #ffffff;
  border-color: #555;
}

.search-bar input.dark-mode:hover,
.search-bar input.dark-mode:focus {
  background-color: #3d3d3d;
  border-color: #666;
}

.search-bar button {
  background: var(--button-bg);
  border: none;
  border-radius: 6px;
  color: var(--button-text);
  cursor: pointer;
  margin: auto;
  max-width: 150px;
  padding: 10px 15px;
  font-weight: 700;
  font-size: 1em;
  transition: background-color 0.3s ease;
}

.search-bar button:hover {
  background: #004F84;
}

.autocomplete-items {
  background-color: var(--navbar-bg);
  border: 2px solid var(--button-bg);
  border-radius: 6px;
  left: 0;
  right: 0;
  top: 116%;
  z-index: 99;
  position: absolute;
  gap: 3px;
  display: flex;
  flex-direction: column;
  padding: 10px;
  text-align: left;
  transition: all 0.3s ease;
}

.autocomplete-items.dark-mode {
  background-color: #2d2d2d;
  border-color: #555;
  color: #ffffff;
}

.autocomplete-item {
  display: flex;
  overflow: clip;
  padding: 6px;
  color: var(--navbar-text);
  transition: all 0.3s ease;
}

.autocomplete-item:hover {
  background-color: var(--background);
  border-radius: 6px;
  border: 2px solid var(--button-bg);
}

.autocomplete-item.dark-mode {
  color: #ffffff;
}

.autocomplete-item.dark-mode:hover {
  background-color: #3d3d3d;
  border-color: #666;
}

.autocomplete-item img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 7px;
  object-fit: cover;
}

.autocomplete-item.active {
  background-color: var(--button-bg);
  color: var(--button-text);
}

.autocomplete-item.active.dark-mode {
  background-color: #555;
  color: #ffffff;
}

.loading {
  color: var(--navbar-text);
  margin-top: 10px;
  font-style: italic;
}