.microphone {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
    position: relative;
}

.microphone.is-listening {
    background: #f8d7da;
    animation: mic-pulse 1s infinite;
}

.microphone.is-listening::after {
    content: '';
    position: absolute;
    inset: -10px;
    border: 3px solid rgba(220, 53, 69, 0.35);
    border-radius: 50%;
    animation: mic-ring 1.2s infinite;
}

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

@keyframes mic-ring {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}
