/* Species Autocomplete Styling */

.autocomplete-container {
    position: relative;
}

.autocomplete-results {
    position: absolute;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.autocomplete-item:hover,
.autocomplete-item.selected {
    background-color: rgba(40, 167, 69, 0.1);
}

.autocomplete-item-content {
    flex: 1;
}

.autocomplete-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #212529;
}

.autocomplete-details {
    font-size: 0.875rem;
    color: #6c757d;
}

.autocomplete-image {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
    background-color: #f8f9fa;
    flex-shrink: 0;
}

.autocomplete-item.selected .autocomplete-name {
    color: #28a745;
}

.species-validation-message {
    display: none;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.species-validation-message.valid {
    color: #28a745;
}

.species-validation-message.warning {
    color: #fd7e14;
}

.species-validation-message.invalid {
    color: #dc3545;
}