/* css/components/toc.css */
.toc-section {
    margin-top: var(--spacing-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Important for scrolling */
}

.toc-list {
    flex: 1;
    overflow-y: auto;
    padding-right: var(--spacing-sm);
}

.toc-item {
    transition: transform 0.2s, background-color 0.2s;
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.toc-item:hover {
    transform: translateX(2px);
    background-color: rgba(255, 255, 255, 0.03);
}

.toc-num {
    color: var(--primary-color);
    font-family: monospace;
}

.toc-input {
    color: var(--text-color);
    font-weight: 500;
}

.toc-actions {
    opacity: 0.6;
    transition: opacity 0.2s;
}

.toc-item:hover .toc-actions {
    opacity: 1;
}
