/* Sidebar container */
.sidebar {
    width: 380px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin-left: 15px;
}

.sidebar-custom ul.collapsed {
  display: none;
}

/* Logo styling */
.sidebar .sidebar-logo {
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.sidebar .sidebar-logo img {
    max-width: 70%;
    border-radius: 10px;
}

/* Remove default docsify sidebar styling */
.sidebar-nav {
    padding: 0 !important;
}

/* Main sidebar list - table-like container */
.sidebar ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #e0e0e0;
    border-top: none;
}

.sidebar > ul {
    border-top: 1px solid #e0e0e0;
}

/* Each list item is a table row */
.sidebar li {
    margin: 0 !important;
    border-bottom: 1px solid #e0e0e0;
    background: white;
    font-size: 18px;
}

.sidebar li:last-child {
    border-bottom: none;
}

/* Base link and text styling */
.sidebar a, .sidebar strong {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    font-size: 18px;
    line-height: 1.4;
    margin: 0;
    border: none;
    background: white;
    position: relative;
}

/* Remove docsify default link styling */
.sidebar a:hover {
    text-decoration: none !important;
}

/* Section headers (strong elements) */
.sidebar strong {
    font-weight: 600;
    cursor: pointer;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar strong:hover {
    background: #e9ecef;
}


.sidebar .has-children.expanded::before {
    transform: translateY(-50%) rotate(90deg);
}

/* Adjust padding for items with indicators */
.sidebar .has-children {
}

/* Nested items styling */
.sidebar ul ul {
    border: none;
    background: transparent;
}

.sidebar ul li {
    /* background: cadetblue; */
    border-bottom: 1px solid #e9ecef;
}


.sidebar ul ul li {
    /* background: cadetblue; */
    border-bottom: 1px solid #e9ecef;
}

.sidebar ul ul a {
    padding: 10px 16px 10px 32px;
    font-size: 18px;
    color: #495057;
    background: transparent;
}

.sidebar ul ul a:hover {
    background: #e9ecef;
}

/* Third level nesting */
.sidebar ul ul ul li {
    background: #ffffff;
    /* border-left: 3px solid #adb5bd; */
}

.sidebar ul ul ul a {
    padding-left: 48px;
    font-size: 18px;
    color: #6c757d;
}

/* Active/current page styling */
.sidebar a.active,
.sidebar a.active:hover {
    background: #f0f8f0 !important;
    color: #1A7719 !important;
    font-weight: 600;
    /* border-left: 3px solid #1A7719; */
}

/* Active parent sections (when a child is active) */
.sidebar .active-parent {
    background: #f8fcf8 !important;
    color: #1A7719 !important;
    font-weight: 600;
}

/* Hover effects with green theme */
.sidebar a:hover:not(.active) {
    background: #f8fcf8;
    color: #1A7719;
}

.sidebar strong:hover {
    background: #f0f8f0;
    color: #1A7719;
}

/* Hide collapsed sections */
.sidebar .collapsed {
    display: none !important;
}

/* Ensure proper borders for nested items */
.sidebar ul ul li:last-child {
    border-bottom: none;
}

/* Remove any default docsify transitions that might interfere */
.sidebar * {
    transition: none !important;
}

.sidebar .has-children::before {
    transition: transform 0.3s ease !important;
}