/*
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    background-color: #f8f9fa;
    color: #333;
}
*/
/* Sidebar styling */
.sidebar {
    width: 300px;
    background-color: #2c3e50;
    color: #ecf0f1;
    overflow-y: auto;
    height: 100vh;
    position: fixed;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid #34495e;
    background-color: #1a252f;
}

.sidebar-header h1 {
    font-size: 1.6rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header h1 i {
    color: #3498db;
}

.gd-nav-section {
    padding: 20px 0;
    border-bottom: 1px solid #34495e;
}

.gd-nav-title {
    padding: 10px 20px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #3498db;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gd-nav-title i {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.gd-nav-list {
    list-style-type: none;
}

.gd-nav-link {
    display: block;
    padding: 12px 20px 12px 35px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #ecf0f1;
    border-left: 3px solid transparent;
}

.gd-nav-link:hover {
    background-color: #34495e;
    border-left: 3px solid #3498db;
}

.gd-nav-link.active {
    background-color: #3a506b;
    border-left: 3px solid #3498db;
    font-weight: 500;
}

.gd-nav-link i {
    margin-right: 10px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.gd-sub-item {
    padding-left: 45px;
    font-size: 0.95rem;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Main content styling */
.main-content {
    flex: 1;
    margin-left: 300px;
    padding: 30px;
    max-width: 1000px;
}

.section {
    margin-bottom: 60px;
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    scroll-margin-top: 100px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eaeaea;
}

.section-header h1 {
    font-size: 2.2rem;
    color: #2c3e50;
}

.breadcrumb {
    color: #7f8c8d;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.wiki-content {
    line-height: 1.6;
}

.wiki-content h2 {
    color: #2c3e50;
    margin: 25px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.wiki-content h3 {
    color: #34495e;
/*    margin: 20px 0 10px 0;*/
    margin: 20px 0 0px 0;
}

.wiki-content p {
    margin-bottom: 15px;
}

.wiki-content ul, .wiki-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.wiki-content li {
    margin-bottom: 8px;
}

.code-block {
    background-color: #f4f4f4;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

.info-box {
    background-color: #e8f4fc;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.info-box h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.diagram-placeholder {
    background-color: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 25px 0;
    color: #7f8c8d;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th {
    background-color: #f2f2f2;
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

table td {
    padding: 10px 15px;
    border: 1px solid #ddd;
}

.footer {
    margin-top: 40px;
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Back to top button */
/*
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #3498db;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}
*/

/* Responsive design */
@media (max-width: 992px) {
    .sidebar {
        width: 250px;
    }
    
    .main-content {
        margin-left: 250px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        max-height: 300px;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    body {
        flex-direction: column;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}


/* Version Select Styling */
.gd-version-select {
    width: 100%;
    margin-top: 10px;
    padding: 8px 35px 8px 12px; /* Right padding creates space for the custom arrow */
    font-family: inherit;
    font-size: 0.95rem;
    color: #2c3e50; /* Matches your main text color */
    background-color: #ffffff;
    border: 1px solid #bdc3c7; /* Soft grey border */
    border-radius: 4px;
    cursor: pointer;
    
    /* Remove default browser arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    /* Add custom grey chevron arrow (SVG) */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f8c8d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 1em;

    /* Smooth transition matching the rest of the UI */
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gd-version-select:hover {
    border-color: #3498db; /* Blue hover effect matching nav links */
}

.gd-version-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2); /* Blue glow on focus */
}

/* OPTIONAL: Styling if you place this inside the dark Sidebar */
.sidebar .gd-version-select {
    background-color: #34495e;
    color: #ecf0f1;
    border-color: #2c3e50;
}


ul.indented,
ol.indented li {
    margin-left: 20px;
}

ol.indented li::marker {
    font-weight: bold;
}

ul.indented,
ol.indented p {
    margin-left: 30px;
}

ul.indented,
ol.indented ul{
	list-style-type: disc;
    margin-left: 40px;
}

code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	background-color: #f1f3f5;
	color: #d63384;
	padding: 0.2em 0.4em;
	border-radius: 3px; /*6px;*/
	font-size: 87%;
	font-weight: 600;
}




        /* 
         * Module Container (The "Single Rectangle") 
         */
        .module-container {
            background: var(--bg-paper);
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 4rem;
            margin-bottom: 3rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        }

        .module-header {
            border-bottom: 1px solid #e2e8f0;
            padding-bottom: 2rem;
            margin-bottom: 3rem;
        }

        .module-title {
            font-size: 2.25rem;
            color: var(--text-heading);
            margin-bottom: 0.5rem;
            font-weight: 800;
        }

        .module-desc {
            font-size: 1.1rem;
            color: var(--secondary-color);
        }

        /* 
         * Function Entry inside Module 
         */
        .function-entry {
            margin-bottom: 4rem; /* Large spacing between functions */
            scroll-margin-top: calc(var(--header-height) + 2rem);
        }

        .function-entry:last-child {
            margin-bottom: 0;
        }

        h2.function-name {
            font-size: 1.75rem;
            color: var(--text-heading);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .function-badge {
            font-size: 0.75rem;
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
            text-transform: uppercase;
            font-weight: 600;
            letter-spacing: 0.05em;
            vertical-align: middle;
        }
        
        .badge-client { 
            background-color: #eff6ff; 
            color: #1d4ed8; 
            border: 1px solid #bfdbfe; 
        }

        .badge-server { 
            background-color: #f0fdf4; 
            color: #15803d; 
            border: 1px solid #bbf7d0; 
        }

        .badge-config { 
            background-color: #faf5ff; 
            color: #7e22ce; 
            border: 1px solid #d8b4fe; 
        }

        .badge-hardware { 
            background-color: #fff7ed; 
            color: #c2410c; 
            border: 1px solid #fdba74; 
        }

        .badge-io { 
            background-color: #ecfeff; 
            color: #0e7490; 
            border: 1px solid #67e8f9; 
        }

        .badge-internal { 
            background-color: #f3f4f6; 
            color: #4b5563; 
            border: 1px solid #d1d5db; 
        }

        .badge-lifecycle { 
            background-color: #eef2ff; 
            color: #4338ca; 
            border: 1px solid #a5b4fc; 
        }

        .badge-data { 
            background-color: #f0fdf4; 
            color: #15803d; 
            border: 1px solid #86efac; 
        }

        .badge-state { 
            background-color: #f8fafc; 
            color: #334155; 
            border: 1px solid #cbd5e1; 
        }

        .badge-control { 
            background-color: #fff1f2; 
            color: #be123c; 
            border: 1px solid #fda4af; 
        }

        .function-signature {
            font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            padding: 1rem;
            border-radius: 6px;
            font-size: 0.9rem;
            color: #334155;
            margin-bottom: 1.5rem;
            overflow-x: auto;
        }

        h3 {
            font-size: 1rem;
            color: var(--text-heading);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin: 2rem 0 1rem 0;
            font-weight: 700;
        }

        /* 
         * Code Blocks 
         */
        pre {
            background: #1e293b;
            color: #e2e8f0;
            padding: 1.5rem;
            border-radius: 8px;
            overflow-x: auto;
            font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
            font-size: 0.9rem;
            margin-bottom: 1.5rem;
            border: 1px solid #334155;
        }
        .function-signature code{
            background-color: #1e293b !important;
            color:#e2e8f0 !important;
        }

        .function-entry code {
            padding: 0px;
        }

        .data-table code {
            background: #f1f5f9;
            /*padding: 0.2rem 0.4rem;*/
            border-radius: 4px;
            font-size: 0.85em;
            color: #d946ef;
        }

        .data-table {
            margin-top:0px !important;
        }

        /* Syntax Highlighting */
        .kw { color: #c084fc; } /* Keyword */
        .fn { color: #60a5fa; } /* Function */
        .str { color: #34d399; } /* String */
        .com { color: #64748b; font-style: italic; } /* Comment */
        .num { color: #f472b6; } /* Number */


