:root {
    --docs-bg-color:  rgba(250, 239, 199, 0.25);
    --sidebar-bg-color: rgba(250, 239, 199, 0.25);
    --border-color: #e0e6ef;
    --text-color: #3b4554;
    --accent-color: #64BDC0;
    --hover-color: rgba(250, 232, 221, 0.6);
}
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: var(--docs-bg-color);
    color: var(--text-color);
    height: 100%;
}

.docs-article {
    padding-bottom: 8rem;
}
.docs-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    overflow: visible;
}
.docs-sidebar {
    width: 280px;
    background-color: var(--sidebar-bg-color);
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.docs-nav {
    padding: 0 0 20px;
}

.docs-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#navContainer {
    flex-grow: 1;
    overflow-y: visible;
    overflow-x: hidden;
    padding-bottom: 60px;
}
.nav-section.expanded > .nav-submenu,
.nav-subsection.expanded > .nav-submenu {
    max-height: 1000px; /* A large value to ensure it fully expands */
}

.nav-toggle-icon {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease-in-out;
}

.nav-section.expanded .nav-toggle-icon,
.nav-subsection.expanded .nav-toggle-icon {
    transform: rotate(90deg);
}

.nav-section > a.nav-link.nav-toggle,
.nav-subsection > a.nav-link.nav-toggle {
    font-weight: 600;
    padding: 12px 15px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-submenu a.nav-link {
    padding: 8px 15px 8px 30px; /* Indent submenu items */
}

.nav-subsection > a.nav-link.nav-toggle {
    padding-left: 30px; /* Indent sub-section toggles */
}

.nav-submenu .nav-link {
    font-size: 14px;
    padding-left: 45px; /* Further indent nested items */
}
/* This is how the submenu is hidden by default. */
.nav-submenu {
    display: grid;
    grid-template-rows: 0fr;
    max-height: 0;
    overflow: hidden;
    transition: grid-template-rows 0.3s ease-in-out;
}
/* Expanded state (Visible) */
.nav-section.expanded > .nav-submenu,
.nav-subsection.expanded > .nav-submenu {
    grid-template-rows: 1fr; /* Row takes up 1 fractional unit height (effectively height: auto) */
}
.nav-link {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border-radius: 8px;
    margin: 0 8px;
}

.nav-link:hover {
    background-color: var(--hover-color);
    color: var(--accent-color);
}

.nav-link.active {
    background-color: var(--hover-color);
    color: var(--accent-color);
    position: relative;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--accent-color);
    border-radius: 0 4px 4px 0;
}



/* Simple button styling */
.hide-sidebar-btn {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 20;
}

.hide-sidebar-btn:hover {
    opacity: 0.5;
}

