/* ===========================================
   FLOATING SIDEBAR - Contact Buttons
   =========================================== */

.floating-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.floating-sidebar-bg {
    display: none;
}

.floating-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px 15px;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.floating-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.floating-btn:hover::before {
    transform: translateX(100%);
}

.floating-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.floating-btn i,
.floating-btn svg,
.floating-btn img {
    font-size: 20px;
    color: white;
    z-index: 1;
    position: relative;
}

/* Zalo Icon specific styling */
.zalo-icon {
    width: 90px;
    height: 90px;
    object-fit: cover;
    display: block;
}

/* Call Button */
.call-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.call-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

/* Mobile: Gộp tất cả nút vào góc trái */
@media (max-width: 768px) {
    .floating-sidebar {
        position: fixed !important;
        left: 20px !important;
        bottom: 20px !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        flex-direction: column !important;
        gap: 10px !important;
        z-index: 10 !important;
    }

    .floating-sidebar-bg {
        display: none;
    }

    .floating-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0;
        background: none;
        border-radius: 0;
    }

    .floating-btn {
        width: 40px;
        height: 40px;
        margin: 0;
    }

    .floating-btn i,
    .floating-btn svg,
    .floating-btn img {
        font-size: 18px;
    }

    .zalo-icon {
        width: 70px;
        height: 70px;
    }

    /* Ẩn mobile call button riêng biệt */
    .mobile-call-btn {
        display: none !important;
    }


    /* Hiển thị tất cả nút trong floating sidebar trên mobile */
    .floating-sidebar .call-btn {
        display: flex !important;
    }
}

/* Desktop: Ẩn mobile call button */
@media (min-width: 769px) {
    .mobile-call-btn {
        display: none !important;
    }
}

/* Facebook Button */
.facebook-btn {
    background: linear-gradient(135deg, #1877F2 0%, #166FE5 100%);
}

.facebook-btn:hover {
    background: linear-gradient(135deg, #166FE5 0%, #1461D1 100%);
}

/* Zalo Button */
.zalo-btn {
    background: white;
}

.zalo-btn:hover {
    background: #f8f9fa;
    border-color: #0056CC;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 104, 255, 0.3);
}

/* Messenger Button */
.messenger-btn {
    background: linear-gradient(135deg, #00B2FF 0%, #0099E6 100%);
}

.messenger-btn:hover {
    background: linear-gradient(135deg, #0099E6 0%, #0080CC 100%);
}

/* Animation for floating effect */
@keyframes float {

    0%,
    100% {
        transform: translateY(-50%);
    }

    50% {
        transform: translateY(-55%);
    }
}

/* Animation chỉ áp dụng trên desktop */
@media (min-width: 769px) {
    .floating-sidebar {
        animation: float 3s ease-in-out infinite;
    }
}