@charset "utf-8";

/* ============================================
   DESIGN SYSTEM - Spacing & Typography
   ============================================ */
:root {
    /* Spacing Scale */
    --space-xs: 0.25rem; /* 4px */
    --space-sm: 0.5rem; /* 8px */
    --space-md: 1rem; /* 16px */
    --space-lg: 1.5rem; /* 24px */
    --space-xl: 2rem; /* 32px */
    --space-2xl: 3rem; /* 48px */
    --space-3xl: 4rem; /* 64px */
    /* Typography Scale */
    --font-size-xs: 0.75rem; /* 12px */
    --font-size-sm: 0.875rem; /* 14px */
    --font-size-base: 1rem; /* 16px */
    --font-size-lg: 1.125rem; /* 18px */
    --font-size-xl: 1.25rem; /* 20px */
    --font-size-2xl: 1.5rem; /* 24px */
    --font-size-3xl: 1.875rem; /* 30px */
    --font-size-4xl: 2.25rem; /* 36px */
    --font-size-5xl: 3rem; /* 48px */
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    --line-height-loose: 2;
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
    /* Code Block Configuration */
    --code-font-family: 'JetBrains Mono', Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    --code-font-size: 13px;
    --code-line-height: 1.3;
}

/* ============================================
   BOOTSTRAP THEME VARIABLES - DARK MODE
   ============================================ */
[data-bs-theme="dark"] {
    --bs-body-bg: #0d1117;
    --bs-tertiary-bg: #161b22;
    --bs-tertiary-bg-rgb: 22, 27, 34;
    /* Primary Orange */
    --bs-link-color: #FF6B00;
    --bs-link-hover-color: #cc5f01;
    --bs-primary: #FF6B00;
    --bs-primary-rgb: 255, 107, 0;
    --bs-primary-bg-subtle: rgba(255, 107, 0, 0.1);
    --bs-primary-border-subtle: rgba(255, 107, 0, 0.25);
    --bs-primary-text-emphasis: #FF6B00;
    /* Primary Buttons */
    --bs-btn-primary-color: #fff;
    --bs-btn-primary-bg: #cc5f01;
    --bs-btn-primary-border-color: #cc5f01;
    --bs-btn-primary-hover-color: #fff;
    --bs-btn-primary-hover-bg: #FF6B00;
    --bs-btn-primary-hover-border-color: #FF6B00;
    --bs-btn-primary-focus-shadow-rgb: 255, 107, 0;
    --bs-btn-primary-active-color: #fff;
    --bs-btn-primary-active-bg: #cc5f01;
    --bs-btn-primary-active-border-color: #cc5f01;
    --bs-btn-primary-disabled-color: #fff;
    --bs-btn-primary-disabled-bg: #FF6B00;
    --bs-btn-primary-disabled-border-color: #FF6B00;
    /* Primary Outline Buttons */
    --bs-btn-outline-primary-color: #FF6B00;
    --bs-btn-outline-primary-border-color: #FF6B00;
    --bs-btn-outline-primary-hover-color: #fff;
    --bs-btn-outline-primary-hover-bg: #FF6B00;
    --bs-btn-outline-primary-hover-border-color: #FF6B00;
    --bs-btn-outline-primary-focus-shadow-rgb: 255, 107, 0;
    --bs-btn-outline-primary-active-color: #fff;
    --bs-btn-outline-primary-active-bg: #FF6B00;
    --bs-btn-outline-primary-active-border-color: #FF6B00;
    --bs-btn-outline-primary-disabled-color: #FF6B00;
    --bs-btn-outline-primary-disabled-bg: transparent;
    --bs-btn-outline-primary-disabled-border-color: #FF6B00;
    /* Form Controls */
    --bs-form-check-input-checked-bg-color: #cc5f01;
    --bs-form-check-input-checked-border-color: #cc5f01;
    --bs-form-control-focus-border-color: rgba(204, 95, 1, 0.5);
    --bs-form-control-focus-box-shadow: 0 0 0 0.25rem rgba(204, 95, 1, 0.25);
    --bs-progress-bar-bg: #FF6B00;
    /* Accordion */
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.25);
    --bs-accordion-button-active-bg: rgba(255, 107, 0, 0.1);
    --bs-accordion-button-active-color: #FF6B00;
    /* Secondary - Pure Grey */
    --bs-secondary: #9CA3AF;
    --bs-secondary-rgb: 156, 163, 175;
    --bs-secondary-bg-subtle: rgba(156, 163, 175, 0.1);
    --bs-secondary-border-subtle: rgba(156, 163, 175, 0.25);
    --bs-secondary-text-emphasis: #9CA3AF;
    /* Warning - Yellow */
    --bs-warning: #F0AD4E;
    --bs-warning-rgb: 240, 173, 78;
    --bs-warning-bg-subtle: rgba(240, 173, 78, 0.1);
    --bs-warning-border-subtle: rgba(240, 173, 78, 0.25);
    --bs-warning-text-emphasis: #F0AD4E;
    /* Danger - Red */
    --bs-danger: #F85149;
    --bs-danger-rgb: 248, 81, 73;
    --bs-danger-bg-subtle: rgba(248, 81, 73, 0.1);
    --bs-danger-border-subtle: rgba(248, 81, 73, 0.25);
    --bs-danger-text-emphasis: #F85149;
    /* Success - Green */
    --bs-success: #56D364;
    --bs-success-rgb: 86, 211, 100;
    --bs-success-bg-subtle: rgba(86, 211, 100, 0.1);
    --bs-success-border-subtle: rgba(86, 211, 100, 0.25);
    --bs-success-text-emphasis: #56D364;
    /* Info - Blue */
    --bs-info: #58A6FF;
    --bs-info-rgb: 88, 166, 255;
    --bs-info-bg-subtle: rgba(88, 166, 255, 0.1);
    --bs-info-border-subtle: rgba(88, 166, 255, 0.25);
    --bs-info-text-emphasis: #58A6FF;
    /* Custom Accent - Purple */
    --op-accent: #A371F7;
    --op-accent-rgb: 163, 113, 247;
    --op-accent-hover: #8E5DE0;
    --op-accent-hover-rgb: 142, 93, 224;
    /* Code Syntax Highlighting - Darcula Theme */
    --code-bg: #2b2b2b;
    --code-text: #a9b7c6;
    --code-comment: #808080;
    --code-punctuation: #a9b7c6;
    --code-tag: #e8bf6a;
    --code-function-name: #ffc66d;
    --code-boolean: #6897bb;
    --code-number: #6897bb;
    --code-function: #ffc66d;
    --code-class-name: #a9b7c6;
    --code-constant: #9876aa;
    --code-property: #a9b7c6;
    --code-symbol: #9876aa;
    --code-keyword: #cc7832;
    --code-selector: #cc7832;
    --code-builtin: #cc7832;
    --code-atrule: #cc7832;
    --code-string: #6a8759;
    --code-attr-value: #6a8759;
    --code-char: #6a8759;
    --code-regex: #364135;
    --code-variable: #a9b7c6;
    --code-operator: #a9b7c6;
    --code-url: #a9b7c6;
    --code-entity: #a9b7c6;
    --code-inserted: #629755;
    --code-parameter: #a9b7c6;
    --code-annotation: #bbb529;
    --code-decorator: #bbb529;
}

