.kd-assign {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
  color: #e0e0e0;
}

.assign-title {
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  color: #f0f0f0;
  margin-bottom: 10px;
}

.assign-subtitle{
  font-size: 1em;
  font-weight: 600;
  text-align: center;
  color: #c0c0c0;
  margin-bottom: 10px;
}

.available-section {
  position: relative; /* Allows the suggestions list to be positioned relative to this container */
}

/* Available and Assigned sections */
.available-section, .assigned-section , .suggested-section{
  margin: 8px 0;
}

.available-section h6, .assigned-section h6, .suggested-section h6 {
  font-size: 0.9em;
  font-weight: 600;
  margin: 20px 0 0 0;
  padding-bottom: 3px;
  border-bottom: 1px solid #444;
  color: #c0c0c0;
}

/* Input */
#autocomplete-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #666;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 0.9em;
  background-color: #333;
  color: #f0f0f0;
  margin-bottom: 5px;
}

#autocomplete-input::placeholder {
  color: #888;
}

/* Suggestions list */
.suggestions-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  border: 1px solid #666;
  max-height: 130px;
  overflow-y: auto;
  background-color: #333;
  position: absolute;
  top: 100%; /* Positions the list directly below the input */
  left: 0;
  right: 0;
  z-index: 1;
  display: none;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
  width: 100%; /* Matches the width of the input field */
}

.suggestions-list li {
  padding: 8px;
  cursor: pointer;
  font-size: 0.9em;
  color: #f0f0f0;
}

.suggestions-list li:hover {
  background-color: #444;
}

/* Selected items */
.selected-items, .suggested-items {
  list-style-type: none;
  padding: 0;
  margin: 5px 0 0 0;
  border: 1px solid #666;
  border-radius: 4px;
  /* max-height: 200px; */
  overflow-y: auto;
  background-color: #333;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.15);
}

.selected-items li, .suggested-items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  font-size: 0.9em;
  color: #f0f0f0;
  border-bottom: 1px solid #444;
}

.selected-items li:last-child, .suggested-items li:last-child {
  border-bottom: none;
}

.add-item {
  cursor: pointer;
  color: #4872c0;
  font-weight: bold;
  font-size: 0.8em;
  background: none;
  border: none;
  outline: none;
}

.remove-item {
  cursor: pointer;
  color: #ff6b6b;
  font-weight: bold;
  font-size: 0.8em;
  background: none;
  border: none;
  outline: none;
}
