﻿.scroll-top {
    position: fixed;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    transition: opacity 0.3s ease, transform 0.3s ease, bottom 0.6s ease, display 0.5s ease;
    z-index: 2;
}

    .scroll-top:hover {
        background-color: #0056b3;
    }

    .scroll-top.show {
        opacity: 1;
        transform: scale(1);
    }

    .scroll-top.hide {
        bottom: -100px!important;
        opacity: 0;
        transform: scale(0.8);
    }

html[data-bs-theme="light"] .scroll-top {
    background-color: #e6e6e6;
    color: #121416;
}

html[data-bs-theme="dark"] .scroll-top {
    background-color: #121416;
    color: #e6e6e6;
}

html:has(#layoutFooter.footer-hidden) .scroll-top {
    bottom: 15px;
}

html:not(:has(#layoutFooter.footer-hidden)) .scroll-top {
    bottom: 75px;
}