/* Scroll to Top Button Styles */

#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color, #0d6efd);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    opacity: 0;
    transition: opacity 0.3s, background-color 0.3s, transform 0.3s;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

#scrollToTopBtn:hover {
    background-color: #0b5ed7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #scrollToTopBtn {
        width: 44px;
        height: 44px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    #scrollToTopBtn {
        width: 40px;
        height: 40px;
        font-size: 18px;
        bottom: 15px;
        right: 15px;
        padding: 8px;
    }
}

@media (hover: none) {
    #scrollToTopBtn:active {
        transform: scale(0.95);
        background-color: #0b5ed7;
    }
}