/* ============================================
   BOOTSTRAP THEME VARIABLES - LIGHT MODE
   ============================================ */
[data-bs-theme="light"] {
    /* Primary Orange */
    --bs-link-color: #FF6B00;
    --bs-link-hover-color: #cc5f01;
    --bs-primary: #FF6B00;
    --bs-primary-rgb: 255, 107, 0;
    --bs-primary-bg-subtle: rgba(255, 107, 0, 0.1);
    --bs-primary-border-subtle: rgba(255, 107, 0, 0.25);
    --bs-primary-text-emphasis: #FF6B00;
    /* Primary Buttons */
    --bs-btn-primary-color: #fff;
    --bs-btn-primary-bg: #FF6B00;
    --bs-btn-primary-border-color: #FF6B00;
    --bs-btn-primary-hover-color: #fff;
    --bs-btn-primary-hover-bg: #cc5f01;
    --bs-btn-primary-hover-border-color: #cc5f01;
    --bs-btn-primary-focus-shadow-rgb: 255, 107, 0;
    --bs-btn-primary-active-color: #fff;
    --bs-btn-primary-active-bg: #cc5f01;
    --bs-btn-primary-active-border-color: #cc5f01;
    --bs-btn-primary-disabled-color: #fff;
    --bs-btn-primary-disabled-bg: #FF6B00;
    --bs-btn-primary-disabled-border-color: #FF6B00;
    /* Primary Outline Buttons */
    --bs-btn-outline-primary-color: #FF6B00;
    --bs-btn-outline-primary-border-color: #FF6B00;
    --bs-btn-outline-primary-hover-color: #fff;
    --bs-btn-outline-primary-hover-bg: #FF6B00;
    --bs-btn-outline-primary-hover-border-color: #FF6B00;
    --bs-btn-outline-primary-focus-shadow-rgb: 255, 107, 0;
    --bs-btn-outline-primary-active-color: #fff;
    --bs-btn-outline-primary-active-bg: #FF6B00;
    --bs-btn-outline-primary-active-border-color: #FF6B00;
    --bs-btn-outline-primary-disabled-color: #FF6B00;
    --bs-btn-outline-primary-disabled-bg: transparent;
    --bs-btn-outline-primary-disabled-border-color: #FF6B00;
    /* Form Controls */
    --bs-form-check-input-checked-bg-color: #FF6B00;
    --bs-form-check-input-checked-border-color: #FF6B00;
    --bs-form-control-focus-border-color: rgba(255, 107, 0, 0.5);
    --bs-form-control-focus-box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.25);
    --bs-progress-bar-bg: #FF6B00;
    /* Accordion */
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.25);
    --bs-accordion-button-active-bg: rgba(255, 107, 0, 0.1);
    --bs-accordion-button-active-color: #FF6B00;
    /* Secondary - Pure Grey */
    --bs-secondary: #6B7280;
    --bs-secondary-rgb: 107, 114, 128;
    --bs-secondary-bg-subtle: rgba(107, 114, 128, 0.1);
    --bs-secondary-border-subtle: rgba(107, 114, 128, 0.25);
    --bs-secondary-text-emphasis: #6B7280;
    /* Warning - Yellow */
    --bs-warning: #D97706;
    --bs-warning-rgb: 217, 119, 6;
    --bs-warning-bg-subtle: rgba(217, 119, 6, 0.1);
    --bs-warning-border-subtle: rgba(217, 119, 6, 0.25);
    --bs-warning-text-emphasis: #D97706;
    /* Danger - Red */
    --bs-danger: #DC2626;
    --bs-danger-rgb: 220, 38, 38;
    --bs-danger-bg-subtle: rgba(220, 38, 38, 0.1);
    --bs-danger-border-subtle: rgba(220, 38, 38, 0.25);
    --bs-danger-text-emphasis: #DC2626;
    /* Success - Green */
    --bs-success: #16A34A;
    --bs-success-rgb: 22, 163, 74;
    --bs-success-bg-subtle: rgba(22, 163, 74, 0.1);
    --bs-success-border-subtle: rgba(22, 163, 74, 0.25);
    --bs-success-text-emphasis: #16A34A;
    /* Info - Blue */
    --bs-info: #2563EB;
    --bs-info-rgb: 37, 99, 235;
    --bs-info-bg-subtle: rgba(37, 99, 235, 0.1);
    --bs-info-border-subtle: rgba(37, 99, 235, 0.25);
    --bs-info-text-emphasis: #2563EB;
    /* Custom Accent - Purple */
    --op-accent: #B794F6;
    --op-accent-rgb: 183, 148, 246;
    --op-accent-hover: #C8B0FA;
    --op-accent-hover-rgb: 200, 176, 250;
    /* Code Syntax Highlighting - Light Theme */
    --code-bg: #f5f5f5;
    --code-text: #5a5d68;
    --code-comment: #9599a1;
    --code-punctuation: #5a5d68;
    --code-tag: #c18401;
    --code-function-name: #d68a00;
    --code-boolean: #4382bb;
    --code-number: #4382bb;
    --code-function: #d68a00;
    --code-class-name: #5a5d68;
    --code-constant: #7d5ba6;
    --code-property: #5a5d68;
    --code-symbol: #7d5ba6;
    --code-keyword: #b34d22;
    --code-selector: #b34d22;
    --code-builtin: #b34d22;
    --code-atrule: #b34d22;
    --code-string: #477c42;
    --code-attr-value: #477c42;
    --code-char: #477c42;
    --code-regex: #2a4a30;
    --code-variable: #5a5d68;
    --code-operator: #5a5d68;
    --code-url: #5a5d68;
    --code-entity: #5a5d68;
    --code-inserted: #3e6b37;
    --code-parameter: #5a5d68;
    --code-annotation: #997d29;
    --code-decorator: #997d29;
}

