.docs-wrapper{
    display:flex;
    min-height:calc(100vh - 120px);
    background:#ffffff;
}

.docs-sidebar{
    width:320px;
    background:#06132d;
    color:#ffffff;
    overflow-y:auto;
    position:sticky;
    top:100px;
    height:calc(100vh - 100px);
    padding:20px;
}

.docs-search{
    margin-bottom:20px;
}

.docs-search input{
    width:100%;
    padding:12px;
    border:none;
    border-radius:8px;
    font-size:14px;
}

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

.docs-sidebar li{
    margin-bottom:4px;
}

.docs-sidebar a{
    display:block;
    color:#ffffff;
    text-decoration:none;
    padding:10px 12px;
    border-radius:6px;
    transition:0.2s;
}

.docs-sidebar a:hover,
.docs-sidebar a.active{
    background:#1e40af;
}

.docs-content{
    flex:1;
    background:#ffffff;
    overflow:hidden;
}

.doc-tree {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-category {
    margin-bottom: 25px;
}

.main-heading {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

.sub-heading {
    font-size: 15px;
    font-weight: 600;
    color: #8db8ff;
    margin-top: 18px;
    margin-bottom: 10px;
    padding-left: 8px;
    border-left: 3px solid #2b7fff;
}

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

.page-list li {
    margin-bottom: 2px;
}

.page-list a {
    display: block;
    color: #d5dbe6;
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 14px;
    transition: .2s;
}

.page-list a:hover {
    background: rgba(255,255,255,.08);
}

.page-list a.active {
    background: #2b7fff;
    color: #fff;
    font-weight: 600;
}

.main-heading,
.sub-heading{
    display:flex;
    justify-content:space-between;
    align-items:center;
    cursor:pointer;
    user-select:none;
}

.main-heading{
    background:#0b1b4d;
    color:#fff;
    padding:12px 15px;
    margin-top:12px;
    border-radius:6px;
    font-weight:700;
    font-size:16px;
}

.sub-heading{
    background:#1e40af;
    color:#fff;
    padding:10px 12px;
    margin:8px 0;
    border-radius:4px;
    font-size:14px;
    font-weight:600;
}

.toggle-icon{
    font-size:18px;
    font-weight:bold;
}

.main-content.collapsed,
.page-list.collapsed{
    display:none;
}

.page-list{
    margin:0;
    padding-left:15px;
    list-style:none;
}

.page-list li a{
    display:block;
    padding:6px 10px;
    color:#dbeafe;
    text-decoration:none;
}

.page-list li a:hover{
    background:#1e3a8a;
}

.page-list li a.active{
    background:#2563eb;
    border-radius:4px;
    color:#fff;
}

#doc-frame{
    width:100%;
    height:calc(100vh - 120px);
    border:none;
    background:#ffffff;
}

.doc-error{
    padding:40px;
    font-size:18px;
}

@media(max-width:768px){

    .docs-wrapper{
        flex-direction:column;
    }

    .docs-sidebar{
        width:100%;
        position:relative;
        top:0;
        height:auto;
    }

    #doc-frame{
        height:80vh;
    }

}