/* Dark Mode Site CSS - Part 1 */
/* Professional dark layout and navigation for industrial/mechanical engineering documentation */

body {
    margin: 0;
    padding: 0;
    background: #0F172A;
    color: #E2E8F0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-y: auto;
    margin-left: 280px;
}

.chapter div img  {
  background-color: white;
  padding: 10px;
  border-radius: 10px;
}

#bar {
	height: 0px;
	padding-top: 4px;
    background: transparent;
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
	z-index: 1000;
	padding-left: 12px;
	font-size: 16pt;
	color: black;
}

#header-text {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#message {
    background: #1E293B;
    color: #60A5FA;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    border: 1px solid #334155;
}

/* Professional code blocks for dark mode */
.verbatim {
    background: #020617;
    color: #F1F5F9;
    padding: 16px 20px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #1E293B;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    overflow-x: auto;
}

/* Enhanced sidebar for dark mode */
#sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 200px;
    height: calc(100vh - 60px);
    background: linear-gradient(180deg, #1E293B 0%, #334155 100%);
    border-right: 1px solid #475569;
    padding: 0;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}

#sidebar h2 {
    background: #0F172A;
    color: #F1F5F9;
    margin: 0;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #1E293B;
}

.chapter-link {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #334155;
    transition: all 0.2s ease;
}

.chapter-link:hover {
    background: #0F172A;
    border-left: 3px solid #60A5FA;
}

.chapter h3 {
    color: #94A3B8;
    padding: 16px 20px 8px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chapter a:link, .chapter a:visited, .chapter a:active {
    color: #E2E8F0;
    text-decoration: none;
    font-weight: 500;
    display: block;
    transition: color 0.2s ease;
}

.chapter a:hover {
    color: #60A5FA;
    text-decoration: none;
}

/* Enhanced main content area for dark mode */
#main {
	float:right;
	padding:10px;
	padding-top: 0px;
	margin-top: 7px;
	margin-right: 20px;
	margin-bottom: 40px;
	z-index: -20;
	overflow: auto;
    border-left: 1px solid #E2E8F0;
    background: #0F172A;
    border-left: 1px solid #334155;
}

.chapter {
    display: none;
    line-height: 1.6;
    background: transparent;
    padding: 0;
    margin: 0;
    max-width: 1200px;
    margin-top:80px;
}

/* Professional table of contents scroll area for dark mode */
#scrollarea {
    background: #1E293B;
    border: 1px solid #334155;
     border-radius: 6px;
    padding: 5px;
    padding-left: 10px;
    padding-top: 10px;
    margin-top: 0px;
	height: 50%; 
    overflow-y: auto;
    overflow-x: hidden; 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Enhanced navigation styling for dark mode */
#navigation a:link {
    text-decoration: none;
    color: #E2E8F0;
    font-weight: 500;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

#navigation a:visited {
    color: #E2E8F0;
}

#navigation a:hover {
    color: #60A5FA;
    background: #0F172A;
}

#navigation ul {
    background: transparent;
    list-style: none;
    padding: 0;
    margin: 0;
}

#navigation li {
    line-height: 1.4;
    list-style: none;
    margin: 0;
    border-bottom: 1px solid #334155;
}

#navigation li:last-child {
    border-bottom: none;
}

/* Professional treeview for dark mode */
#navigation.treeview {
    margin-top: 16px;
}

.treeview-gray {
    margin-left: 0;
}

.treeview-gray li {
    background: transparent;
    border-bottom: 1px solid #334155;
    padding: 4px 0;
}

.treeview-gray li:first-child {
    border-top: none;
}

.treeview-gray li li:first-child {
    border-top: none;
}

.treeview-gray li li {
    border-bottom: none;
    margin-left: 16px;
}

/* Enhanced table styling for dark mode */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
    background: #1E293B;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.table {
    margin-bottom: 32px;
}

table td, table th {
    border: 1px solid #334155;
    padding: 12px 16px;
    line-height: 1.5;
    vertical-align: top;
    color: #E2E8F0;
}

