#content-wrapper {
    position: relative;
    width: 100%;
}

#simple-sticky-toc {
    position: absolute;
    top: 0;
    left: -50%;
    width: 220px;
    z-index: 10;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin: 0;
    padding: 15px;
}

.simple-sticky-toc-wrapper  {
    position: sticky;
    top: 20px;
}

.sstoc-toggle {
    background-color: transparent;
    border: none;
    outline: none;
    padding: 0;
    font-size: 18px;
}

.sstoc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sstoc-list li a {
    text-decoration: none;
    color: #0073aa;
    font-size: 14px;
    white-space: wrap;
    position: relative;
}

.sstoc-list li a.active:before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -15px;
    color: #0073aa;
    width: 3px;
    height: 100%;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    background-color: #0073aa;
}

.sstoc-list a.active {
    font-weight: bold;
    color: #000;
}

.sstoc-list li a:hover {
    text-decoration: underline;
}

.sstoc-list ul {
    padding-left: 1em;
    margin: 0;
}

.sstoc-list ul li ul {
    margin: 0;
    padding: 0;
}

.sstoc-list li {
    list-style: none;
}

.sstoc-list>li>ul {
    margin: 15px 0 0 0;
    padding: 0 15px;
    border-left: 1px solid #9dbbfb;
}

/* RTL support */
body.rtl #simple-sticky-toc {
    direction: rtl;
    text-align: right;
}

body.rtl .sstoc-list {
    flex-direction: row-reverse;
}

body.rtl .sstoc-list ul {
    padding-right: 1em;
    padding-left: 0;
}

/* Mobile styles */
@media (max-width: 767px) {
    #simple-sticky-toc {
        position: sticky;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        width: 100%;
    }

    .sstoc-toggle {
        display: block;
        width: 100%;
        padding: 10px;
        background: #0073aa;
        color: #fff;
        border: none;
        font-size: 16px;
        cursor: pointer;
    }

    .sstoc-list {
        display: none;
        margin-top: 10px;
    }

    .sstoc-list.open {
        display: block;
    }

    #sstoc-wrapper {
        display: block;
    }

    #sstoc-content {
        padding: 0;
    }

    h1[id^="toc-"],
    h2[id^="toc-"],
    h3[id^="toc-"],
    h4[id^="toc-"],
    h5[id^="toc-"],
    h6[id^="toc-"] {
        scroll-margin-top: 60px;
    }
}