.page-toc-container-pro {
  position: relative;
  margin-bottom: 20px;
}
.toc-card-pro {
  border-radius: 0px;
  overflow: hidden;
  box-shadow: none;
  transition: none;
  border: 0px;
  background: transparent;
}
.toc-header-pro {
  padding: 16px 20px 12px;
  border-bottom: 0px;
}
.toc-title-pro {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}
.toc-title-icon {
  font-size: 16px;
}
.toc-search-wrapper {
  padding: 12px 16px;
  border-bottom: 0px;
  position: relative;
}
.toc-search-input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 13px;
  transition: border-color 0.2s ease;
  background: #fff;
  outline: none;
}
.toc-search-input:focus {
  border-color: #0073aa;
  outline: none;
  box-shadow: 0 0 0 1px rgba(0,115,170,0.1);
}
.toc-search-icon {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.5;
  pointer-events: none;
}
.toc-list-wrapper-pro {
  padding: 8px 0;
  max-height: calc(100vh - 250px);
  min-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
}
.toc-list-wrapper-pro::-webkit-scrollbar {
  width: 3px;
}
.toc-list-wrapper-pro::-webkit-scrollbar-track {
  background: transparent;
}
.toc-list-wrapper-pro::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}
.toc-list-wrapper-pro::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}
.toc-tree-pro {
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc-tree-pro li {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.toc-item-pro {
  display: block;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  background: transparent;
  border: 0px;
  text-align: left;
  width: 100%;
  position: relative;
  line-height: 1.4;
}
.toc-item-pro:hover {
  background: rgba(0, 0, 0, 0.02);
}
.toc-item-pro.current {
  font-weight: 600;
  background: transparent;
}
.toc-item-pro.current::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #0073aa;
}
.toc-level-1-pro .toc-item-pro {
  padding: 12px 20px 12px 20px;
  font-size: 16px;
  font-weight: 700;
}
.toc-level-2-pro .toc-item-pro {
  padding: 10px 20px 10px 36px;
  font-size: 14.5px;
  font-weight: 600;
}
.toc-level-3-pro .toc-item-pro {
  padding: 8px 20px 8px 52px;
  font-size: 13.5px;
  font-weight: 500;
}
.toc-level-4-pro .toc-item-pro {
  padding: 7px 20px 7px 68px;
  font-size: 12.5px;
}
.toc-level-5-pro .toc-item-pro {
  padding: 6px 20px 6px 84px;
  font-size: 11.5px;
  opacity: 0.85;
}
.toc-level-6-pro .toc-item-pro {
  padding: 5px 20px 5px 100px;
  font-size: 10.5px;
  opacity: 0.75;
}
.toc-toggle-pro {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 3px;
  transition: background-color 0.2s ease;
  z-index: 10;
}
.toc-toggle-pro:hover {
  background: rgba(0, 0, 0, 0.05);
}
.toc-toggle-pro::after {
  content: "▼";
  font-size: 10px;
  transition: transform 0.2s ease;
}
.toc-toggle-pro.collapsed::after {
  transform: rotate(-90deg);
}
.toc-sub-pro {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.toc-sub-pro.collapsed {
  max-height: 0 !important;
}
.toc-stats-pro {
  padding: 12px 20px 16px;
  font-size: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.toc-stats-icon {
  font-size: 14px;
  opacity: 0.6;
}
.toc-stats-text {
  margin-left: 8px;
  flex: 1;
}
.toc-stats-count {
  font-weight: 600;
}
.toc-progress-bar {
  flex: 1;
  height: 2px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-left: 12px;
  min-width: 60px;
}
.toc-progress-fill {
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
  background: #0073aa;
  opacity: 0.6;
}
.toc-back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 999;
  background: #0073aa;
  border: 0px;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
}
.toc-back-to-top.show {
  opacity: 1;
  visibility: visible;
}
.toc-back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background: #005a87;
}
.toc-highlight {
  animation: tocPulse 0.6s ease;
}
@keyframes tocPulse {
  0%, 100% {
  background: transparent;
}
50% {
  background: rgba(0, 115, 170, 0.1);
}
}
.toc-panel-heading {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}
html {
  scroll-behavior: smooth;
}
.page-toc-shortcode-wrapper {
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .toc-level-2-pro .toc-item-pro {
  padding-left: 28px;
}
.toc-level-3-pro .toc-item-pro {
  padding-left: 40px;
}
.toc-level-4-pro .toc-item-pro {
  padding-left: 52px;
}
.toc-level-5-pro .toc-item-pro {
  padding-left: 64px;
}
.toc-level-6-pro .toc-item-pro {
  padding-left: 76px;
}
.toc-list-wrapper-pro {
  max-height: 400px;
}
.toc-back-to-top {
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  font-size: 18px;
}
.toc-header-pro {
  padding: 12px 16px;
}
.toc-stats-pro {
  padding: 10px 16px 14px;
}
.toc-stats-text {
  font-size: 11px;
}
}