/* Left Sidebar - Navigation */
.sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    padding: 0;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 100;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 101;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header-left {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
}

.sidebar-header .logo {
    height: 24px;
    width: auto;
    display: block;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.sidebar-header h1 {
    margin: 0;
    padding: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.sidebar-header h1 .api-text {
    margin: 0;
    padding: 0;
    margin-left: 0;
    color: var(--link-color);
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
}

.sidebar-section {
    margin: 0;
    padding: 0;
}

.sidebar-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    padding: 16px 20px 8px;
    margin: 0;
    transition: color 0.3s ease;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-section-title::after {
    content: '▼';
    font-size: 9px;
    transition: transform 0.2s ease;
    color: var(--text-quaternary);
    margin-left: 8px;
}

.sidebar-section.collapsed .sidebar-section-title::after {
    transform: rotate(-90deg);
}

.sidebar-section.collapsed .sidebar-nav {
    display: none;
}

.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: block;
    padding: 8px 20px;
    color: var(--text-quaternary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.15s;
    border-left: 2px solid transparent;
}

.sidebar-nav a:hover {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.sidebar-nav a.active {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-left-color: var(--active-border);
    font-weight: 500;
}

.endpoint-submenu {
    margin-left: 20px;
    margin-top: 4px;
    list-style: none;
    padding: 0;
    position: relative;
    z-index: 1;
}

.endpoint-submenu-link {
    display: block;
    padding: 6px 20px 6px 40px;
    color: #425466;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s ease;
    cursor: pointer !important;
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    user-select: none;
    line-height: 1.5;
    border-left: 2px solid transparent;
}

.endpoint-submenu-link:hover {
    background: rgba(0, 102, 204, 0.05);
    color: #0066cc;
    border-left-color: #0066cc;
    padding-left: 38px;
}

.endpoint-submenu-link:active {
    background: rgba(0, 102, 204, 0.1);
}

.endpoint-submenu-link span {
    pointer-events: none;
}

.endpoint-submenu {
    pointer-events: auto !important;
    z-index: 10;
    position: relative;
}

.endpoint-submenu li {
    pointer-events: auto !important;
    position: relative;
    cursor: pointer;
}

/* Hide method badges in submenu - show only descriptions */
.endpoint-submenu .endpoint-method {