table th {
    background: #0F172A;
    font-weight: 600;
    color: #F1F5F9;
    text-align: left;
}

table thead td {
    background: #0F172A;
    font-weight: 600;
    color: #F1F5F9;
}

table tbody tr:nth-child(even) {
    background: #334155;
}

table tbody tr:hover {
    background: #475569;
}

td p {
    margin: 0;
    padding: 0;
    color: #E2E8F0;
}

/* Enhanced headings for dark mode */
h4 {
    color: #E2E8F0;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 24px;
}

h2 {
    color: #F1F5F9;
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #334155;
}

.chapter h2 {
    line-height: 1.3;
}

/* Professional document sections for dark mode */
#document-description {
    background: #0F172A;
    color: #F1F5F9;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 16px;
}

#document-description-text {
    background: #1E293B;
    color: #E2E8F0;
    padding: 16px 24px;
    margin: 0;
    line-height: 1.5;
}

/* Enhanced margins and spacing */
.margin {
    padding-right: 32px;
    margin-left: 0;
}

.no-margin {
    padding-right: 32px;
    margin-left: 0;
}

/* Table of contents enhancements for dark mode */
.toc-changed-marker {
    color: #F87171;
    font-weight: 600;
    font-size: 16px;
}

#main li p {
    margin: 0;
    padding: 0;
    color: #CBD5E1;
}

#sidebar .toc-header {
    background: #1E293B;
    color: #F1F5F9;
    margin: 0;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

.chapter-toc {
    display: block;
    font-size: 13px;
    text-decoration: none;
    line-height: 1.4;
    color: #94A3B8;
    padding: 6px 20px 6px 40px;
    border-bottom: 1px solid #334155;
    transition: all 0.2s ease;
}

.chapter-toc:active, .chapter-toc:link, .chapter-toc:visited {
    color: #94A3B8 !important;
}

.chapter-toc:hover {
    background: #0F172A;
    color: #60A5FA !important;
}

.chapter-toc:hover .text {
    text-decoration: underline !important;
}

/* Professional info tooltips for dark mode */
a.info {
    position: relative;
    z-index: 24;
    color: #60A5FA;
    text-decoration: underline;
    background: transparent;
    line-height: inherit;
    font-weight: 500;
}

a.info:hover {
    z-index: 25;
    color: #93C5FD;
}

a.info span {
    display: none;
}

/* Enhanced comment system for dark mode */
.comment {
    cursor: pointer;
    color: #60A5FA;
    font-weight: 500;
    background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #3B82F6;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
}

.comment:hover {
    background: linear-gradient(135deg, #1E40AF 0%, #2563EB 100%);
    border-color: #60A5FA;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(30, 64, 175, 0.3);
    color: #F1F5F9;
}

.comment-panel {
    color: #CBD5E1;
    display: block;
    position: fixed;
    bottom: 80px;
    left: 300px;
    border: 1px solid #475569;
    border-radius: 6px;
    background: #1E293B;
    text-align: left;
    padding: 16px;
    font-size: 14px !important;
    line-height: 1.5 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    max-width: 400px;
}

.comment-entry {
    padding: 0;
    margin: 0;
}

.comment-entry:not(:first-child) {
    border-top: 1px solid #334155;
    padding-top: 12px;
    margin-top: 12px;
}

.comment-entry .content {
    border-top: none !important;
    background: transparent !important;
    padding-left: 0 !important;
    color: #CBD5E1 !important;
}

/* Professional status indicators for dark mode */
.toc-line-descendant-chapter-changed .text {
    color: #34D399 !important;
    font-weight: 500;
}

.toc-line-chapter-changed .text {
    color: #34D399 !important;
    font-weight: 500;
}

.toc-line-chapter-deleted .text {
    color: #64748B !important;
    text-decoration: line-through;
}

.toc-line-chapter-new .text {
    color: #60A5FA !important;
    font-weight: 500;
}

.toc-line-chapter-not-changed .text {
    color: #E2E8F0 !important;
}

/* Dark Mode Site CSS - Part 2 */
/* Fortsetzung der Dark Mode Styles */

/* Enhanced top navigation for dark mode */
#toc-links {
    position: fixed;
    bottom: 15px;
    left: 0px;
    right: auto;
    z-index: 10000;
    background: rgba(31, 41, 55, 0.95);
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 12px 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    user-select: none;
    transition: all 0.3s ease;
    width: auto;
    min-width: 200px;
    max-width: calc(200px - 30px);
}

