.floating-toc-container {
    position: fixed;
    z-index: 9999;
}

.floating-toc-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: fixed;
    z-index: 10000;
}

.floating-toc-button:hover {
    transform: scale(1.1);
}

/* Position classes */
.floating-toc-button.position-bottom-right {
    bottom: 30px;
    right: 30px;
}

.floating-toc-button.position-bottom-left {
    bottom: 30px;
    left: 30px;
}

.floating-toc-button.position-top-right {
    top: 30px;
    right: 30px;
}

.floating-toc-button.position-top-left {
    top: 30px;
    left: 30px;
}

.floating-toc-panel {
    position: fixed;
    right: -100%;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 9999;
}

.floating-toc-container.active .floating-toc-panel {
    right: 0;
}

.floating-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.floating-toc-header h3 {
    margin: 0;
}

.floating-toc-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0 10px;
}

.floating-toc-content {
    padding: 15px;
}

.floating-toc-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.floating-toc-content li {
    margin-bottom: 8px;
}

.floating-toc-content a {
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}

.floating-toc-content a:hover {
    text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 767px) {
    .floating-toc-panel {
        width: 100% !important;
    }
}