/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a5490, #2868a8);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top.show:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #2868a8, #357abd);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* RTL Support */
[dir="rtl"] .back-to-top {
    left: auto;
    right: 20px;
}

/* Dark Mode */
[data-theme="dark"] .back-to-top {
    background: linear-gradient(135deg, #4a90e2, #357abd);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

[data-theme="dark"] .back-to-top:hover {
    background: linear-gradient(135deg, #357abd, #2868a8);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 80px;
        left: 15px;
        font-size: 18px;
    }
    
    [dir="rtl"] .back-to-top {
        left: auto;
        right: 15px;
    }
}
