/**
 * Page Contents Scrollspy Styles
 * Light grey background with smooth transitions for active sections
 */

/* Active TOC item - light grey background */
.v-list-item.theme--light.scrollspy-active {
  background-color: #f3f4f6 !important;
  border-left: 3px solid #9ca3af !important;
  transition: all 0.2s ease !important;
}

/* Active text color - slightly darker grey for contrast */
.v-list-item.scrollspy-active,
.v-list-item.scrollspy-active * {
  color: #fff !important;
  font-weight: 500 !important;
}

.v-list-item.scrollspy-active .v-list-item__title{
  color: #000 !important;
}


/* Non-active items - default styling with transparent border */
.v-list-item:not(.scrollspy-active) {
  color: #6b7280 !important;
  border-left: 3px solid transparent !important;
  transition: all 0.2s ease !important;
}

/* Hover state for non-active items - very light grey */
.v-list-item:not(.scrollspy-active):hover {
  background-color: #f9fafb !important;
}

/* Keep active state styling on hover - same light grey */
.v-list-item.scrollspy-active:hover {
  background-color: #f3f4f6 !important;
}

/* Smooth fade-in animation when section becomes active */
@keyframes fadeIn {
  from {
    opacity: 0.7;
  }
  to {
    opacity: 1;
  }
}

.v-list-item.scrollspy-active {
  animation: fadeIn 0.3s ease;
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Make sure the sidebar is scrollable */
.page-col-sd,
aside[class*="page-col"] {
  overflow-y: auto !important;
  scroll-behavior: smooth !important;
}

/* Subtle left border effect for active item */
.v-list-item.scrollspy-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #9ca3af, #6b7280);
  z-index: 1;
}

/* Ensure v-list-item has relative positioning for ::before pseudo-element */
.v-list-item {
  position: relative;
}
