.voice-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

#voice-search-mic {
    cursor: pointer;
    font-size: 20px;
    color: #888;
    margin-left: 10px; /* Position next to the search input */
    z-index: 10;
    transition: color 0.3s ease;
}

#voice-search-mic:hover {
    color: #333;
}

#voice-search-mic.listening {
    color: #d90000;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
