/* Modern Autocomplete Dropdown Styles */
.autocomplete-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
              0 4px 6px -2px rgba(0, 0, 0, 0.05);
  margin: 0;
  padding: 8px 0;
  list-style: none;
  max-height: 250px;
  overflow-y: auto;
  font-family: 'Segoe UI', 'Roboto', 'Oxygen', sans-serif;
  animation: fadeIn 0.15s ease-out;
  transform-origin: top center;
}

.autocomplete-list li {
  padding: 5px !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: #333333;
  font-size: 15px;
  font-weight: 500;
  display: block;
  /* align-items: center; */
  border-left: 3px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.autocomplete-list li:hover {
  background-color: #f8f9fa;
  color: #1a1a1a;
  border-left-color: #3b82f6;
  /*transform: translateX(2px);*/
}

.autocomplete-list li.highlighted {
  background-color: #f0f4f8;
  color: #1e40af;
  border-left-color: #3b82f6;
}

/* Scrollbar styling */
.autocomplete-list::-webkit-scrollbar {
  width: 6px;
}

.autocomplete-list::-webkit-scrollbar-track {
  background: rgba(241, 241, 241, 0.5);
  border-radius: 0 8px 8px 0;
}

.autocomplete-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.autocomplete-list::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Input field container positioning */
.input_field {
  position: relative;
}

/* For better mobile experience */
@media (max-width: 768px) {
  .autocomplete-list {
    max-height: 200px;
    font-size: 14px;
  }
  
  .autocomplete-list li {
    padding: 10px 12px;
  }
}