:root {
    --primary: #10b981;
    --primary-dark: #059669;
}

.doc-sidebar {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

.doc-sidebar::-webkit-scrollbar {
    width: 6px;
}

.doc-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.doc-sidebar::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 3px;
}

.dark .doc-sidebar::-webkit-scrollbar-thumb {
    background-color: #4b5563;
}

.doc-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.doc-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary);
}

.doc-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.dark .doc-content h2 {
    border-top-color: #374151;
}

.doc-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #374151;
}

.dark .doc-content h3 {
    color: #d1d5db;
}

.doc-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.doc-content p {
    margin-bottom: 1.5rem;
}

.doc-content ul, .doc-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.doc-content li {
    margin-bottom: 0.5rem;
}

.doc-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6b7280;
}

.dark .doc-content blockquote {
    color: #9ca3af;
}

.doc-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

.doc-content th {
    background-color: #f9fafb;
    font-weight: 600;
    padding: 0.75rem;
    text-align: left;
    border: 1px solid #e5e7eb;
}

.dark .doc-content th {
    background-color: #374151;
    border-color: #4b5563;
}

.doc-content td {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
}

.dark .doc-content td {
    border-color: #4b5563;
}

.doc-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-link {
    opacity: 0;
    margin-left: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.doc-content h2:hover .header-link,
.doc-content h3:hover .header-link,
.doc-content h4:hover .header-link {
    opacity: 1;
}

.toc-link {
    display: block;
    padding: 0.375rem 0.75rem;
    margin: 0.125rem 0;
    color: #6b7280;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.toc-link:hover {
    color: var(--primary);
    border-left-color: var(--primary);
    background-color: rgba(16, 185, 129, 0.05);
}

.dark .toc-link {
    color: #9ca3af;
}

.dark .toc-link:hover {
    background-color: rgba(16, 185, 129, 0.1);
}

.toc-link.active {
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 500;
    background-color: rgba(16, 185, 129, 0.1);
}

.breadcrumb-item:not(:last-child)::after {
    content: "/";
    margin: 0 0.5rem;
    color: #9ca3af;
}

.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.code-block:hover .copy-button {
    opacity: 1;
}
