/* Autocomplete Container */
.ac_results { 
    padding: 0px; 
    border: 1px solid #ddd; 
    background-color: #fff; 
    overflow: hidden; 
    z-index: 99999999999;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    animation: fadeInDown 0.2s ease-out;
}

/* Fade in animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Results list */
.ac_results ul { 
    width: 100%; 
    list-style-position: outside; 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

/* Individual result items */
.ac_results li { 
    margin: 0px; 
    padding: 12px 16px; 
    cursor: pointer; 
    display: block; 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; 
    font-size: 14px; 
    line-height: 1.4; 
    overflow: hidden;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.15s ease;
    position: relative;
}

/* Remove border from last item */
.ac_results li:last-child {
    border-bottom: none;
}

/* Hover state */
.ac_results li:hover { 
    background-color: #f8f9fa;
    transform: translateX(2px);
}

/* Selected state */
.ac_results li.selected { 
    background-color: #2196f3;
    color: white;
    transform: translateX(4px);
}

/* Loading state */
.ac_loading { 
    background: white url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEwIDNWN00xMCAxM1YxN00zIDEwSDdNMTMgMTBIMTciIHN0cm9rZT0iIzk5OSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPGFuaW1hdGVUcmFuc2Zvcm0gYXR0cmlidXRlTmFtZT0idHJhbnNmb3JtIiB0eXBlPSJyb3RhdGUiIGR1cj0iMXMiIHZhbHVlcz0iMCAxMCAxMDszNjAgMTAgMTAiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIi8+Cjwvc3ZnPg==') right 12px center no-repeat;
    background-size: 16px 16px;
}

/* Empty state */
.ac_results .ac_no_results {
    padding: 16px;
    text-align: center;
    color: #999;
    font-style: italic;
    font-size: 13px;
}

/* Scrollbar styling for webkit browsers */
.ac_results::-webkit-scrollbar {
    width: 6px;
}

.ac_results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.ac_results::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.ac_results::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}