@keyframes shake {
    10%, 90% {
        transform: translate3d(-0.75px, 0, 0);
    }

    20%, 80% {
        transform: translate3d(1.5px, 0, 0);
    }

    30%, 50%, 70% {
        transform: translate3d(-2.5px, 0, 0);
    }

    40%, 60% {
        transform: translate3d(2.5px, 0, 0);
    }
}
/* Force Bootstrap columns to calculate from constrained width */
.container-fluid {
    max-width: 1920px;
    margin: 0 auto;
}

/* Override Bootstrap's viewport-based calculations for fixed sidebars */
@media (min-width: 992px) {
    .op-sidebar-fixed {
        width: 25%; /* col-lg-3 = 25% of 1920px */
        max-width: 480px; /* 25% of 1920px */
    }

    .op-toc-sidebar {
        width: 16.666667%; /* col-lg-2 = ~16.67% of 1920px */
        max-width: 320px; /* 16.67% of 1920px */
        right: 0 !important;
        left: auto !important;
        position: fixed;
        margin-right: max(0px, calc((100vw - 1920px) / 2)); /* Only offset when > 1920px */
    }

    main.col-lg-7 {
        width: 58.333333%; /* col-lg-7 = ~58.33% of 1920px */
        max-width: 1120px; /* 58.33% of 1920px */
        margin-left: 25%; /* offset for sidebar */
    }
}

