/* ---------------------------------------------------------------------
   VOICE OVERLAY (Google Style)
   --------------------------------------------------------------------- */
.beerloyuz-ai-voice-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    /* Above chat body */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border-radius: 5px;
}

.beerloyuz-ai-voice-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.beerloyuz-ai-voice-icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.beerloyuz-ai-voice-icon-container:hover {
    background: #f7f7f7;
}

.beerloyuz-ai-voice-icon-container svg {
    width: 40px;
    height: 40px;
    color: #ea4335;
    /* Google Red-ish */
    fill: #ea4335;
}

/* Pulsing rings */
.beerloyuz-ai-voice-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(234, 67, 53, 0.1);
    opacity: 0;
    z-index: -1;
}

.beerloyuz-ai-voice-overlay.active .beerloyuz-ai-voice-pulse {
    animation: voicePulse 1.5s infinite;
}

@keyframes voicePulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Processing State Animation */
.beerloyuz-ai-voice-overlay.processing .beerloyuz-ai-voice-pulse {
    animation: processingPulse 1.5s infinite;
    background: rgba(66, 133, 244, 0.2);
    /* Google Blue-ish */
}

.beerloyuz-ai-voice-overlay.processing svg {
    color: #4285f4;
    fill: #4285f4;
    transition: color 0.3s ease, fill 0.3s ease;
}

@keyframes processingPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.3;
    }

    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

.beerloyuz-ai-voice-text {
    margin-top: 40px;
    font-size: 1.2rem;
    color: #5f6368;
    font-weight: 500;
}

.beerloyuz-ai-voice-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #5f6368;
    line-height: 1;
}

.beerloyuz-ai-voice-close:hover {
    color: #202124;
}

/* ---------------------------------------------------------------------
   Microphone Tooltips & Recording States
   --------------------------------------------------------------------- */

/* Recording Pulse (Red Glow) - Applied to the small mic button */
.beerloyuz-mic-recording {
    box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.7);
    animation: micPulseRed 1.5s infinite cubic-bezier(0.66, 0, 0, 1);
    background-color: #fff5f5 !important;
    color: #e53e3e !important;
}

@keyframes micPulseRed {
    to {
        box-shadow: 0 0 0 10px rgba(229, 62, 62, 0);
    }
}

/* Mic Wrapper & Tooltip */
.beerloyuz-mic-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.beerloyuz-mic-tooltip {
    position: absolute;
    text-align: center;
    bottom: 100%;
    right: 0px;
    margin-bottom: 12px;
    background: #e53e3e;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.65rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    z-index: 10;
    text-transform: none !important;
}

.beerloyuz-mic-tooltip.visible {
    opacity: 1;
    transform: translateY(-5px);
}

.beerloyuz-mic-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 4px;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #e53e3e transparent transparent transparent;
}