.docs-sidebar {
    position: sticky;
    left: 0;
    top: 0;
    max-height: 90vh;
    background: #FFFFFF;
    overflow-y: auto;
    /* overflow-x: hidden; */
    width: 400px;
    z-index: 1;
    border-right: 1px solid #CFCFCF;
}
.sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, .1)
}
.sidebar-title {
    word-break: break-word;
    font-size: 18px;
    margin: auto;
    font-weight: 600;
    height: 45px;
    width: 90%;
}
.sidebar-toggle {
    display: none;
    background: 0 0;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer
}
.sidebar-nav {
    position: relative;
    margin-top: 16px;
}  

.sidebar-divider {
    box-shadow: 0 0 0 .5px #ABB4C2;
    width: 90%;
    margin: auto;
    opacity: 80%;
}

#main-menu {
    list-style-type: none;
    padding: 0;
    margin: 0;
    background-color: #fff;
}

#main-menu a {
    font-size: 13px;
}

/* Individual Tree Items (Folders and Requests) */
.tree-items,
.nested-tree-items li {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.tree-items > a,
.nested-tree-items li > a {
    display: block;
    text-decoration: none;
    color: #333;
    white-space: normal;       
    word-wrap: break-word;     
    overflow-wrap: break-word; 
    box-sizing: border-box;    
    width: 100%;      
    padding: 5px;    
    border-left: 2.5px solid transparent;
}

#main-menu  .raw-request a {
    display: block;
    text-decoration: none;
    color: #333;
    white-space: normal;       
    word-wrap: break-word;     
    overflow-wrap: break-word; 
    box-sizing: border-box;    
    width: 100%;      
    padding: 5px;    
    border-left: 2.5px solid transparent;
}

.tree-items > a:hover,
.nested-tree-items li > a:hover {
    background-color: rgba(37, 45, 56, 0.08); /* 80% opacity */
}


#main-menu  .raw-request a:hover {
    background-color: rgba(37, 45, 56, 0.08); /* 80% opacity */
}
/* Indentation for nested items */
.nested-tree-items {
    display: none !important;
}

.tree-items.expanded > .nested-tree-items {
    display: block !important;
}

/* Folder Icon (for expandable items) */
.tree-items > a {
    position: relative;
    cursor: pointer;
    display: block;
}

/* Active State Styling */
.tree-items > a.active {
    border-left-color: #2e78ff;
    font-weight: 800;
    background-color: #dee5f3;
}

/* Active State Styling */
.nested-tree-items li a.active {
    border-left-color: #2e78ff;
    background-color: #dee5f3;
    font-weight: 800;
}

#main-menu .raw-request a.active {
    border-left-color: #2e78ff;
    background-color: #dee5f3;
    font-weight: 800;
} 

/* The carrets showing next to the text label */
.tree-items > a::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url(./images/chevron-right.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    margin-right: 8px;
    margin-top: -2px;  
}

.tree-items.expanded > a::before {
    background-image: url(./images/chevron-down.svg);
}

/* COLORS FOR THE BADGES */
.GET {
    background-color: #00822B;
    padding: 4px;
    color: white;
    border-radius: 5px;
    margin: 4px;
}

.POST {
    background-color: #D18D04;
    padding: 4px;
    color: white;
    border-radius: 5px;
    margin: 4px;
}

.PATCH {
    background-color: #6E2AD4;
    padding: 4px;
    color: white;
    border-radius: 5px;
    margin: 4px;
}

.PUT {
    background-color: #0A44AD;
    padding: 4px;
    color: white;
    border-radius: 5px;
    margin: 4px;
    
}

.DELETE {
    background-color: #911A1A;
    padding: 4px;
    color: white;
    border-radius: 5px;
    margin: 4px;
}

.status-badge.status-200,
.status-badge.status-201 {
    background: #d4edda;
    color: #155724
}

.status-badge.status-400,
.status-badge.status-401,
.status-badge.status-403,
.status-badge.status-404 {
    background: #fff3cd;
    color: #856404
}

.status-badge.status-500,
.status-badge.status-502,
.status-badge.status-503 {
    background: #f8d7da;
    color: #721c24
}