.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #efefef;
    color: rgb(0, 0, 0);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 20px;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: linear-gradient(to right, #1a4b91, #2aa4f8);
    color: rgb(255, 255, 255);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 44px;
        height: 44px;
        font-size: 18px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 10px;
        right: 10px;
    }
    
    .scroll-to-top:hover {
        transform: none;
    }
}