#toc-links td {
	border: none;
	padding: 0;
}

#toc-links tr {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#collapse-link, #index-link {
    color: #D1D5DB;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 9px;
    border-radius: 4.5px;
    font-size: 9px;
    transition: all 0.2s ease;
}

#collapse-link:hover, #index-link:hover {
    background: #0F172A;
    color: #FFFFFF;
}

/* Responsive behavior for mobile sidebar collapse */
@media (max-width: 768px) {
    #toc-links {
        display: none;
    }
}

/* Professional cover page elements for dark mode */
.cover-link {
    font-weight: 600;
    color: #60A5FA;
    line-height: 1.5;
    font-family: inherit;
    font-size: 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #334155;
    transition: all 0.2s ease;
}

.cover-link:hover {
    color: #93C5FD !important;
    text-decoration: none;
    background: #0F172A;
    cursor: pointer;
}

.cover-logo {
    margin-top: 32px;
    text-align: center;
}

/* Enhanced element indicators for dark mode */
#shown-element-index {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    background: #1E3A8A;
    color: #BFDBFE;
    border-radius: 4px;
    border: 1px solid #1E40AF;
}

/* Professional search functionality for dark mode */
.searchfield {
    border-radius: 20px !important;
    border: 2px solid #475569 !important;
    background: #1E293B;
    color: #E2E8F0;
    padding: 8px 16px !important;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 200px;
}

.searchfield:focus {
    border-color: #60A5FA !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
    outline: none;
}

.searchfield::placeholder {
    color: #94A3B8;
}

#searchpanel {
	width:382px;
	height:200px;
	position:fixed;
	background-color: #f3f3f3;
	border-left:black 1pt solid;
	border-bottom:black 1pt solid;
	border-radius:10px !important;
    -moz-border-radius:10px !important;
    -webkit-border-radius:10px !important;
    	overflow-y: auto; 
	overflow-x: hidden;
    top: 70px;
    right: 22px;
    z-index: 400;
}

#searchpanel a:link, #searchpanel a:visited, #searchpanel a:active {
	color: #41C0D3;
	text-decoration: none;
}

#searchpanel li:nth-child(odd){
    background-color: white;
    padding-top: 3px;
    padding-bottom: 3px;
}

#searchpanel a:hover {
	text-decoration: underline;
}

#searchpanel ul {
	list-style-type: none;
	padding:0px;
}

#searchpanel li {
	padding-left: 5px;
	padding-right: 5px;
}

#searchpanel p {
	padding:0px;
	line-height: 110%;
}

#text-type-switch {
	padding-top: 8px;
}

/* Professional button styling for dark mode */
.buttons ul {
    list-style: none;
    padding: 16px;
    padding-top: 0;
    margin: 0;
    display: flex;
    gap: 12px;
}

.buttons li {
    display: inline-block;
    margin: 0;
}

.buttons .info.menu {
    background: #1E40AF;
    color: #F1F5F9;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid #1E3A8A;
    cursor: pointer;
}

.buttons .info.menu:hover {
    background: #1E3A8A;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(30, 58, 138, 0.3);
}

/* Enhanced navigation elements for dark mode */
#nav {
    position: fixed;
    right: 120px;
    top: 10px;
    z-index: 100;
}

/* Professional logo and branding for dark mode */
#logo-image {
    position: fixed;
    left: 16px;
    bottom: 40px;
    width: 60px;
    height: 60px;
    border: 2px solid #475569;
    border-radius: 8px;
    padding: 8px;
    background: #1E293B;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}


#attachments-label {
    display:none;
}

