.autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.autocomplete-wrapper input {
    width: 100%;
    padding: 8px 32px 8px 8px;
    box-sizing: border-box;
}

.spinner {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.autocomplete-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ccc;
    background: #fff;
    z-index: 999;
}

.autocomplete-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.autocomplete-item:hover {
    background: #f0f0f0;
}

.item-main {
    font-weight: bold;
}

.item-sub {
    opacity: 0.6;
    font-size: 0.9em;
    margin-left: 8px;
    flex-grow: 1;
}

.item-type {
    font-size: 0.8em;
    opacity: 0.8;
    white-space: nowrap;
    margin-left: 8px;
}
