/* botão mensagem */
.button-container-chatbabi {
    position: relative;
    z-index: 9990;
    display: inline-flex;
    overflow: hidden;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(to bottom left, #111, #000);
    box-shadow: 0 4px 10px rgba(52, 211, 153, 0.2);
    cursor: pointer;
    transition: background 0.3s;
}

.button-container-chatbabi:hover {
    background: linear-gradient(to bottom left, #111, rgba(0, 0, 0, 0.5));
}

.button-chatbabi {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    background-color: #111;
    border-radius: 12px;
}

.icon-container-chatbabi {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom right, #34d399, #059669);
    border-radius: 8px;
    /* transition: transform 0.3s; */
    transition: all 0.3s ease-in-out 0s;
    box-shadow: rgba(193, 244, 246, 0.698) 0px 0px 0px 0px;
    animation: 1.2s cubic-bezier(0.8, 0, 0, 1) 0s infinite normal none running pulse;
}

.button:is(:hover, :focus) {
    transform: scale(1.2);
}

@keyframes pulse {
    100% {
        box-shadow: 0 0 0 45px rgba(193, 244, 246, 0);
    }
}

.button-container-chatbabi:hover .icon-container-chatbabi {
    transform: scale(1.1);
}

.icon-container-chatbabi::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(52, 211, 153, 0.5);
    border-radius: 8px;
    filter: blur(6px);
}

.icon-container-chatbabi svg {
    position: relative;
    width: 20px;
    height: 20px;
    color: white;
}

.text-container-chatbabi {
    margin-left: 12px;
    color: white;
}

.text-container-chatbabi span:first-child {
    font-size: 14px;
    font-weight: bold;
}

.text-container-chatbabi span:last-child {
    font-size: 10px;
    color: rgba(52, 211, 153, 0.8);
}

.msg-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: rgb(115 254 0);
    border-radius: 50%;
    font-size: 0.9em;
    font-weight: 700;
    color: rgb(0, 44, 2);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}


@keyframes ping {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }

    75% {
        transform: scale(1);
        opacity: 0;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* janela modal */
#chat-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    height: 400px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 1000;
}

#chat-header {
    background: #003654;
    color: white;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chat-header button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

#chat-iframe {
    width: 100%;
    height: 100%;
}

#chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #007bff;
    color: white;
    padding: 12px 15px;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}

#chat-button:hover {
    background: #0056b3;
}