/* Table of Contents Styles */

body.toc-active {
  overflow: hidden;
}

.content-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 899;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.content-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 992px) {
  .toc-mobile-toggle {
    display: flex;
    z-index: 1001;
  }
  
  .toc-sidebar {
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  
  .toc-sidebar:not(.active) {
    transform: translateX(-100%);
  }
}