.breadcrumb {
    margin-left: 0 !important;
}
:root {
    --primary-color: #4a6cf7;
    --primary-hover: #3a5ce5;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f9fafc;
    --border-color: #e5e7eb;
    --highlight-bg: #eef2ff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.1);
    --transition: all 0.2s ease;
    --radius: 8px;
}

.docs-tree-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.docs-search-box {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

.docs-search-box input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    padding-left: 40px;
    transition: var(--transition);
}

.docs-search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.15);
}

.docs-tree-wrapper {
    padding: 8px 0;
    max-height: 600px;
    overflow-y: auto;
}

.docs-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-tree ul {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 20px;
}

.docs-tree li {
    margin: 0;
    position: relative;
}

.docs-tree li a {
    display: block;
    padding: 10px 16px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: var(--transition);
    position: relative;
}

.docs-tree li a:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
}

.docs-tree li.current-page > a {
    background-color: var(--highlight-bg);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

/* Expandable items with children */
.docs-tree li.has-children > a {
    padding-right: 32px;
}

.docs-tree li.has-children > a:after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    transition: var(--transition);
}

.docs-tree li.has-children.expanded > a:after {
    transform: translateY(-50%) rotate(180deg);
}

/* Hide nested lists by default */
.docs-tree li.has-children > ul {
    display: none;
}

.docs-tree li.has-children.expanded > ul {
    display: block;
}

/* Tree lines */
.docs-tree li.has-children > ul > li {
    position: relative;
}

.docs-tree li.has-children > ul > li:before {
    content: "";
    position: absolute;
    left: -12px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: var(--border-color);
}

.docs-tree li.has-children > ul > li:last-child:before {
    height: 19px;
}

.docs-tree li.has-children > ul > li:after {
    content: "";
    position: absolute;
    left: -12px;
    top: 19px;
    width: 8px;
    height: 1px;
    background-color: var(--border-color);
}

/* No results message */
.no-results {
    padding: 16px;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .docs-tree-container {
        border-radius: 0;
        box-shadow: none;
        border-left: none;
        border-right: none;
    }
}

/* Animation for expanding/collapsing */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.docs-tree li.has-children.expanded > ul {
    animation: slideDown 0.2s ease-out;
}

.docs-main-content h3 {
    font-family: var(--font-heading) !important;
    font-size: var(--font-size-3xl) !important;
    margin-top: var(--spacing-2xl);
}
.docs-main-content ul, .docs-main-content ol {
    padding-left: 0 !important;
}