@media (max-width: 768px) {
    :root {
        --mobile-header-height: 56px;
    }

    /* Mobile menu toggle button */
    #mobile-menu-toggle {
        top: 0.5rem;
        right: 1rem;
        z-index: 1040;
        font-size: 1.5rem;
        color: var(--text-color);
        padding: 0.25rem 0.5rem;
        line-height: 1;
    }

    /* Sidebar adjustments for mobile */
    .mobile-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 100% !important;
        max-width: 320px;
        z-index: 1035;
        background: var(--sidebar-bg);
    }

    .mobile-sidebar.show {
        transform: translateX(0);
    }

    /* Main content adjustments */
    main {
        margin-left: 0 !important;
        width: 100% !important;
        padding-top: calc(var(--mobile-header-height) + 1rem);
    }

    /* Category header adjustments */
    .category-header {
        padding: 0 0.5rem;
    }

    /* Endpoint adjustments */
    .endpoint-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .endpoint-header > div {
        flex-direction: column;
        width: 100%;
    }

    /* Override vertical methods for mobile view */
    .endpoint-methods {
        flex-direction: row !important;  /* Force horizontal layout */
        flex-wrap: wrap;
        width: 100%;
        gap: 0.375rem;
        margin-bottom: 0.5rem;
        order: -1; /* Move methods above the endpoint path */
    }

    .method {
        display: inline-block !important;  /* Force inline display */
        font-size: 0.625rem;
        min-width: 45px;
    }

    .endpoint-path {
        width: 100%;
    }

    .endpoint-path code {
        font-size: 0.75rem;
        padding: 0.25rem 0;
    }

    /* Table adjustments */
    .table-responsive {
        margin: 0 -1rem;
        padding: 0 1rem;
    }

    /* Modal backdrop for sidebar */
    .mobile-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1034;
    }

    .mobile-backdrop.show {
        display: block;
    }
}
/* ...end of css ... */