.docs-content {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    flex-grow: 1;
    overflow-y: auto;
    height: 100vh; /* This makes the content container fill the viewport height */
}
.breadcrumb {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9rem;
}
.docs-title-with-icon {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}
.docs-page-icon {
    width: 120px;
    height: 120px;
    margin-top: 4px;
    flex-shrink: 0;
}
.docs-title-content {
    flex: 1;
}
.docs-heading {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #222;
}
.docs-time {
    font-size: 0.9rem;
    color: #666;
    font-weight: normal;
}
.docs-intro {
    background: #e7f3ff;
    border-left: 4px solid #64BDC0;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}
.docs-section {
    margin: 40px 0;
}
.section-heading {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #64BDC0;
    padding-bottom: 5px;
}
.nav-buttons {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}
.btn {
    padding: 10px 20px;
    background: #64BDC0;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}
.btn-outline {
    background: transparent;
    border: 1px solid #64BDC0;
    color: #64BDC0;
}
.btn:hover {
    opacity: 0.9;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}
th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}
th {
    background: #f8f9fa;
    font-weight: bold;
}
ol, ul {
    margin: 15px 0;
    padding-left: 30px;
}
li {
    margin: 8px 0;
}
kbd {
    background: #f1f3f4 !important;
    border: 1px solid #dadce0;
    border-radius: 4px;
    color: #3c4043 !important;
    font-family: monospace;
    font-size: 11px;
    padding: 2px 6px;
}
.tip-box {
    background: #f0f9ff;
    border-left: 4px solid #64BDC0;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}
.browser-warning-box {
    background: #f0f5ff;
    border-left: 4px solid #306dbc;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}
.warning-box {
    background: #fff0f0;
    border-left: 4px solid #d64541;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}
.mem-box {
    background: #f9f0ff;
    border-left: 4px solid #ac41d6;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}
.note-box {
    background: #f0fff1;
    border-left: 4px solid #2cb118;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}
.nav-section {
    position: relative;
}

.nav-subsection {
    position: relative;
}

.nav-submenu .nav-link {
    padding-left: 10px;
    font-size: 0.9em;
    color: #666;
}

.nav-submenu .nav-link:hover {
    color: #000000;
}
.color-indicator {
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.9em;
}

.color-indicator.red {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.color-indicator.blue {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #42a5f5;
}
.color-indicator.green {
    background-color: #e4fde3;
    color: #18a614;
    border: 1px solid #3fe847;
}

.color-indicator.pink {
    background-color: #fce4ec;
    color: #ad1457;
    border: 1px solid #e91e63;
}
.color-indicator.yellow {
    background-color: #fcf8e4;
    color: #ad8914;
    border: 1px solid #e9df1e;
}
.alignment-indicator {
    color: #d32f2f;
    font-weight: bold;
    border-bottom: 2px dashed #d32f2f;
    padding-bottom: 1px;
}
.alignment-fold.grey {
    color: #919090;
    font-weight: bold;
    border-bottom: 2px dashed #808080;
    padding-bottom: 1px;
}
.alignment-outline {
    color: #3d322c;
    font-weight: bold;
    border-bottom: 2px solid #000000;
    padding-bottom: 1px;
}
.alignment-fold.aqua {
    color: #44a882;
    font-weight: bold;
    border-bottom: 2px dashed #35916b;
    padding-bottom: 1px;
}
.solid-line.green {
    color: green;
    font-weight: bold;
    border-bottom: 2px solid green;
    padding-bottom: 1px;
}
.solid-line.blue {
    color: blue;
    font-weight: bold;
    border-bottom: 2px solid blue;
    padding-bottom: 1px;
}
.color-indicator.gradient {
    background: radial-gradient(circle, #333 20%, #666 60%, #999 100%);
    color: white;
    border: 1px solid #333;
}
.pt_key { fill: black; }
.pt_blue { fill: blue; }
.pt_ref { fill: #eea377; }
.pt_info { fill: darkgreen; }
.polyline_key { fill: none; stroke: black; stroke-width: 2; }
.dart_leg { fill: none; stroke: blue; stroke-width: 2; stroke-dasharray: 4; }
.polyline_ref { fill: none; stroke: #eea377; stroke-width: 2; }
.line_info { fill: none; stroke: darkgreen; stroke-width: 2; }
.line_key{
    fill: none;
    stroke: #000000;
    stroke-width: 0.5;
}
.pt_curve{
    fill: #58d961;
    font-family: Arial, sans-serif;;
}
.line_guide{
    fill: none;
    stroke: #9D05FF;
    stroke-width: 0.5;
}
.button{
    fill: none;
    stroke: #06c2ff;
    stroke-width: 0.5;
    stroke-dasharray: 1;
}


.disabled {
    pointer-events:none;
    opacity:0.6;
}
#arrow{
    fill: darkgreen;
    stroke: none;
}
/*pattern seam allowance*/
.seam_allowance{
    fill: none;
    stroke: blue;
    stroke-width: 0.5;
}
/*pattern outline*/
.outline{
    fill: none;
    stroke: #000000;
    stroke-width: 0.5;
}
.legend-container {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}
.legend-section {
    margin-bottom: 20px;
}
.legend-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #495057;
}
.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
}
.legend-item svg {
    flex-shrink: 0;
}