/* Professional back button for dark mode */
#backbutton {
    position: fixed;
    right: 40px;
    top: 160px;
    background: #1E293B;
    border: 1px solid #475569;
    border-radius: 6px;
    padding: 8px 12px;
    font-weight: 500;
    color: #E2E8F0;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

#backbutton:hover {
    background: #0F172A;
    border-color: #60A5FA;
    color: #60A5FA;
}

/* Enhanced header styling for dark mode */
#header h1 {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #F1F5F9;
    margin: 0;
    padding: 16px 24px;
   width: 100% !important;
    font-size: 20px;
  right: 20px;
  left: 0px;
      font-weight: 600;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.4);
    border: 1px solid #334155;
  position: fixed;
  z-index:10;
}

/* Professional TOC selection for dark mode */
.toc-selected {
    font-weight: 600 !important;
    color: #60A5FA !important;
    background: #1E3A8A;
    border-left: 3px solid #60A5FA;
}

/* Enhanced page browser for dark mode */
#page-browser-arrows {
	position: fixed;
	bottom: 20px;
	right: 38px;
	background-color: white;
	padding-top:6px;
}

#page-browser-arrows td {
    border: none;
    padding: 1px;
}


#page-browser-arrows td a:hover {
    background: #1E3A8A;
    color: #60A5FA;
}

/* Professional version and date display for dark mode */
#date-version {
    position: fixed;
    top: 80px;
    right: 40px;
    font-size: 10px;
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
    background: #1E293B;
    color: #F1F5F9;
    padding: 8px;
    border-radius: 6px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(30, 41, 59, 0.3);
    border: 1px solid #334155;
}

#site-title {
    position: fixed;
    top: 50%;
    left: 24px;
    transform: rotate(-90deg) translateX(-50%);
    transform-origin: center;
    font-size: 14px;
    font-weight: 600;
    color: #64748B;
    letter-spacing: 4px;
    text-transform: uppercase;
    z-index: -500;
}

/* Professional command step tables for dark mode */
.CmdStep-Table {
    margin: 16px 0;
    border-collapse: collapse;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.CmdStep-Table td {
    border: none !important;
    padding: 12px 16px;
    vertical-align: top;
    color: #E2E8F0;
}

.CmdStep-Table td:first-child {
    background: #0F172A;
    color: #F1F5F9;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    width: 40px !important;
    min-width: 40px;
    max-width: 40px !important;
}

/* Specific rule for CmdStep-Icon cells */
.CmdStep-Table td.CmdStep-Icon {
    width: 40px !important;
    min-width: 40px;
    max-width: 40px !important;
}

/* Content cell takes remaining space */
.CmdStep-Table td.CmdStep-Content {
    width: auto;
    background: #1E293B;
    color: #E2E8F0;
    border-left: 1px solid #334155;
}

.CmdStep-Table td:not(:first-child) {
    background: #1E293B;
    color: #E2E8F0;
    border-left: 1px solid #334155;
}

.CmdStep-Icon {
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Professional cover footer for dark mode */
.cover-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #334155;
    text-align: center;
    color: #94A3B8;
}

/* Enhanced diff visualization for dark mode */
.diff-inserted.activated {
    color: #34D399 !important;
    background: #064E3B;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

.fig-inserted.activated {
    border-left: 4px solid #34D399;
    background: #064E3B;
    padding: 16px;
    border-radius: 0 4px 4px 0;
}

.fig-deleted {
    border-left: 4px solid #F87171;
    background: #450A0A;
    padding: 16px;
    border-radius: 0 4px 4px 0;
    display: none;
}

.fig-deleted.activated {
    display: block;
}

.diff-symbol-inserted.activated {
    padding: 2px 6px;
    background: #34D399;
    color: #064E3B;
    border-radius: 3px;
    font-weight: 600;
    font-size: 12px;
}

.diff-symbol-deleted {
    padding: 2px 6px;
    background: #F87171;
    color: #450A0A;
    border-radius: 3px;
    font-weight: 600;
    font-size: 12px;
    display: none;
}

.diff-symbol-deleted.activated {
    display: inline;
}

.diff-deleted {
    color: #F87171 !important;
    text-decoration: line-through;
    background: #450A0A;
    padding: 2px 4px;
    border-radius: 3px;
    display: none;
}

.diff-deleted.activated {
    display: inline;
}

#toc-panel *[data-diffing='changed'].activated * {
    color: #FBBF24 !important;
    background: #451A03;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

/* Professional topic versioning for dark mode */
#topic-version {
    position: absolute;
    right: 24px;
    top: 12px;
    padding: 6px 12px;
    background: #1E293B;
    color: #F1F5F9;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(30, 41, 59, 0.3);
    border: 1px solid #334155;
      z-index:11;
}

/* Enhanced index styling for dark mode */
.index-group-title {
    font-weight: 600;
    font-size: 18px;
    color: #E2E8F0;
    margin-top: 24px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #334155;
}

.index-first {
    font-weight: 500;
    color: #E2E8F0;
}

.index-second {
    margin-left: 24px;
    color: #CBD5E1;
}

#index {
    margin-top: 32px;
    background: #1E293B;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 24px;
}

