.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column; /* Changed to column to put top button above WhatsApp */
    gap: 10px;
    z-index: 1000;
}

/* Novo container para o botão direito */
.floating-buttons-right {
    position: fixed;
    left: 20px; /* Posicionado no lado esquerdo */
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Estilos para o botão de martelo */
.hammer-btn {
    background-color: var(--primary-blue);
    color: var(--primary-yellow);
    font-size: 24px;
    border: 2px solid rgba(255, 241, 17, 0.6);
    animation: pulse 2s infinite;
    box-shadow: 0 0 6px rgba(255, 241, 17, 0.3);
}

.hammer-btn:hover {
    box-shadow: 0 0 10px rgba(255, 241, 17, 0.5);
    transform: translateY(-3px);
    border-color: var(--primary-yellow);
}

.whatsapp-container {
    position: relative;
    order: 2;
}

.whatsapp-btn {
    background-color: #25D366; /* Standard WhatsApp green color */
    color: white;
    font-size: 24px;
}

.chat-bubble {
    position: absolute;
    right: 85px;
    bottom: 45px;
    background-color: white;
    padding: 8px 15px;
    border-radius: 20px 20px 5px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    white-space: nowrap;
    animation: chatBubbleMove 4s ease-in-out infinite, fadeIn 0.5s ease-in forwards;
    animation-delay: 8s, 8s;
    opacity: 0;
    color: #333;
}

.chat-bubble::before,
.chat-bubble::after {
    content: '';
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: thoughtBubbles 2s ease-in-out infinite;
}

.chat-bubble::before {
    width: 12px;
    height: 12px;
    right: -20px;
    bottom: 0;
}

.chat-bubble::after {
    width: 8px;
    height: 8px;
    right: -30px;
    bottom: -5px;
}

@keyframes thoughtBubbles {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 1;
    }
    50% {
        transform: scale(1.1) translate(-2px, -2px);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) translate(0, 0);
        opacity: 1;
    }
}

@keyframes chatBubbleMove {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
    100% {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.top-btn {
    background-color: var(--primary-blue);
    color: var(--primary-yellow);
    font-size: 20px;
    border: 2px solid rgba(255, 241, 17, 0.6);
    opacity: 0; /* Start with opacity 0 */
    transform: translateY(20px); /* Start slightly below final position */
    animation: fadeInUp 0.3s ease forwards; /* Animation to fade in and move up */
    order: 1; /* Ensures top button is above WhatsApp */
    box-shadow: 0 0 6px rgba(255, 241, 17, 0.3);
}

.top-btn:hover {
    box-shadow: 0 0 10px rgba(255, 241, 17, 0.5);
    transform: translateY(-3px);
    border-color: var(--primary-yellow);
}

/* Animation for the buttons */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

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

.whatsapp-btn {
    animation: pulse 2s infinite;
}

/* Make buttons responsive on smaller screens */
@media (max-width: 768px) {
    .floating-btn {
        width: 50px;
        height: 50px;
    }
    
    .floating-buttons {
        right: 15px;
        bottom: 15px;
    }
    
    .floating-buttons-right {
        left: 15px;
        bottom: 15px;
    }

    .chat-bubble {
        right: 65px;
        bottom: 8px;
        padding: 6px 12px;
        font-size: 12px;
        animation: pulse 2s infinite;
        max-width: 200px;
        text-align: center;
    }
}
