/* CSS cho GIF Sidebar Button */
#gsb-gif-button {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    display: block !important;
}

#gsb-gif-button:hover {
    transform: translateY(-50%) scale(1.1);
    filter: brightness(1.1);
}

#gsb-gif-button img {
    /* Kích thước sẽ được set bởi JavaScript, chỉ để fallback */
    max-width: 60px;
    max-height: 60px;
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: none;
    transition: all 0.3s ease;
    display: block;
}

#gsb-gif-button img:hover {
    box-shadow: none;
}

/* Responsive cho mobile */
@media screen and (max-width: 768px) {
    #gsb-gif-button {
        right: 10px;
        top: auto;
        bottom: 80px;
        transform: none;
    }
    
    #gsb-gif-button:hover {
        transform: scale(1.1);
    }
    
    #gsb-gif-button img {
        max-width: 50px;
        max-height: 50px;
        width: 50px;
        height: 50px;
    }
}

/* Vị trí bên trái nếu được chọn */
body.gsb-left #gsb-gif-button {
    left: 20px;
    right: auto;
}

@media screen and (max-width: 768px) {
    body.gsb-left #gsb-gif-button {
        left: 10px;
        right: auto;
    }
}

/* Animation khi xuất hiện */
#gsb-gif-button.gsb-animate-in {
    animation: gsbSlideIn 0.5s ease-out;
}

@keyframes gsbSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Animation cho vị trí bên trái */
body.gsb-left #gsb-gif-button.gsb-animate-in {
    animation: gsbSlideInLeft 0.5s ease-out;
}

@keyframes gsbSlideInLeft {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Ẩn button khi in trang */
@media print {
    #gsb-gif-button {
        display: none !important;
    }
}