main:has(> div.homeContainer) {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0 !important;
    flex: 0 0 auto !important;
    width: 75% !important;
    max-width: 100% !important;
    height: calc(100vh - 61px);
}

@media (max-width: 991px) {
    main:has(> div.homeContainer) {
        width: 100% !important;
    }
}

body, main, p, .lead, section, .card-text {
    font-family: 'Roboto', 'HelveticaNeue', sans-serif;
}

    /*body, main, p, .lead, section, .card-text,*/

    .navbar-brand,
    .navbar-nav,
    .sidebar-heading,
    .nav-link,
    .op-nav-accordion,
    h1, h2, h3, h4, h5, h6 {
        font-family: 'JetBrainsMono', 'SFMono', monospace;
    }


/* Headers with Better Visual Hierarchy and Spacing */
h1 {
    font-size: 1.5rem; /* 24px */
    font-weight: 700;
    color: var(--bs-primary);
    line-height: 1.3;
    border-bottom: 1px solid var(--bs-primary);
    letter-spacing: -0.025em;
    padding-bottom:0.3rem;
    margin-bottom:1rem;
}

h2:not(.card-title, .card-title-right) {
    font-size: 1.25rem; /* 20px */
    font-weight: 600;
    /*color: var(--bs-primary);*/
    line-height: 1.3;
    padding-left: 1rem;
    border-left: 3px solid var(--bs-primary);
    position: relative;
    margin-bottom: 1rem;
}

h2:not(.card-title, .card-title-right)::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--bs-primary) 0%, transparent 100%);
}

h3:not(.card-title, .card-title-right) {
    font-size: 1.1rem; /* 17.6px */
    font-weight: 600;
    color: var(--bs-secondary);
    line-height: 1.4;
    margin-bottom: 1rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--bs-secondary);
}

h4:not(.card-title, .card-title-right) {
    font-size: 1rem; /* 16px */
    font-weight: 600;
    color: var(--bs-secondary);
    line-height: 1.4;
}

h5:not(.card-title, .card-title-right) {
    font-size: 0.9rem; /* 14.4px */
    font-weight: 600;
    color: var(--bs-secondary);
}

/* Paragraphs and Text Content */
p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

/* Lists */
ul, ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
    line-height: 1.7;
}
    ol li::marker {
        color: var(--color-border-accent);
        font-weight: 600;
    }

    ul li::marker {
        color: var(--color-border-accent);
        font-weight: 700;
    }

.navbar {
    background-color: var(--bs-tertiary-bg) !important;
    border-bottom: 1px solid var(--bs-border-color);
}

