/* Mobile Navigation Styles */

.mobile-nav-wrapper {
    display: none;
}

.mobile-enabled .mobile-nav-wrapper {
    display: none;
}

@media (max-width: 767.98px) {
    .mobile-enabled .mobile-nav-wrapper {
        display: block;
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 1040;
    }

    .mobile-nav-toggle {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--bs-primary);
        color: white;
        border: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
    }

    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1050;
    }

    .mobile-nav-panel {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 80%;
        max-width: 320px;
        background: var(--bs-body-bg, #fff);
        z-index: 1060;
        overflow-y: auto;
        box-shadow: 2px 0 8px rgba(0,0,0,0.2);
        animation: slideIn 0.3s ease-out;
        display: flex;
        flex-direction: column;
    }

    .mobile-nav-panel .bookshelf-nav-panel {
        flex: 1;
        overflow-y: auto;
    }

    .mobile-nav-panel .bookshelf-nav-panel-buttons {
        display: none !important;
    }

    @keyframes slideIn {
        from { transform: translateX(-100%); }
        to { transform: translateX(0); }
    }
}
