/**
 * Wiki.js UI/UX Improvements
 * Clean, minimal design with collapsible navigation
 */

/* ============================================
   1. HIDE DUPLICATE PAGE DESCRIPTION BOX AT TOP
   ============================================ */

/* Hide the description box below page title */
.page-header .page-description,
.v-card.pa-5.mb-5,
.overline.pb-2.primary--text,
div[class*="grey--text text--"] {
  /* display: none !important; */
}

/* Pull content up by reducing header padding */
.page-header {
  padding-bottom: 16px !important;
  margin-bottom: 16px !important;
}
.page-header-section{
height: 0 !important;
}
.page-col-content.is-page-header{
display: none !important;
}

.page-toc-card{
  padding-top: 50px !important;
}


/* ============================================
   2. RIGHT NAV (PAGE CONTENTS) - MINIMAL DESIGN
   ============================================ */

/* Remove boxes, shadows, and heavy styling */
.page-col-sd .v-card,
.page-col-sd .v-sheet,
aside .v-card,
aside .v-sheet {
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
}

/* Simplify PAGE CONTENTS header */
.page-col-sd .overline,
aside .overline {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #6b7280 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 8px 0 12px 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
  background: transparent !important;
}

/* Simplify TOC items - remove boxes */
.page-col-sd .v-list,
aside .v-list {
  background: transparent !important;
  padding: 0 !important;
}

.page-col-sd .v-list-item,
aside .v-list-item {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 8px 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid #f3f4f6 !important; /* Thin horizontal line */
  min-height: auto !important;
}

/* Remove default hover effects */
.page-col-sd .v-list-item::before,
aside .v-list-item::before {
  display: none !important;
}

/* Clean hover state */
.page-col-sd .v-list-item:hover,
aside .v-list-item:hover {
  background: #f9fafb !important;
}

/* Active item styling (from scrollspy) */
.page-col-sd .v-list-item.scrollspy-active,
aside .v-list-item.scrollspy-active {
  background-color: #f3f4f6 !important;
  border-left: 3px solid #9ca3af !important;
  padding-left: 12px !important;
}

/* Simplify text */
.page-col-sd .v-list-item__content,
aside .v-list-item__content {
  padding: 0 !important;
}

.page-col-sd .v-list-item__title,
aside .v-list-item__title {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #4b5563 !important;
}

/* Remove LAST EDITED BY box shadows */
.page-col-sd .caption,
aside .caption {
  border-top: 0px solid #e5e7eb !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}


/* ============================================
   3. KEEP BLUE HEADINGS (MATCHES LEFT NAV)
   ============================================ */

/* Main page title - keep blue */
.page-header h1,
h1.page-title {
  color: #1e40af !important;
}

/* Section headings - blue */
h2, .v-content h2 {
  color: #1e40af !important;
  border-bottom: 2px solid #e5e7eb !important;
  padding-bottom: 8px !important;
  margin-top: 32px !important;
  margin-bottom: 16px !important;
}


/* ============================================
   4. LEFT NAV - COLLAPSIBLE SUBSECTIONS STYLING
   ============================================ */

/* Style for expandable parent items */
.custom-wiki-nav-item.has-children > .custom-wiki-nav-link {
  cursor: pointer;
}

/* Collapse icon for parent items */
.nav-expand-icon {
  margin-left: auto;
  transition: transform 0.2s ease;
  font-size: 14px;
  color: #6b7280;
}

/* Rotate icon when expanded */

/* Hide children by default */
.custom-wiki-nav-sublist {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

/* Show children when parent is expanded */
.custom-wiki-nav-item.expanded > .custom-wiki-nav-sublist {
  max-height: 2000px !important; /* Large enough for any content */
}

/* Smooth transition */
.custom-wiki-nav-item {
  transition: all 0.2s ease;
}


/* ============================================
   5. GENERAL CLEANUP
   ============================================ */

/* Remove excessive padding */
.v-content {
  padding-top: 0 !important;
}

/* Cleaner spacing */
.page-col-content {
  padding: 24px 32px !important;
}

/* Remove card shadows throughout */
.v-card {
  box-shadow: none !important;
}

/* Minimal borders */
.v-divider {
  border-color: #e5e7eb !important;
}