#index a:link, #index a:active, #index a:visited {
    text-decoration: none;
    color: #60A5FA;
    font-weight: 500;
}

#index a:hover {
    text-decoration: underline;
    color: #93C5FD;
}

/* Professional messaging for dark mode */
.info-message-logo, .ops-message-logo {
    background-image: none !important;
    background: #1E3A8A !important;
    border-left: 4px solid #60A5FA;
    width: 100% !important;
    height: auto !important;
    padding: 16px !important;
    border-radius: 0 4px 4px 0;
    color: #BFDBFE !important;
}

#comment-overview {
    z-index: 1000;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    position: fixed;
    top: 0;
    left: 0;
}

#comment-overview-panel {
    width: 700px;
    height: 500px;
    margin: auto;
    border: 1px solid #475569;
    border-radius: 12px;
    top: 50%;
    left: 50%;
    margin-top: -250px;
    margin-left: -350px;
    position: absolute;
    background: #1E293B;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

#comment-overview-panel .scroll-panel {
    overflow-y: auto;
    overflow-x: hidden;
    height: 440px;
    background: #1E293B;
    border-radius: 12px 12px 0 0;
}

#comment-overview-panel .button {
    background: #1E40AF;
    color: #F1F5F9;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    position: absolute;
    bottom: 16px;
    right: 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #1E3A8A;
}

#comment-overview-panel .button:hover {
    background: #1E3A8A;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(30, 58, 138, 0.3);
}

#comment-overview-panel .header {
    background: #0F172A;
    padding: 16px 20px;
    border-bottom: 1px solid #334155;
    border-radius: 12px 12px 0 0;
    color: #F1F5F9;
}

#comment-overview-panel .content {
    width: 100%;
    padding: 0 20px;
}

/* Comment overview tree styling for dark mode */
#comment-overview .tree {
    list-style-type: none;
}

#comment-overview .tree li {
    line-height: 150%;
}

#comment-overview .tree .comment-entry li {
    line-height: 110%;
}

#comment-overview .tree .comment-entry p {
    line-height: 120%;
    margin: 0; 
    padding: 0;
    padding-bottom: 4px;
    color: #CBD5E1;
}

#comment-overview .tree .comment-entry {
    padding: 0px !important;
    border: 1px solid #475569 !important;
    background: #1E293B !important;
    box-shadow: 5px 5px 3px rgba(0, 0, 0, 0.4) !important;
    margin-top: 2px !important;
    color: #CBD5E1 !important;
    margin-bottom: 16px !important;
    font-weight: normal !important;
    font-family: Arial !important;
    font-size: 9pt !important;
    line-height: 110% !important;
    border-radius: 10px !important;
    width: 300px !important;
    white-space: normal !important;
}

