/* ============================================================
   Scroll-to-Top Button
   Mycosoft LogData — public/assets/css/dashboard-css/
   ============================================================ */

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    border-radius: 50%;

    background-color: #0096ff;
    color: #ffffff;
    text-decoration: none;

    box-shadow: 0 4px 14px rgba(0, 150, 255, 0.4);

    /* Versteckt bis JS die Klasse .visible setzt */
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);

    transition:
        opacity        0.3s ease,
        transform      0.3s ease,
        background-color 0.2s ease,
        box-shadow     0.2s ease;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top:hover,
.scroll-top:focus-visible {
    background-color: #007acc;
    box-shadow: 0 6px 20px rgba(0, 150, 255, 0.55);
    color: #ffffff;
    text-decoration: none;
    outline: none;
}

.scroll-top:active {
    transform: translateY(2px) scale(0.96);
    box-shadow: 0 2px 8px rgba(0, 150, 255, 0.3);
}

.scroll-top i {
    font-size: 0.85rem;
    line-height: 1;
}

/* Auf sehr kleinen Screens etwas weiter weg vom Rand */
@media (max-width: 576px) {
    .scroll-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 40px;
        height: 40px;
    }
}