/**
 * CashFlow - Scroll to Top Button
 * כפתור חזרה למעלה מקצועי ומעוצב
 */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.6);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    fill: white;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover svg {
    transform: translateY(-3px);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* RTL Support */
[dir="rtl"] .scroll-to-top {
    right: auto;
    left: 30px;
}

@media (max-width: 768px) {
    [dir="rtl"] .scroll-to-top {
        left: 20px;
    }
}

/* Animation */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(236, 72, 153, 0.6);
    }
}

.scroll-to-top:hover {
    animation: pulse 2s infinite;
}

