/* WhatsApp Floating Button Styles */
.whatsapp-float {
    position: fixed;
    width: auto;
    min-width: 60px;
    height: 60px;
    bottom: 20px;
    left: 20px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    outline: none;
    padding: 0 20px;
    gap: 8px;
    white-space: nowrap;
}

.whatsapp-float:hover {
    background-color: #25D366;
    transform: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    color: #FFF;
    text-decoration: none;
}

.whatsapp-float:active {
    transform: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-float:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.3);
}

/* WhatsApp Icon */
.whatsapp-float i {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

/* WhatsApp Text */
.whatsapp-float .whatsapp-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

/* Pulse animation */
.whatsapp-float::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25D366;
    opacity: 0.7;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        min-width: 55px;
        bottom: 15px;
        left: 15px;
        font-size: 12px;
        padding: 0;
        gap: 0;
        border-radius: 50%;
    }
    
    .whatsapp-float i {
        font-size: 20px;
    }
    
    .whatsapp-float .whatsapp-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        min-width: 50px;
        bottom: 10px;
        left: 10px;
        font-size: 11px;
        padding: 0;
        gap: 0;
        border-radius: 50%;
    }
    
    .whatsapp-float i {
        font-size: 18px;
    }
    
    .whatsapp-float .whatsapp-text {
        display: none;
    }
}

/* Ensure button is above other elements */
.whatsapp-float {
    z-index: 9999;
}

/* Hover tooltip effect - DISABLED */
/* .whatsapp-float:hover::after {
    content: 'Hubungi Layanan WhatsApp';
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    animation: fadeInTooltip 0.3s ease forwards;
    pointer-events: none;
}

@keyframes fadeInTooltip {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Tooltip arrow */
.whatsapp-float:hover::before {
    content: '';
    position: absolute;
    right: calc(100% + 5px);
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #333;
    z-index: 10001;
    animation: fadeInTooltip 0.3s ease forwards;
} */

/* Ensure tooltip doesn't interfere with pulse animation */
.whatsapp-float::before {
    animation: pulse 2s infinite;
}

.whatsapp-float:hover::before {
    animation: none;
}
