/* AJAX Dropdown for page search input */
.dcbs-search-dropdown-wrap {
  position: relative;
  width: 100%;
}

.dcbs-dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
  max-height: 250px;
  overflow-y: auto;
  margin: 4px 0 0 0;
  padding: 6px 0;
  list-style: none;
  font-family: inherit;
}

.dcbs-dropdown-item {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  color: #334155;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.dcbs-dropdown-item:hover,
.dcbs-dropdown-item.is-active {
  background-color: #f1f5f9;
  color: #0f172a;
}

.dcbs-dropdown-item .dcbs-match {
  font-weight: 700;
  color: #2fc1ff;
  width: auto;
  display: inline-block;
}
.dcbs-dropdown-loading,
.dcbs-dropdown-no-results {
  padding: 12px 16px;
  font-size: 14px;
  color: #64748b;
  text-align: center;
}

.dcbs-dropdown-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.dcbs-dropdown-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: dcbs-spin 0.6s linear infinite;
}

@keyframes dcbs-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Custom scrollbar for dropdown */
.dcbs-dropdown-list::-webkit-scrollbar {
  width: 6px;
}
.dcbs-dropdown-list::-webkit-scrollbar-track {
  background: transparent;
}
.dcbs-dropdown-list::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 3px;
}
.dcbs-dropdown-list::-webkit-scrollbar-thumb:hover {
  background-color: #94a3b8;
}
