.toc-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 100px; /* Ajuste baseado na altura do seu header */
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* Regras para mobile */
@media (max-width: 991.98px) {
    .toc-container {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 20px;
    }
}

.toc-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    padding-bottom: 10px;
    z-index: 1;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 8px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.toc-item a {
    color: #8dc63f;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 10px;
    border-radius: 4px;
}

.toc-item a:hover {
    color: #8dc63f;
    background-color: rgba(0,123,255,0.1);
}

.toc-item.active a {
    color: #fff;
    background-color: #8dc63f;
    font-weight: 600;
}

.toc-level-2 {
}

.toc-level-3 {
}

/* Scrollbar personalizada */
.toc-container::-webkit-scrollbar {
    width: 6px;
}

.toc-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.toc-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.toc-container::-webkit-scrollbar-thumb:hover {
    background: #555;
} 