/* Prevent the page from ever scrolling horizontally. */
html, body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

.sidebar-toggle-btn,
#sidebar-backdrop {
    display: none;
}

@media (max-width: 768px) {
    .app-sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1050;
        width: 85% !important;
        max-width: 320px;
        flex: none !important;
        background: #fff;
        overflow-y: auto;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
        transform: translateX(-100%);
        transition: transform 0.25s ease-in-out;
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .sidebar-toggle-btn {
        display: block;
        position: fixed;
        top: 0.75rem;
        left: 0.75rem;
        z-index: 1060;
        width: 2.5rem;
        height: 2.5rem;
        border: none;
        border-radius: 0.375rem;
        background: #ffffff;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
        font-size: 1.25rem;
        line-height: 1;
    }

    #sidebar-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1040;
    }

    body.sidebar-open #sidebar-backdrop {
        display: block;
    }

    .page-content {
        padding: 0.75rem !important;
        margin-top: 3rem;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .rc-slider-mark-text {
        font-size: 9px !important;
    }
}
