﻿/* Botão Flutuante */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #54af54;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .whatsapp-btn img {
        width: 62px;
        height: 62px;
        z-index: 2; /* Garante que o ícone fique acima do pulso */
    }

    .whatsapp-btn:hover {
        transform: scale(1.1); /* Efeito de zoom ao passar o mouse */
    }

/* Efeito Pulsante (CSS Animation) */
.pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #54af54;
    border-radius: 50%;
    z-index: 1;
    animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.chat-box {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 340px;
    height: 500px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
    z-index: 3;
}

/* HEADER */
.chat-header {
    background: linear-gradient(135deg, #54af54, #3d8b3d);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid white;
}

.close-btn {
    margin-left: auto;
    cursor: pointer;
}

/* BODY */
.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f7f7f7;
    display: flex;
    flex-direction: column;
}

/* MENSAGEM BASE */
.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    margin-bottom: 10px;
    font-size: 14px;
    animation: fadeInUp 0.3s ease;
}

/* BOT (ESQUERDA) */
.bot-message {
    align-self: flex-start;
    background: white;
    color: #333;
    border-bottom-left-radius: 5px;
}

/* USUÁRIO (DIREITA) */
.user-message {
    align-self: flex-end;
    background: linear-gradient(135deg, #54af54, #3d8b3d);
    color: white;
    border-bottom-right-radius: 5px;
}

/* OPÇÕES */
.option-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
    align-items: flex-start;
    max-width: 75%;
}

.option-btn {
    background: white;
    border: 1px solid #dcdcdc;
    color: #333;
    padding: 8px 12px;
    border-radius: 18px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

    .option-btn:hover {
        background: #54af54;
        color: white;
        transform: translateY(-1px);
    }



/* DIGITANDO */
.typing {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

    .typing span {
        width: 8px;
        height: 8px;
        background: #999;
        border-radius: 50%;
        animation: blink 1.4s infinite both;
    }

        .typing span:nth-child(2) {
            animation-delay: .2s;
        }

        .typing span:nth-child(3) {
            animation-delay: .4s;
        }

@keyframes blink {
    0% {
        opacity: .2;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: .2;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.hora {
    font-size: 10px;
    opacity: 0.6;
    text-align: right;
    margin-top: 4px;
}


