/**
 * GitBook-style Documentation CSS
 * Uses the same color scheme as the main blog
 */

/* =========================================
   Layout & Container
   ========================================= */

/* Reset global theme constraints for gitbook page */
.gitbook-page {
    padding-top: 50px !important;
    padding-bottom: 0 !important;
    background: var(--bg-primary, #0d0d0d) !important;
}

/* Override any global container constraints */
.gitbook-page .gitbook-container,
.gitbook-page .gitbook-content,
.gitbook-page .content-body,
.gitbook-page .content-wrapper,
.gitbook-page .markdown-body {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Reset padding on article */
.gitbook-page article.content-body {
    padding: 24px 40px 24px 24px !important;
}

.gitbook-page .navbar {
    z-index: 1000 !important;
}

/* Theme Toggle in Header */
.gitbook-page .theme-toggle {
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gitbook-page .theme-toggle:hover {
    background: rgba(255, 107, 107, 0.1);
    color: var(--link-color, #ff6b6b);
}

/* Global box-sizing for GitBook layout */
.gitbook-container,
.gitbook-container * {
    box-sizing: border-box;
}

/* =========================================
   Sidebar
   ========================================= */

.gitbook-sidebar {
    width: 380px;
    /* Increased default width */
    min-width: 200px;
    /* Minimum width */
    max-width: 600px;
    /* Maximum width */
    background: #111111;
    border-right: 1px solid var(--border-color, #7c7a7a);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 50px;
    left: 0;
    height: calc(100vh - 50px);
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* =========================================
   Sidebar Styles (continued below)
   ========================================= */

/* When resizing, disable transition for smooth drag */
.gitbook-sidebar.resizing {
    transition: none;
    user-select: none;
}

.gitbook-sidebar.collapsed {
    transform: translateX(-100%);
}

/* Sidebar Resizer Object */
.sidebar-resizer {
    width: 4px;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    cursor: col-resize;
    z-index: 10;
    transition: background-color 0.2s;
}

.sidebar-resizer:hover,
.gitbook-sidebar.resizing .sidebar-resizer {
    background-color: var(--link-color, #ff6b6b);
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-color, #7c7a7a);
    background: rgba(0, 0, 0, 0.3);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-color, #e2e1d3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.sidebar-logo i {
    font-size: 1.3em;
    color: var(--link-color, #ff6b6b);
}

.sidebar-toggle {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.sidebar-toggle:hover {
    background: rgba(255, 107, 107, 0.1);
    color: var(--link-color, #ff6b6b);
}

/* Sidebar Search */
.sidebar-search {
    padding: 16px;
    position: relative;
    border-bottom: 1px solid var(--border-color, #7c7a7a);
}

.sidebar-search input {
    width: 100%;
    padding: 10px 40px 10px 14px;
    background: #1a1a1a;
    border: 1px solid var(--border-color, #7c7a7a);
    border-radius: 6px;
    color: var(--text-color, #e2e1d3);
    font-size: 14px;
    transition: all 0.2s;
}

.sidebar-search input:focus {
    outline: none;
    border-color: var(--link-color, #ff6b6b);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.sidebar-search input::placeholder {
    color: #666;
}

.sidebar-search i {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

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

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

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* Navigation List */
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list.hidden {
    display: none;
}

.nav-item {
    margin: 0;
}

/* Folder Style */
.nav-folder {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--text-color, #e2e1d3);
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    /* Increased from 14px */
    transition: all 0.2s;
    user-select: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.nav-folder:hover {
    background: rgba(255, 107, 107, 0.08);
    color: var(--link-color, #ff6b6b);
}

.nav-folder .folder-arrow {
    font-size: 10px;
    transition: transform 0.2s;
    opacity: 0.5;
}

.nav-folder .folder-arrow.open {
    transform: rotate(90deg);
}

.nav-folder>i:not(.folder-arrow) {
    font-size: 14px;
    color: #fbbf24;
    opacity: 0.9;
}

/* File Link Style */
.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 40px;
    color: #999;
    text-decoration: none;
    font-size: 15px;
    /* Increased from 14px */
    transition: all 0.2s;
    border-left: 2px solid transparent;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.nav-link:hover {
    background: rgba(255, 107, 107, 0.08);
    color: var(--text-color, #e2e1d3);
    border-left-color: rgba(255, 107, 107, 0.5);
}

.nav-link.active {
    background: rgba(255, 107, 107, 0.15);
    color: var(--link-color, #ff6b6b);
    border-left-color: var(--link-color, #ff6b6b);
    font-weight: 500;
}

.nav-link i {
    font-size: 12px;
    color: #60a5fa;
    opacity: 0.8;
}

/* Active link icon */
.nav-link.active i {
    color: var(--link-color, #ff6b6b);
    opacity: 1;
}

/* Nested Navigation - Tree Style */
.nav-children {
    display: none;
    padding-left: 16px;
    margin-left: 24px;
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-children.open {
    display: block;
}

/* Tree branch line for each item */
.nav-children .nav-item {
    position: relative;
}

.nav-children .nav-item::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    width: 12px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

/* Extend vertical line to last item */
.nav-children .nav-item:last-child::after {
    content: '';
    position: absolute;
    left: -17px;
    top: 50%;
    bottom: 0;
    width: 1px;
    height: calc(50% + 1px);
    background: var(--bg-primary, #0d0d0d);
}

.nav-children .nav-link {
    padding-left: 8px;
}

.nav-children .nav-children {
    margin-left: 16px;
}

.nav-children .nav-children .nav-link {
    padding-left: 8px;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color, #7c7a7a);
    background: rgba(0, 0, 0, 0.3);
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.sidebar-footer a:hover {
    color: var(--link-color, #ff6b6b);
}

/* =========================================
   Main Content Area
   ========================================= */

/* Main Content Area */
.gitbook-content {
    flex: 1;
    margin-left: 250px;
    /* Match sidebar width */
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 50px);
    background: transparent;
    max-width: calc(100% - 250px);
    /* Prevent overflow */
    overflow-x: hidden;
}

/* Content Header */
.content-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 32px;
    border-bottom: 1px solid var(--border-color, #7c7a7a);
    background: rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 50px;
    z-index: 50;
    backdrop-filter: blur(10px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
}

.mobile-menu-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    color: var(--link-color, #ff6b6b);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #888;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--link-color, #ff6b6b);
}

.breadcrumb i {
    font-size: 10px;
    opacity: 0.5;
}

/* Content Main Wrapper */
.content-main-wrapper {
    display: flex;
    flex: 1;
    gap: 0;
    min-width: 0;
    overflow-y: auto;
    /* Scroll happens here so TOC can be sticky */
    overflow-x: hidden;
}

/* Content Body */
.content-body {
    flex: 1 1 auto;
    padding: 20px 20px 20px 20px;
    margin: 0;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    /* No overflow here - let parent scroll */
}

/* Right Table of Contents - GitBook Style */
.content-toc {
    width: 220px;
    min-width: 220px;
    flex-shrink: 0;
    padding: 20px 0 20px 20px;
    position: sticky;
    top: 0;
    /* Stick to top of scroll container */
    align-self: flex-start;
    /* Important for sticky in flex */
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    display: block;
    z-index: 10;
}

/* Hide TOC when no headers */
.content-toc:empty,
.content-toc:not(.has-toc) {
    display: none;
}

/* Scrollbar styling for TOC */
.content-toc::-webkit-scrollbar {
    width: 4px;
}

.content-toc::-webkit-scrollbar-track {
    background: transparent;
}

.content-toc::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

/* TOC Header */
.toc-header {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 12px;
    padding-left: 12px;
}

/* TOC Navigation Container */
.toc-nav {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* TOC Links */
.toc-link {
    display: block;
    padding: 6px 0 6px 12px;
    margin-left: -12px;
    font-size: 13px;
    color: #888;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.15s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

.toc-link:hover {
    color: #fff;
    border-left-color: rgba(255, 107, 107, 0.5);
}

.toc-link.active {
    color: var(--link-color, #ff6b6b);
    border-left-color: var(--link-color, #ff6b6b);
    font-weight: 500;
}

/* H3 links are indented */
.toc-link.toc-h3 {
    padding-left: 24px;
    font-size: 12px;
    color: #666;
}

.toc-link.toc-h3:hover {
    color: #aaa;
}

.toc-link.toc-h3.active {
    color: var(--link-color, #ff6b6b);
}

/* Welcome Screen */
.welcome-screen {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.welcome-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--link-color, #ff6b6b) 0%, #ee5555 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 32px rgba(255, 107, 107, 0.25);
}

.welcome-icon i {
    font-size: 40px;
    color: #fff;
}

.welcome-screen h1 {
    font-size: 2.5em;
    color: var(--header-color, #fff);
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-weight: 700;
}

.welcome-description {
    color: #999;
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.welcome-description strong {
    color: var(--link-color, #ff6b6b);
}

/* Quick Links */
.quick-links {
    text-align: left;
}

.quick-links h3 {
    color: var(--header-color, #fff);
    margin-bottom: 16px;
    font-size: 1.25em;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-weight: 600;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.quick-link-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color, #7c7a7a);
    border-radius: 10px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.25s;
    text-align: left;
}

.quick-link-card:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: var(--link-color, #ff6b6b);
    transform: translateY(-3px);
}

.quick-link-card i {
    font-size: 24px;
    color: var(--link-color, #ff6b6b);
    margin-bottom: 12px;
}

.quick-link-card h4 {
    color: var(--header-color, #fff);
    margin-bottom: 6px;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-weight: 600;
}

.quick-link-card .item-count {
    color: #888;
    font-size: 12px;
}

/* Content Wrapper */
.content-wrapper {
    animation: fadeIn 0.3s ease;
    width: 100%;
    max-width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-header-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: 40px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color, #7c7a7a);
}

.content-header-info h1 {
    font-size: 2.2em;
    color: var(--header-color, #fff);
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-weight: 700;
}

.edit-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.edit-link:hover {
    background: rgba(255, 107, 107, 0.1);
    color: var(--link-color, #ff6b6b);
}

/* Markdown Body */
.markdown-body {
    color: var(--text-color, #e2e1d3);
    line-height: 1.7;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
}

.markdown-body img,
.markdown-body video {
    max-width: 100%;
    height: auto;
}

.markdown-body hr {
    max-width: 100%;
    box-sizing: border-box;
}

/* Heading styles */
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    color: var(--header-color, #fff);
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.markdown-body h2 {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color, #7c7a7a);
}

.markdown-body a {
    color: var(--link-color, #ff6b6b);
    text-decoration: none;
}

.markdown-body a:hover {
    text-decoration: underline;
}

.markdown-body blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    background: rgba(255, 107, 107, 0.08);
    border-left: 4px solid var(--link-color, #ff6b6b);
    border-radius: 0 8px 8px 0;
    color: #bbb;
}

/* Code Blocks */
.markdown-body pre {
    margin: 24px 0;
    padding: 20px;
    padding-top: 40px;
    /* Space for copy button */
    background: var(--code-bg, #1a1a1a) !important;
    border: 1px solid var(--border-color, #7c7a7a);
    border-radius: 8px;
    overflow-x: auto;
    position: relative;
    /* Important for copy button positioning */
    max-width: 100%;
    min-width: 0;
}

.markdown-body pre code {
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace !important;
    font-size: 14px !important;
    color: var(--code-text-color, #e2e1d3) !important;
    background: transparent !important;
    padding: 0 !important;
}

.markdown-body code {
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
    padding: 3px 8px;
    background: var(--inline-code-bg, #1b1b1b);
    color: var(--inline-code-color, #e07b67);
    border-radius: 4px;
}

/* Copy Button - Fixed positioning */
.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #444;
    color: #888;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.7;
    font-size: 12px;
    z-index: 5;
}

pre:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    color: var(--link-color, #ff6b6b);
}

.copy-btn.copied {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

/* Tables */
.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.markdown-body th {
    background: rgba(255, 107, 107, 0.1);
    color: var(--header-color, #fff);
    padding: 14px;
    text-align: left;
    border-bottom: 2px solid var(--link-color, #ff6b6b);
    font-weight: 600;
}

.markdown-body td {
    padding: 12px 14px;
    border-bottom: 1px solid #333;
}

/* Content Footer */
.content-footer {
    padding: 24px 48px;
    border-top: 1px solid var(--border-color, #7c7a7a);
    background: rgba(0, 0, 0, 0.5);
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    max-width: 1400px;
    /* Matched to content max-width */
    margin: 0 auto;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color, #7c7a7a);
    border-radius: 8px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:not(:disabled):hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: var(--link-color, #ff6b6b);
    color: var(--link-color, #ff6b6b);
}

.nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.nav-btn.next {
    margin-left: auto;
}

/* Loading & Error States */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 50px;
    color: #888;
}

.loading-spinner i {
    font-size: 28px;
    color: var(--link-color, #ff6b6b);
}

.error-message {
    text-align: center;
    padding: 50px;
    color: #888;
}

.error-message i {
    font-size: 44px;
    color: var(--link-color, #ff6b6b);
    margin-bottom: 20px;
}

.error-message h2 {
    color: var(--header-color, #fff);
}

.error-message button {
    margin-top: 20px;
    padding: 10px 22px;
    background: var(--link-color, #ff6b6b);
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
}

/* Responsive */
/* Responsive */
@media (max-width: 1200px) {
    .content-toc {
        display: none;
    }

    /* Let content expand */
    .content-body {
        padding: 20px 0 20px 20px;
        /* Keep reduced padding */
    }
}

@media (max-width: 768px) {
    .gitbook-sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .gitbook-sidebar.open {
        transform: translateX(0);
    }

    .gitbook-content {
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .content-body {
        padding: 20px 16px;
    }

    .content-footer {
        padding: 20px 16px;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .nav-btn {
        max-width: 100%;
    }
}

/* =========================================
   Light Theme Overrides
   ========================================= */

body.light-theme .gitbook-page {
    background: var(--bg-primary, #f0ede8) !important;
}

body.light-theme .gitbook-sidebar {
    background: #f5f5f5;
    border-right-color: #ddd;
}

body.light-theme .sidebar-header {
    background: rgba(0, 0, 0, 0.03);
    border-bottom-color: #ddd;
}

body.light-theme .sidebar-logo {
    color: #333;
}

body.light-theme .sidebar-search input {
    background: #fff;
    border-color: #ddd;
    color: #333;
}

body.light-theme .sidebar-search input::placeholder {
    color: #999;
}

body.light-theme .nav-folder {
    color: #333;
}

body.light-theme .nav-folder:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.light-theme .nav-link {
    color: #666;
}

body.light-theme .nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

body.light-theme .nav-link.active {
    background: rgba(217, 83, 79, 0.1);
    color: var(--link-color);
}

body.light-theme .sidebar-footer {
    background: rgba(0, 0, 0, 0.03);
    border-top-color: #ddd;
}

body.light-theme .sidebar-footer a {
    color: #666;
}

body.light-theme .content-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: #ddd;
}

body.light-theme .breadcrumb,
body.light-theme .breadcrumb a {
    color: #666;
}

body.light-theme .markdown-body {
    color: var(--text-color);
}

body.light-theme .markdown-body h1,
body.light-theme .markdown-body h2,
body.light-theme .markdown-body h3,
body.light-theme .markdown-body h4,
body.light-theme .markdown-body h5,
body.light-theme .markdown-body h6 {
    color: var(--header-color);
}

body.light-theme .markdown-body h2 {
    border-bottom-color: #ddd;
}

body.light-theme .markdown-body blockquote {
    background: rgba(217, 83, 79, 0.05);
    color: #555;
}

body.light-theme .markdown-body pre {
    background: #1e1e1e !important;
}

body.light-theme .content-toc {
    background: transparent;
}

body.light-theme .toc-nav {
    border-left-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .toc-link {
    color: #666;
}

body.light-theme .toc-link:hover {
    color: #333;
}

body.light-theme .content-footer {
    border-top-color: #ddd;
}

body.light-theme .nav-btn {
    background: #fff;
    border-color: #ddd;
    color: #333;
}

body.light-theme .nav-btn:hover {
    background: rgba(217, 83, 79, 0.1);
    border-color: var(--link-color);
}

body.light-theme .welcome-screen h1 {
    color: var(--header-color);
}

body.light-theme .welcome-description {
    color: #555;
}

body.light-theme .quick-link-card {
    background: #fff;
    border-color: #ddd;
}

body.light-theme .quick-link-card:hover {
    background: rgba(217, 83, 79, 0.05);
}