/* Floating Buttons CSS */

/* WhatsApp Floating Button */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: float 3s ease-in-out infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    text-decoration: none;
}

.floating-whatsapp svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* WhatsApp tooltip */
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-left-color: #333;
}

.floating-whatsapp:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Call Floating Button */
.floating-call {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 9999;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: float 3s ease-in-out infinite 0.5s;
}

.floating-call:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    text-decoration: none;
}

.floating-call svg {
    width: 24px;
    height: 24px;
    fill: white;
}

/* Call tooltip */
.call-tooltip {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.call-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-left-color: #333;
}

.floating-call:hover .call-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .floating-whatsapp {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }
    
    .floating-whatsapp svg {
        width: 28px;
        height: 28px;
    }
    
    .floating-call {
        width: 45px;
        height: 45px;
        bottom: 80px;
        right: 15px;
    }
    
    .floating-call svg {
        width: 22px;
        height: 22px;
    }
    
    .whatsapp-tooltip,
    .call-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .floating-whatsapp {
        width: 50px;
        height: 50px;
    }
    
    .floating-whatsapp svg {
        width: 26px;
        height: 26px;
    }
    
    .floating-call {
        width: 42px;
        height: 42px;
        bottom: 75px;
    }
    
    .floating-call svg {
        width: 20px;
        height: 20px;
    }
}

/* Back to top button positioning adjustment */
#backToTop {
    bottom: 170px !important; /* Move above floating buttons */
    right: 20px !important;
    z-index: 9998 !important; /* Below floating buttons */
}

@media (max-width: 768px) {
    #backToTop {
        bottom: 150px !important;
    }
}

/* Hide buttons on print */
@media print {
    .floating-whatsapp,
    .floating-call {
        display: none !important;
    }
}