html, body {
    margin: 0 !important;
    padding: 0;
}

.navbar-brand-image {
    height: 2rem;
}

.badge.bg-muted, .badge.bg-red, .badge.bg-yellow, .badge.bg-success,.badge.bg-blue, .badge.bg-green {
    color: var(--tblr-light);
}

.footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 1rem 0;
    margin-top: auto;
}

.form-control.disabled {
    background-color: var(--tblr-bg-surface-secondary);
    opacity: 1;
}

.form-control.disabled:focus {
    box-shadow: none;
}

.page-header .page-title {
    color: rgb(var(--tblr-white-rgb));
}

.btn-group-sm > .btn-sm.btn-icon {
    border: none;
}

/* document */

.document-container {
    display: flex;
    min-height: calc(100vh - 200px);
}

.document-sidebar {
    width: 250px;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    padding: 1rem;
    flex-shrink: 0;
}

.document-content {
    flex: 1;
    padding: 1rem 2rem;
    overflow-y: auto;
}

.document-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.document-sidebar li {
    margin-bottom: 0.5rem;
}

.document-sidebar a {
    text-decoration: none;
    color: #495057;
    display: block;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
}

.document-sidebar a:hover,
.document-sidebar a.active {
    background-color: #007bff;
    color: white;
}

.document-content h1:first-child {
    margin-top: 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.document-content h2 {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

.document-content h3 {
    margin-top: 1.5rem;
}

.document-content code {
    background-color: var(--tblr-body-color);
    color: var(--tblr-light);
}

.document-content pre code {
    color: unset;
}

.document-content code {
    background-color: var(--tblr-body-color);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 85%;
}

.document-content pre {
    background: #f5f2f0;
    color: #000;
    line-height: 1.5;
    font-size: 1em;
    padding: 1rem;
    border-radius: 0.25rem;
    overflow-x: auto;
}

.document-content pre code {
    background-color: transparent;
    padding: 0;
}

.document-content blockquote {
    border-left: 4px solid #007bff;
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    background-color: #f8f9fa;
}

.document-content table {
    width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
}

.document-content table th,
.document-content table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.document-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.document-content ul,
.document-content ol {
    padding-left: 2rem;
}

.document-content li {
    margin-bottom: 0.25rem;
}

/* 响应式设计 - 在小屏幕上隐藏左侧导航 */
@media (max-width: 768px) {
    #documentSidebar {
        display: none;
        position: absolute;
        right: 0;
        z-index: 10;
    }

    .document-sidebar {
        display: none;
    }

    .document-content {
        padding: 1rem;
    }

    .document-container {
        display: block;
    }

    header.navbar.navbar-expand-md.navbar-overlap > .container-xl {
        z-index: 100;
        background-color: #1f2937;
        /*border-bottom: 1px solid rgba(255, 255, 255, 0.1);*/
        border-radius: 0 0 0.25rem 0.25rem;
    }
}