#comment-overview .tree .comment-entry div:first-child {
    background: #334155 !important;  
    padding-top: 2px !important;
    padding-bottom: 3px !important;
    padding-left: 5px !important;
    margin: 0px !important;
    color: #F1F5F9 !important;
}

#comment-overview .tree .chapter-link1 {
    font-weight: bold;
    color: #60A5FA;
}

#comment-overview .tree .comment-entry .content {
    padding-left: 5px;
    width: 295px;
    color: #CBD5E1 !important;
}

#comment-overview .tree .comment-entry .show-attachments {
    display: none !important;
}

#comment-overview .tree a {
    text-decoration: none;
    color: #60A5FA;
}

#comment-overview .tree a:hover {
    color: #93C5FD;
}

/* Responsive design improvements for dark mode */
@media (max-width: 1400px) {
    body {
        margin-left: 260px;
    }
    
    #sidebar {
        width: 260px;
    }
}

@media (max-width: 1200px) {
    body {
        margin-left: 240px;
    }
    
    #sidebar {
        width: 240px;
    }
    
    #main {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    body {
        margin-left: 0;
    }
    
    #sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    #sidebar.open {
        transform: translateX(0);
    }
    
    #main {
        margin-left: 0;
        padding: 16px;
    }
}

/* Print styles for dark mode */
@media print {
    #sidebar, #bar, #logo-image, #pdf-appendix-1, #pdf-appendix-2, 
    #pdf-appendix-3, #pdf-appendix-4, #attachments-label, #backbutton,
    #page-browser-arrows, #nav, .design-toggle {
        display: none !important;
    }
    
    body {
        margin: 0;
        background: white !important;
        color: black !important;
    }
    
    #main {
        margin: 0;
        padding: 0;
        border: none;
        background: white !important;
    }
    
    /* Override dark colors for print */
    .warning, .note, .notice, .caution, .danger {
        background: white !important;
        color: black !important;
        border-left-color: #666 !important;
        box-shadow: none !important;
    }
    
    .warning .content, .note .content, .notice .content, .caution .content, .danger .content {
        background: white !important;
        color: black !important;
    }
    
    .warning .signal-word, .note .signal-word, .notice .signal-word, .caution .signal-word, .danger .signal-word {
        background: #666 !important;
        color: white !important;
    }
    
    /* Print-friendly tables */
    table {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    table td, table th {
        border-color: #666 !important;
        background: white !important;
        color: black !important;
    }
    
    /* Print-friendly headings */
    h1, h2, h3, h4, h5, h6 {
        color: black !important;
        border-color: #666 !important;
    }
    
    /* Print-friendly paragraphs */
    p, .p, li {
        color: black !important;
    }
    
    /* Print-friendly procedures */
    .procedure {
        background: white !important;
        color: black !important;
        border-color: #666 !important;
    }
    
    .step {
        border-left-color: #666 !important;
    }
    
    .step .number {
        background: #666 !important;
        color: white !important;
    }
    
    .step .title, .step .p {
        color: black !important;
    }
    
    /* Print-friendly info boxes */
    .info {
        background: white !important;
        color: black !important;
        border-color: #666 !important;
    }
    
    .abstract {
        background: white !important;
        color: black !important;
        border-left-color: #666 !important;
    }
}

.code-snippet-button {
	position: absolute;
	top: -27px;
	right: 3px;
	cursor: pointer;
   z-index: 0;
}

/* Paragraph spacing - only for p elements not inside lists */
#main .p {
    margin-bottom: 20px;
}

/* Override for p elements inside lists */
#main li .p {
    margin-bottom: 0;
}

/* Enhanced chapter subtitle styling for dark mode */
*[data-element-name="chapter-subtitle"] {
    font-size: 1.2em;
    font-weight: 600;
    color: #60A5FA;
    display: block;
    margin-top: 20px;
    margin-bottom: 15px;
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* White text for table elements in dark mode */
*[data-element-name="table"] table td {
    color: #FEFEFE !important;
    font-style: italic;
    margin-bottom: 10px;
    margin-top: 4px;
}

.CmdStep-Icon {
    width: 10% !important
}