/* Form Components */

/* Tagify custom styling for user email input */
.user-emails-input {
  /* Border and focus styling */
  --tags-border-color: #d1d5db; /* Gray-300 */
  --tags-hover-border-color: #9ca3af; /* Gray-400 */
  --tags-focus-border-color: #3b82f6; /* Blue-500 */

  /* Tag styling */
  --tag-border-radius: 6px; /* Rounded-md */
  --tag-bg: #f3f4f6; /* Gray-100 */
  --tag-hover: #e5e7eb; /* Gray-200 */
  --tag-text-color: #374151; /* Gray-700 */
  --tag-text-color--edit: #111827; /* Gray-900 */
  --tag-pad: 0.375rem 0.75rem; /* px-3 py-1.5 */

  /* Remove button styling */
  --tag-remove-btn-color: #6b7280; /* Gray-500 */
  --tag-remove-btn-bg: transparent;
  --tag-remove-btn-bg--hover: #ef4444; /* Red-500 */
  --tag-remove-bg: rgba(239, 68, 68, 0.1); /* Red-500 with opacity */

  /* Input styling */
  --input-color: #111827; /* Gray-900 */
  --placeholder-color: #9ca3af; /* Gray-400 */
  --placeholder-color-focus: #6b7280; /* Gray-500 */

  /* Invalid state */
  --tag-invalid-color: #ef4444; /* Red-500 */
  --tag-invalid-bg: rgba(239, 68, 68, 0.1); /* Red-500 with opacity */

  /* Sizing and spacing */
  --tag--min-width: 100px;
  --tag--max-width: 200px;
  --tag-hide-transition: 0.2s ease-in-out;

  /* Additional custom styling */
  min-height: 42px;
  padding: 0.375rem 0.75rem; /* px-3 py-1.5 */
  font-size: 0.875rem; /* text-sm */
  border-radius: 0.375rem; /* rounded-md */
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Focus state for the entire input */
.user-emails-input:focus-within {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); /* Blue focus ring */
}

/* Custom styling for the tagify dropdown */
.user-emails-input ~ .tagify__dropdown {
  --tagify-dd-bg-color: #ffffff;
  --tagify-dd-text-color: #374151; /* Gray-700 */
  --tagify-dd-color-primary: #3b82f6; /* Blue-500 */
  --tagify-dd-item-pad: 0.5rem 0.75rem; /* px-3 py-2 */
  --tagify-dd-max-height: 200px;

  border-radius: 0.375rem; /* rounded-md */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
}

/* Style the dropdown items */
.user-emails-input ~ .tagify__dropdown .tagify__dropdown__item {
  border-radius: 0.25rem; /* rounded */
  margin: 2px;
  transition: background-color 0.15s ease-in-out;
}

/* Hover state for dropdown items */
.user-emails-input ~ .tagify__dropdown .tagify__dropdown__item:hover {
  background-color: #f3f4f6; /* Gray-100 */
}

/* Active/selected state for dropdown items */
.user-emails-input ~ .tagify__dropdown .tagify__dropdown__item--active {
  background-color: #3b82f6; /* Blue-500 */
  color: #ffffff;
}