.toc-container {
    background: linear-gradient(135deg, #FFF9FA 0%, #FFF5F7 100%);
    border: 1px solid #FFE4E8;
    border-left: 4px solid #FF6B81;
    border-radius: 14px;
    padding: 16px 20px;
    margin: 25px 0;
    width: 100%;
    box-shadow: 0 4px 20px rgba(255, 107, 129, 0.05);
    box-sizing: border-box;
}

.toc-container p.toc_title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    color: #1E1220;
    margin-bottom: 0 !important;
    padding-bottom: 0;
}

.toc-container p.toc_title .fa-list-ol,
.toc-container p.toc_title .fa-list-ul,
.toc-container p.toc_title i {
    color: #FF6B81;
    margin-right: 8px;
    font-size: 17px;
}

.toc-container span.toc_toggle {
    font-size: 13px;
    font-weight: 500;
}

.toc-container span.toc_toggle a {
    color: #E04861;
    background: #FFE8EC;
    padding: 3px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
}

.toc-container span.toc_toggle a:hover {
    background: #FF6B81;
    color: #FFFFFF;
}

.toc-container span.toc_toggle .d-none {
    display: none !important;
}

.toc-container > ul {
    margin-top: 14px;
    margin-bottom: 0;
    padding-left: 8px;
    max-height: 380px;
    overflow-y: auto;
    border-top: 1px solid #FFE4E8;
    padding-top: 12px;
}

.toc-container > ul::-webkit-scrollbar {
    width: 5px;
}

.toc-container > ul::-webkit-scrollbar-thumb {
    background: #FFB8C4;
    border-radius: 10px;
}

.toc-container ul {
    list-style: none;
    padding-left: 0;
}

.toc-container ul li {
    margin-bottom: 7px;
    line-height: 1.5;
}

.toc-container ul li a {
    color: #374151;
    font-size: 14.5px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 2px 0;
}

.toc-container ul li a:hover,
.toc-container ul li a.active {
    color: #E04861 !important;
    font-weight: 600;
    padding-left: 6px;
}

.toc-container ul ul {
    padding-left: 18px;
    margin-top: 4px;
    border-left: 2px solid #FFE4E8;
}

.toc-container ul ul li a {
    font-size: 13.5px;
    color: #64748B;
}

#toc-fixed {
    position: fixed;
    width: 280px;
    height: 100%;
    left: 0;
    top: 0;
    bottom: 0;
    overflow: auto;
    z-index: 1040;
}

#toc-fixed > ul {
    max-height: unset;
    height: calc(100vh - 80px);
}
