.lsp-wrapper {
  position: relative;
}

.lsp-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

#lsp-input {
  width: 100%;
  padding: 10px 40px 10px 10px;
  border: 1px solid #aaa;
  border-radius: 6px;
  font-size: 16px;
}

.lsp-spinner {
  position: absolute;
  right: 12px;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #333;
  border-radius: 50%;
  animation: lsp-spin 0.8s linear infinite;
  display: none;
}

.lsp-spinner.active {
  display: block;
}

@keyframes lsp-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#lsp-results {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-top: 4px;
  max-height: 250px;
  overflow-y: auto;
  position: absolute;
  width: 100%;
  z-index: 9999;
  display: none;
}

.lsp-item {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.lsp-item:last-child {
  border-bottom: none;
}

.lsp-item a {
  text-decoration: none;
  color: #333;
  display: block;
}

.lsp-item:hover {
  background: #f2f2f2;
}
