/* Container holding the entire component */
.tag-input-wrapper {
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  width: 100%;
  max-width: 500px;
}

/* The box containing pills and the input */
.tag-input-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: #ffffff;
  cursor: text;
  min-height: 42px;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.tag-input-pills:focus-within {
  border-color: #3b82f6;
  outline: 1px solid #3b82f6;
}

/* Individual Pill */
.tag-pill {
  display: flex;
  align-items: center;
  background-color: #e5e7eb;
  color: #374151;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 16px;
  line-height: 1;
  user-select: none;
}

/* Pill Delete Button (X) */
.tag-remove {
  margin-left: 6px;
  color: #6b7280;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: color 0.2s;
}

.tag-remove:hover {
  color: #ef4444;
}

/* The actual text input field */
.tag-input-field {
  border: none;
  outline: none;
  flex-grow: 1;
  min-width: 120px;
  font-size: 14px;
  padding: 4px 0;
  background: transparent;
  color: #111827;
}

/* Autocomplete Dropdown List */
.tag-input-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 4px 0 0 0;
  padding: 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  max-height: 200px;
  overflow-y: auto;
  z-index: 50;
  display: none; /* Hidden by default */
}

.tag-input-dropdown.active {
  display: block;
}

/* Dropdown Items */
.tag-dropdown-item {
  padding: 8px 12px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: background-color 0.1s;
}

.tag-dropdown-item:hover {
  background-color: #f3f4f6;
  color: #111827;
}