.assistant {
    position: fixed;
    bottom: 50px;
    right: -100px;
    z-index: 1000;
    width: 500px;
    height: 500px;
    cursor: pointer;
    margin-bottom: 0%;
    transition: transform 0.3s ease;
}

.assistant:hover {
    transform: scale(1.05);
}

.assistant img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.2s;
}

/* Fala do assistente */
.assistant-speech {
    position: absolute;
    left: 100px;
    bottom: 90%;
    right: 0;
    background: white;
    padding: 12px 18px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    max-width: 220px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1001;
}

.assistant-speech.active {
    opacity: 1;
    visibility: visible;
}

.assistant-speech::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px;
    border-width: 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

/* Animação de boca (sprites) */
.assistant-mouth {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
    background-image: url('/imagens/mouth-sprites.png'); /* sprite sheet da boca */
    background-size: cover;
    animation: mouthMove 0.3s steps(2) infinite;
}

@keyframes mouthMove {
    0% { background-position: 0 0; }
    100% { background-position: -80px 0; } /* ajusta de acordo com o número de sprites */
}