.navbar-nav .nav-link,
.sidebar .nav-link,
.nav .nav-link {
    color: var(--bs-body-color) !important;
}

    .navbar-nav .nav-link:hover,
    .sidebar .nav-link:hover,
    .nav .nav-link:hover {
        color: var(--bs-body-color) !important;
        opacity: 0.75;
    }

    .navbar-nav .nav-link.active,
    .sidebar .nav-link.active,
    .nav .nav-link.active {
        color: #FF6B00 !important;
        font-weight: 500;
    }

    .sidebar .nav-link.active {
        border-left: 1px solid rgba(var(--bs-primary-rgb), 1);
    }

[data-bs-theme="light"] .navbar-nav .nav-link.active,
[data-bs-theme="light"] .sidebar .nav-link.active,
[data-bs-theme="light"] .nav .nav-link.active {
    color: #cc5f01 !important;
    font-weight: 500;
}

[data-bs-theme="dark"] .btn-primary {
    background-color: #cc5f01 !important;
    border-color: #cc5f01 !important;
    color: #fff !important;
}

    [data-bs-theme="dark"] .btn-primary:hover {
        background-color: #FF6B00 !important;
        border-color: #FF6B00 !important;
        color: #fff !important;
    }

[data-bs-theme="light"] .btn-primary {
    background-color: #FF6B00 !important;
    border-color: #FF6B00 !important;
    color: #fff !important;
}

    [data-bs-theme="light"] .btn-primary:hover {
        background-color: #cc5f01 !important;
        border-color: #cc5f01 !important;
        color: #fff !important;
    }

.btn-primary:focus,
.btn-primary.focus {
    background-color: #FF6B00 !important;
    border-color: #FF6B00 !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.25) !important;
}

.btn-primary:active,
.btn-primary.active {
    background-color: #cc5f01 !important;
    border-color: #cc5f01 !important;
}

[data-bs-theme="dark"] .btn-outline-primary {
    color: #FF6B00 !important;
    border-color: #FF6B00 !important;
}

    [data-bs-theme="dark"] .btn-outline-primary.secondaryButton {
        color: #fff !important;
    }

    [data-bs-theme="dark"] .btn-outline-primary:hover {
        background-color: #FF6B00 !important;
        border-color: #FF6B00 !important;
        color: #fff !important;
    }

[data-bs-theme="light"] .btn-outline-primary {
    color: #cc5f01 !important;
    border-color: #cc5f01 !important;
}

    [data-bs-theme="light"] .btn-outline-primary.secondaryButton {
        color: #fff !important;
    }

    [data-bs-theme="light"] .btn-outline-primary:hover {
        background-color: #cc5f01 !important;
        border-color: #cc5f01 !important;
        color: #fff !important;
    }

[data-bs-theme="dark"] .link-primary,
[data-bs-theme="dark"] a.link-primary {
    color: #FF6B00 !important;
}

    [data-bs-theme="dark"] .link-primary:hover,
    [data-bs-theme="dark"] a.link-primary:hover {
        color: #cc5f01 !important;
        text-decoration-color: #cc5f01 !important;
    }

    [data-bs-theme="dark"] .link-primary:focus,
    [data-bs-theme="dark"] a.link-primary:focus {
        color: #FF6B00 !important;
        text-decoration-color: #FF6B00 !important;
        box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.25) !important;
    }

    [data-bs-theme="dark"] .link-primary:active,
    [data-bs-theme="dark"] a.link-primary:active {
        color: #cc5f01 !important;
        text-decoration-color: #cc5f01 !important;
    }

[data-bs-theme="light"] .link-primary,
[data-bs-theme="light"] a.link-primary {
    color: #cc5f01 !important;
}

    [data-bs-theme="light"] .link-primary:hover,
    [data-bs-theme="light"] a.link-primary:hover {
        color: #FF6B00 !important;
        text-decoration-color: #FF6B00 !important;
    }

    [data-bs-theme="light"] .link-primary:focus,
    [data-bs-theme="light"] a.link-primary:focus {
        color: #cc5f01 !important;
        text-decoration-color: #cc5f01 !important;
        box-shadow: 0 0 0 0.25rem rgba(204, 95, 1, 0.25) !important;
    }

    [data-bs-theme="light"] .link-primary:active,
    [data-bs-theme="light"] a.link-primary:active {
        color: #FF6B00 !important;
        text-decoration-color: #FF6B00 !important;
    }

[data-bs-theme="dark"] .text-primary {
    color: #FF6B00 !important;
}

[data-bs-theme="light"] .text-primary {
    color: #cc5f01 !important;
}

[data-bs-theme="dark"] .border-primary {
    border-color: #FF6B00 !important;
}

