/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1030;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 0.75rem;
    border-radius: 50%;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.back-to-top i {
    font-size: 1.75rem;
    line-height: 1;
}

/* Light Mode */
body.light-mode .back-to-top {
    background-color: #560027;
    color: #fff;
    box-shadow: 0 2px 6px rgba(86, 0, 39, 0.3);
}

body.light-mode .back-to-top:hover {
    background-color: #470121;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(86, 0, 39, 0.4);
}

/* Dark Mode */
body.dark-mode .back-to-top {
    background-color: #282c34;
    color: #F2D0A4;
    border: 1px solid rgba(242, 208, 164, 0.3);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode .back-to-top:hover {
    background-color: rgba(242, 208, 164, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 3rem;
        height: 3rem;
    }

    .back-to-top i {
        font-size: 1.5rem;
    }
}

/* Pentru dispozitive foarte mici */
@media (max-width: 576px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 2.75rem;
        height: 2.75rem;
    }

    .back-to-top i {
        font-size: 1.25rem;
    }
}