/* Основные стили бокового меню */
#simple-toc-sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 250px;
    max-height: 77vh;
    background: rgba(43, 42, 42, 0.5);
    backdrop-filter: blur(5px);
    padding: 10px 12px;
    border-radius: 6px;
    z-index: 100;
    transition: all 0.3s ease;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

#simple-toc-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#simple-toc-sidebar li {
    margin-bottom: 2px;
}

#simple-toc-sidebar li a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 4px 0;
    font-size: 1rem;
    transition: all 0.2s ease;
    line-height: 1.3;
}

#simple-toc-sidebar li a:hover {
    color: white;
    padding-left: 5px;
}

#simple-toc-sidebar li a.active {
    color: #369ef7;
  
    border-left: 2px solid #369ef7;
    padding-left: 8px;
    margin-left: -2px;
}
#simple-toc-sidebar::-webkit-scrollbar {
    width: 8px; /* Ширина полосы прокрутки */
}

#simple-toc-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05); /* Цвет трека */
    border-radius: 4px;
}

#simple-toc-sidebar::-webkit-scrollbar-thumb {
    background: #369ef7; /* Цвет бегунка */
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#simple-toc-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(10, 126, 140, 0.8); /* Цвет при наведении */
}

/* Для Firefox */
#simple-toc-sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(61, 165, 245, 0.837) rgba(255, 255, 255, 0.05);
}

/* Адаптация для мобильных */
@media (max-width: 1800px) {
    #simple-toc-sidebar {
        display: none !important;
    }
}