[data-bs-theme="light"] .border-primary {
    border-color: #cc5f01 !important;
}

[data-bs-theme="dark"] .form-check-input:checked {
    background-color: #cc5f01 !important;
    border-color: #cc5f01 !important;
}

[data-bs-theme="dark"] .form-check-input:focus {
    border-color: #cc5f01 !important;
    box-shadow: 0 0 0 0.25rem rgba(204, 95, 1, 0.25) !important;
}

[data-bs-theme="dark"] .form-control:focus {
    border-color: rgba(204, 95, 1, 0.5) !important;
    box-shadow: 0 0 0 0.25rem rgba(204, 95, 1, 0.25) !important;
}

[data-bs-theme="dark"] .badge.bg-primary,
[data-bs-theme="dark"] .badge.text-bg-primary {
    background-color: #cc5f01 !important;
    color: #fff !important;
}

[data-bs-theme="light"] .form-check-input:checked {
    background-color: #FF6B00 !important;
    border-color: #FF6B00 !important;
}

[data-bs-theme="light"] .form-check-input:focus {
    border-color: #FF6B00 !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.25) !important;
}

[data-bs-theme="light"] .form-control:focus {
    border-color: rgba(255, 107, 0, 0.5) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.25) !important;
}

[data-bs-theme="light"] .badge.bg-primary,
[data-bs-theme="light"] .badge.text-bg-primary {
    background-color: #FF6B00 !important;
    color: #fff !important;
}

[data-bs-theme="dark"] .progress-bar {
    background-color: #cc5f01 !important;
}

[data-bs-theme="light"] .progress-bar {
    background-color: #FF6B00 !important;
}

.accordion-button {
    color: #FF6B00 !important;
}

    .accordion-button::after {
        filter: brightness(0) saturate(100%) invert(45%) sepia(100%) saturate(3000%) hue-rotate(15deg) brightness(100%) contrast(100%) !important;
    }

    /*.accordion-button:focus {
        border-color: #FF6B00 !important;
        box-shadow: 0 0 0 0.15rem rgba(255, 107, 0, 0.15) !important;
    }*/

    .accordion-button:not(.collapsed) {
        color: #FF6B00 !important;
        background-color: rgba(255, 107, 0, 0.1) !important;
        box-shadow: none !important;
        border-bottom: 1px dotted rgba(var(--bs-secondary-rgb), 0.35);
    }

        .accordion-button:not(.collapsed)::after {
            filter: brightness(0) saturate(100%) invert(45%) sepia(100%) saturate(3000%) hue-rotate(15deg) brightness(100%) contrast(100%) !important;
        }

.op-nav-accordion, .op-nav-accordion .accordion-button, .sidebar-heading, #table-of-contents {
    font-size: 13px;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.op-nav-accordion .accordion-button {
    font-weight: 600;
}

.op-nav-accordion .accordion-button::after,
.op-nav-accordion .accordion-button:not(.collapsed)::after {
    opacity: 0.5 !important;
}

[data-bs-theme="light"] .accordion-button:not(.sidebar, .accordion-button) {
    color: #cc5f01 !important;
}

    [data-bs-theme="light"] .accordion-button:not(.sidebar, .accordion-button):not(.collapsed) {
        color: #cc5f01 !important;
        background-color: rgba(204, 95, 1, 0.1) !important;
    }

.sidebar .accordion-button, .op-mobile-nav-scroll .accordion-button {
    color: var(--bs-body-color) !important;
    font-family: 'JetBrainsMono', 'SFMono', monospace !important;
}

    .sidebar .accordion-button:not(.collapsed), .op-mobile-nav-scroll .accordion-button:not(.collapsed) {
        color: var(--bs-body-color) !important;
        background-color: transparent !important;
    }

.op-nav-sub-title {
    padding: .5rem 0 .5rem 1.5rem;
}

.op-nav-accordion .accordion-body > div.ms-3:first-of-type > .op-nav-sub-title {
    padding-top: 1rem;
}

.sidebar .nav-link, .op-mobile-nav-scroll .nav-link {
    margin-left: 1.65rem !important;
    padding-left: 1.85rem !important;
    border-left: 1px dotted rgba(var(--bs-secondary-rgb), 0.35);
}

