        :root {
            --navbar-width: 320px;
            --transition-duration: 0.3s;
        }

        body {
            margin: 0;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            transition: background-color var(--transition-duration), color var(--transition-duration);
        }

        .light-theme {
            background-color: #f6f9fc;
            color: #1a1a1a;
        }

        .dark-theme {
            background-color: #111827;
            color: #ffffff;
        }

        .navbar-container {
            position: fixed;
            left: 0;
            top: 0;
            height: 100vh;
            width: var(--navbar-width);
            z-index: 1050;
            transform: translateX(-100%);
            transition: transform var(--transition-duration);
            overflow-y: auto;
            display: flex;
            flex-direction: column;
        }

        .navbar-container.show {
            transform: translateX(0);
        }

        @media (min-width: 992px) {
            .navbar-container {
                position: fixed;
                transform: translateX(0);
            }

            .main-content {
                margin-left: var(--navbar-width);
            }
        }

        .navbar-content {
            height: 100%;
            border-right: 1px solid;
            transition: background-color var(--transition-duration), border-color var(--transition-duration);
            display: flex;
            flex-direction: column;
        }

        .light-theme .navbar-content {
            background-color: #eef2f7;
            border-right-color: #e5e7eb;
        }

        .dark-theme .navbar-content {
            background-color: #1f2937;
            border-right-color: #374151;
        }

        .company-header {
            padding: 24px;
            border-bottom: 1px solid;
            transition: border-color var(--transition-duration);
            flex-shrink: 0;
        }

        .light-theme .company-header {
            border-bottom-color: #e5e7eb;
        }

        .dark-theme .company-header {
            border-bottom-color: #374151;
        }

        .theme-toggle {
            width: 100%;
            padding: 12px 16px;
            border-radius: 8px;
            border: none;
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 500;
            transition: all var(--transition-duration);
            cursor: pointer;
        }

        .light-theme .theme-toggle {
            background-color: #e5e7eb;
            color: #1a1a1a;
        }

        .light-theme .theme-toggle:hover {
            background-color: #d1d5db;
        }

        .dark-theme .theme-toggle {
            background-color: #374151;
            color: #fbbf24;
        }

        .dark-theme .theme-toggle:hover {
            background-color: #4b5563;
        }

        .nav-index {
            padding: 16px;
            flex-grow: 1;
            overflow-y: auto;
        }

        .theme-switch-container {
            padding: 16px;
            border-top: 1px solid;
            flex-shrink: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: border-color var(--transition-duration);
        }

        .light-theme .theme-switch-container {
            border-top-color: #e5e7eb;
        }

        .dark-theme .theme-switch-container {
            border-top-color: #374151;
        }

        .section-header {
            color: #000000;
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 16px;
        }

        .dark-theme .section-header {
            color: #d1d5db;
        }

        .nav-section {
            border-bottom: 1px solid rgba(156, 163, 175, 0.2);
            padding-bottom: 12px;
            margin-bottom: 12px;
        }

        .nav-section:last-child {
            border-bottom: none;
        }

        .chapter-button {
            width: 100%;
            padding: 12px 16px;
            border-radius: 8px;
            border: none;
            background: none;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-weight: 600;
            text-align: left;
            transition: background-color var(--transition-duration);
            cursor: pointer;
        }

        .light-theme .chapter-button {
            color: #1a1a1a;
        }

        .light-theme .chapter-button:hover {
            background-color: #f8fafc;
        }

        .dark-theme .chapter-button {
            color: #e5e7eb;
        }

        .dark-theme .chapter-button:hover {
            background-color: #374151;
        }

        .chapter-items {
            margin-left: 16px;
            margin-top: 8px;
            display: none;
        }

        .chapter-items.show {
            display: block;
        }

        .nav-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            border-radius: 6px;
            cursor: pointer;
            transition: background-color var(--transition-duration);
            font-size: 14px;
        }

        .light-theme .nav-item {
            color: #1a1a1a;
        }

        .light-theme .nav-item:hover {
            background-color: #f8fafc;
        }

        .dark-theme .nav-item {
            color: #d1d5db;
        }

        .dark-theme .nav-item:hover {
            background-color: #374151;
        }

        .page-number {
            font-size: 12px;
            opacity: 0.6;
        }

        .mobile-menu-btn {
            position: fixed;
            top: 16px;
            left: 16px;
            z-index: 1060;
            border: none;
            padding: 8px 12px;
            border-radius: 8px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            transition: all var(--transition-duration);
            cursor: pointer;
        }

        .light-theme .mobile-menu-btn {
            background-color: #ffffff;
            color: #1a1a1a;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        .light-theme .mobile-menu-btn:hover {
            background-color: #f8fafc;
        }

        .dark-theme .mobile-menu-btn {
            background-color: #1f2937;
            color: #ffffff;
        }

        .dark-theme .mobile-menu-btn:hover {
            background-color: #374151;
        }

        @media (min-width: 992px) {
            .mobile-menu-btn {
                display: none;
            }
        }

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1040;
            display: none;
        }

        .overlay.show {
            display: block;
        }

        @media (min-width: 992px) {
            .overlay {
                display: none !important;
            }
        }

        .main-content {
            padding: 32px;
            min-height: 100vh;
            transition: margin-left var(--transition-duration);
        }

        .content-card {
            padding: 24px;
            border-radius: 8px;
            margin-top: 24px;
            transition: background-color var(--transition-duration);
        }

        .light-theme .content-card {
            background-color: #ffffff;
            border: 1px solid #e5e7eb;
            box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
        }

        .dark-theme .content-card {
            background-color: #1f2937;
        }

        .chevron {
            transition: transform var(--transition-duration);
        }

        .chevron.rotated {
            transform: rotate(90deg);
        }

        /* From Uiverse.io by Galahhad */
        /* switch settings 👇 */
        .ui-switch {
            /* switch */
            --switch-bg: rgb(135, 150, 165);
            --switch-width: 48px;
            --switch-height: 20px;
            /* circle */
            --circle-diameter: 32px;
            --circle-bg: rgb(7, 7, 7);
            --circle-inset: calc((var(--circle-diameter) - var(--switch-height)) / 2);
        }

        .ui-switch input {
            display: none;
        }

        .slider {
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            width: var(--switch-width);
            height: var(--switch-height);
            background: var(--switch-bg);
            border-radius: 999px;
            position: relative;
            cursor: pointer;
        }

        .slider .circle {
            top: calc(var(--circle-inset) * -1);
            left: 0;
            width: var(--circle-diameter);
            height: var(--circle-diameter);
            position: absolute;
            background: var(--circle-bg);
            border-radius: inherit;
            background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHdpZHRoPSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KICAgIDxwYXRoIGZpbGw9IiNmZmYiCiAgICAgICAgZD0iTTkuMzA1IDEuNjY3VjMuNzVoMS4zODlWMS42NjdoLTEuMzl6bS00LjcwNyAxLjk1bC0uOTgyLjk4Mkw1LjA5IDYuMDcybC45ODItLjk4Mi0xLjQ3My0xLjQ3M3ptMTAuODAyIDBMMTMuOTI3IDUuMDlsLjk4Mi45ODIgMS40NzMtMS40NzMtLjk4Mi0uOTgyek0xMCA1LjEzOWE0Ljg3MiA0Ljg3MiAwIDAwLTQuODYyIDQuODZBNC44NzIgNC44NzIgMCAwMDEwIDE0Ljg2MiA0Ljg3MiA0Ljg3MiAwIDAwMTQuODYgMTAgNC44NzIgNC44NzIgMCAwMDEwIDUuMTM5em0wIDEuMzg5QTMuNDYyIDMuNDYyIDAgMDExMy40NzEgMTBhMy40NjIgMy40NjIgMCAwMS0zLjQ3MyAzLjQ3MkEzLjQ2MiAzLjQ2MiAwIDAxNi41MjcgMTAgMy40NjIgMy40NjIgMCAwMTEwIDYuNTI4ek0xLjY2NSA5LjMwNXYxLjM5aDIuMDgzdi0xLjM5SDEuNjY2em0xNC41ODMgMHYxLjM5aDIuMDg0di0xLjM5aC0yLjA4NHpNNS4wOSAxMy45MjhMMy42MTYgMTUuNGwuOTgyLjk4MiAxLjQ3My0xLjQ3My0uOTgyLS45ODJ6bTkuODIgMGwtLjk4Mi45ODIgMS40NzMgMS40NzMuOTgyLS45ODItMS40NzMtMS40NzN6TTkuMzA1IDE2LjI1djIuMDgzaDEuMzg5VjE2LjI1aC0xLjM5eiIgLz4KPC9zdmc+");
            background-repeat: no-repeat;
            background-position: center center;
            -webkit-transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
            -o-transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
            transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-align: center;
            -ms-flex-align: center;
            align-items: center;
            -webkit-box-pack: center;
            -ms-flex-pack: center;
            justify-content: center;
            box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
            ;
        }

        .slider .circle::before {
            content: "";
            position: absolute;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.75);
            border-radius: inherit;
            -webkit-transition: all 500ms;
            -o-transition: all 500ms;
            transition: all 500ms;
            opacity: 0;
        }

        /* actions */
        .ui-switch input:checked+.slider .circle {
            left: calc(100% - var(--circle-diameter));
            background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHdpZHRoPSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KICAgIDxwYXRoIGZpbGw9IiNmZmYiCiAgICAgICAgZD0iTTQuMiAyLjVsLS43IDEuOC0xLjguNyAxLjguNy43IDEuOC42LTEuOEw2LjcgNWwtMS45LS43LS42LTEuOHptMTUgOC4zYTYuNyA2LjcgMCAxMS02LjYtNi42IDUuOCA1LjggMCAwMDYuNiA2LjZ6IiAvPgo8L3N2Zz4=");
        }

        .ui-switch input:active+.slider .circle::before {
            -webkit-transition: 0s;
            -o-transition: 0s;
            transition: 0s;
            opacity: 1;
            width: 0;
            height: 0;
        }

        .theme-switch-container {
            padding: 16px;
            border-top: 1px solid;
            flex-shrink: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 12px;
            transition: border-color var(--transition-duration);
        }

        .light-theme .theme-switch-container {
            border-top-color: #e5e7eb;
        }

        .dark-theme .theme-switch-container {
            border-top-color: #374151;
        }

        @media (max-width: 991px) {
            .company-header {
                padding-top: 60px;
                /* Increase top padding on mobile to avoid overlap with close button */
            }
        }