﻿.typeahead-container {
    position: relative;
    margin-bottom: 30px;
}

.typeahead-input {
    width: 100%;
    padding: 16px 50px 16px 10px;
    border: 2px solid #e1e5e9;
    border-radius: 2px;
    font-size: 16px;
    background: #f8fafc;
    transition: all 0.3s ease;
    outline: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

    .typeahead-input:focus {
        border-color: #667eea;
        background: white;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.typeahead-search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.typeahead-input:focus + .typeahead-search-icon,
.typeahead-container:focus-within .typeahead-search-icon {
    color: #667eea;
}

.typeahead-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 4px;
}

.typeahead-item {
    padding: 3px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

    .typeahead-item:last-child {
        border-bottom: none;
    }

    .typeahead-item:hover,
    .typeahead-item.typeahead-highlighted {
        background: #f8fafc;
        color: #667eea;
    }

    .typeahead-item.typeahead-highlighted {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: white;
    }

.typeahead-item-icon {
    margin-right: 12px;
    opacity: 0.7;
}

.typeahead-no-results {
    padding: 20px;
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.typeahead-loading {
    padding: 20px;
    text-align: center;
    color: #94a3b8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

    .typeahead-loading::after {
        content: '';
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 2px solid #e1e5e9;
        border-top-color: #667eea;
        border-radius: 50%;
        animation: typeahead-spin 1s linear infinite;
        margin-left: 10px;
    }

.typeahead-highlight {
    text-decoration: underline;
}

@keyframes typeahead-spin {
    to {
        transform: rotate(360deg);
    }
}