.sidebar-heading {
    border-bottom: 1px dotted var(--bs-border-color) !important;
    opacity: 0.7 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.op-accordion-toggle {
    background: none !important;
    border: none !important;
    color: var(--bs-body-color) !important;
    padding: 0 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    opacity: 0.5 !important;
    transition: opacity 0.2s ease !important;
}

    .op-accordion-toggle:hover {
        opacity: 0.8 !important;
    }

    .op-accordion-toggle:active {
        opacity: 1 !important;
    }

    .op-accordion-toggle .fa-plus-square {
        text-align:center;
        width:1.2rem;
    }
/* 
.op-mobile-nav-scroll .nav-link {
    padding-left: 1.75rem !important;
} */


.op-logo {
    height: 32px;
    width: auto;
}


[data-bs-theme="light"] .op-logo {
    content: url("../img/logo_light.svg");
}

[data-bs-theme="dark"] .op-logo {
    content: url("../img/logo_dark.svg");
}


.op-main-container {
    padding-top: 58px;
}

.op-sidebar-fixed {
    position: fixed;
    top: 58px;
    bottom: 0;
    overflow-y: scroll;
}

.op-toc-sidebar {
    position: fixed;
    top: 58px;
    right: 0;
    bottom: 0;
    overflow-y: auto;
}

.op-mobile-nav-scroll {
    max-height: 60vh;
    overflow-y: auto;
}


.op-theme-toggle.form-check {
    padding-left: 0;
    min-height: auto;
    margin-top: .15rem;
}

.op-theme-toggle .form-check-input {
    margin: 0;
}


    .op-theme-toggle .form-check-input:checked {
        background-color: #FF6B00;
        border-color: #FF6B00;
    }

.op-theme-toggle .form-check-input:focus {
    border-color: #FF6B00;
    box-shadow: 0 0 0 0.25rem rgba(255, 107, 0, 0.25);
}

/* Custom icons */

.icon-opnet {
    background-image: url(/img/opnet.png);
}
.icon-unisat {
    background-image: url(/img/unisat.png);
}
.icon-xverse {
    background-image: url(/img/xverse.png);
}
.icon-moto {
    background-image: url(/img/moto.png);
}
.icon-nextjs {
    background-image: url(/img/nextjs.png);
}

#navbarSupportedContent.show .navbar-nav.border-gray {
    border-top: none;
    border-bottom: none;
}

@media (max-width: 991px) {
    #navbarSupportedContent.show .navbar-nav.border-gray {
        border-top: 1px solid var(--bs-border-color);
        border-bottom: 1px solid var(--bs-border-color);
    }
}


/* TABLE */

table.table thead th {
    color: var(--bs-primary);
}

/**/
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
    margin: 12px 0;
}

.svg-container {
    max-width: 800px;
    width: 100%;
    margin: 10px 0;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, rgba(var(--bs-secondary-rgb), 0.1), rgba(var(--bs-secondary-rgb), 0.01));
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -1px rgba(0, 0, 0, 0.05);
}

svg {
    width: 100%;
    height: auto;
    display: block;
}



.svg-container.fullscreen {
    position: fixed;
    top: 50%;
    left: 50%;
    max-width: none;
    width: 90vw;
    height: 90vh;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, rgba(var(--bs-secondary-rgb), 0.1), rgba(var(--bs-secondary-rgb), 0.01));
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
    .svg-container.fullscreen::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    .svg-container.fullscreen svg {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
    }

    .svg-container.fullscreen .modal-backdrop {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

.svg-expand-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    z-index: 10000;
    background: transparent;
    border: none;
    color: var(--bs-secondary);
    border-radius: 0.25rem;
}

    .svg-expand-btn:hover {
        background: linear-gradient(to bottom, rgba(20, 20, 20, 0.4), rgba(20, 20, 20, 0.7));
        color: var(--bs-btn-primary-color);
    }


.modal-backdrop {
    display: none;
}


.formula {
    background-color: #2d2d2d;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 15px 25px;
    margin: 20px 0;
    text-align: center;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 15px;
}

.highlight-purple {
    color: #9b59b6;
}

.highlight-blue {
    color: #3498db;
}

.highlight-green {
    color: #27ae60;
}

.highlight-orange {
    color: #f39c12;
}

.highlight-red {
    color: #e74c3c;
}

.highlight-teal {
    color: #1abc9c;
}


.pagination {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    font-family: system-ui, sans-serif;
}

.complementary-info {
    font-size: 0.9rem; 
    color: #95a5a6;
}
