/* Styles pour le bouton retour mobile */
#back-btn {
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    background-color: var(--bs-body-bg);
    left: 0 !important;
    position: absolute;
}

#back-btn:hover {
    transform: translateY(-1px);
}

#back-btn:active {
    transform: translateY(0);
}

/* Animation d'apparition */
#back-btn.show {
    animation: slideInLeft 0.3s ease-out;
}

#sidebar-btn.pos{
    right:-20px !important;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .navbar-logo-box {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    #back-btn {
        margin-left: 5px;
    }
}

/* Dark mode support */
[data-bs-theme="dark"] #back-btn {
    background: var(--bs-primary);
    color: white;
}

[data-bs-theme="dark"] #back-btn:hover {
    background: var(--bs-primary-dark, #0056b3);
}
