/* Search Autocomplete Styles */
.autocomplete-items {
    position: absolute;
    border: 1px solid #e1e4e8;
    border-top: none;
    z-index: 1000;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: fadeIn 0.2s ease-in-out;
}

.autocomplete-item {
    padding: 12px 20px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #f0f2f5;
    display: flex;
    justify-content: flex-start;
    /* Changed from space-between */
    align-items: center;
    transition: background-color 0.15s ease;
    font-size: 0.95rem;
    color: #1e2e3e;
    gap: 10px;
    /* Optional: adds space between text and badge */
}

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

.autocomplete-item:hover,
.autocomplete-active {
    background-color: #f8fafc !important;
}

.autocomplete-highlight {
    font-weight: 700;
    color: var(--primary, #52BBAA);
    /* Fallback to teal if var not defined */
}

.autocomplete-type {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    background-color: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: auto;
    /* Push to the right */
}

/* Specific icon styles if needed */
.autocomplete-icon {
    margin-right: 10px;
    color: #cbd5e1;
    width: 16px;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}