/* =============== EMPLOYER AUTOCOMPLETE STYLING =============== */

#employer-suggestions {
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
  margin-top: 4px;
}

/* Suggestion Items */
.suggestion-item {
  padding: 10px 15px;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.15s ease;
  font-size: 14px;
  color: #333;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
  background-color: #f5f5f5;
}

.suggestion-item.active {
  background-color: #e8f4f8;
  border-left: 3px solid #007bff;
  padding-left: 12px;
  color: #007bff;
}

/* Highlighted text within suggestions */
.suggestion-item strong {
  color: #007bff;
  font-weight: 600;
}

/* Loading and message states */
.suggestion-item.text-muted {
  color: #999;
  cursor: default;
  text-align: center;
  font-style: italic;
}

.suggestion-item.text-warning {
  color: #ff9800;
  cursor: default;
  text-align: center;
}

.suggestion-item.text-danger {
  color: #d32f2f;
  cursor: default;
  text-align: center;
}

/* Loading spinner */
.spinner-border {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: text-bottom;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
  width: 0.875em;
  height: 0.875em;
  border-width: 0.2em;
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

/* Scrollbar styling for suggestions */
#employer-suggestions::-webkit-scrollbar {
  width: 6px;
}

#employer-suggestions::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

#employer-suggestions::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

#employer-suggestions::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Input focus state */
#employer_name:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #employer-suggestions {
    max-height: 200px;
    font-size: 13px;
  }

  .suggestion-item {
    padding: 8px 12px;
  }
}
