/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow: hidden;
    height: 100vh;
}

/* App Container */
.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header Styles */
.header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 18px;
    color: #dc2626;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo i {
    font-size: 24px;
    color: #dc2626;
}

.main-nav {
    display: flex;
    gap: 24px;
}

.nav-item {
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-item:hover {
    color: #111827;
    background-color: #f3f4f6;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.secondary-nav {
    display: flex;
    gap: 20px;
}

/* Language Switch */
.language-switch select {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.language-switch select:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.language-switch select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.theme-toggle {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 12px 8px 36px;
    font-size: 14px;
    width: 300px;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #9ca3af;
    font-size: 14px;
    pointer-events: none;
}

/* Main Container */
.main-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    height: calc(100vh - 60px);
    position: fixed;
    top: 60px;
    left: 0;
    z-index: 10;
}

.sidebar-content {
    padding: 24px 16px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #6b7280;
}

.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.separator {
    color: #9ca3af;
}

.sidebar-nav h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #111827;
}

.nav-group {
    margin-bottom: 8px;
}

.nav-group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
}

.nav-group-header:hover {
    background-color: #f9fafb;
}

.toggle-icon {
    font-size: 12px;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.nav-group-header.active .toggle-icon {
    transform: rotate(90deg);
}

.nav-group-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-group-content.active {
    max-height: 500px;
}

.nav-subgroup {
    margin-left: 16px;
    margin-top: 4px;
}

.nav-subgroup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    color: #4b5563;
    transition: all 0.2s ease;
}

.nav-subgroup-header:hover {
    background-color: #f3f4f6;
}

.nav-subgroup-content {
    margin-left: 16px;
    padding-top: 4px;
}

.nav-link {
    display: block;
    padding: 6px 12px;
    color: #6b7280;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.nav-link.active {
    background-color: #eff6ff;
    color: #2563eb;
    font-weight: 500;
}

.nav-sub-items {
    margin-left: 16px;
    padding-top: 4px;
}

/* Navigation Overview */
.nav-overview {
    margin: 20px 0;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.nav-overview h3 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.overview-card {
    background: white;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.overview-card:hover {
    border-color: #2563eb;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

.overview-card h4 {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.overview-card p {
    font-size: 11px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.overview-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px 48px;
    background: #fff;
    max-width: calc(100vw - 280px - 300px);
    margin-left: 280px;
    margin-right: 300px;
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 32px;
    line-height: 1.2;
}

/* Hero Section Layout */
.hero-section {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 0px;
    padding: 32px;
    border-radius: 16px;
    border: 0px solid #ffffff;
}

.hero-image-container {
    flex-shrink: 0;
}

.hero-image {
    width: 150px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin: 0;
}

.hero-text-container {
    flex: 1;
}

.hero-text-container .page-title {
    font-size: 42px;
    font-weight: 800;
    color: #111827;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.content-section {
    margin-bottom: 48px;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f3f4f6;
}

.subsection-title {
    font-size: 20px;
    font-weight: 600;
    color: #374151;
    margin: 32px 0 16px 0;
}

.content-text {
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 16px;
}

.content-list {
    margin: 16px 0;
    padding-left: 24px;
}

.content-list li {
    margin-bottom: 8px;
    color: #4b5563;
}

.content-list li strong {
    color: #111827;
}

/* Right Sidebar */
.right-sidebar {
    width: 300px;
    background: #f8f9fa;
    border-left: 1px solid #e5e7eb;
    padding: 24px 20px;
    overflow-y: auto;
    height: calc(100vh - 60px);
    position: fixed;
    top: 60px;
    right: 0;
    z-index: 10;
}

.toc-container h4 {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
    margin-top: 24px;
}

.toc-container h4:first-child {
    margin-top: 0;
}

.toc-list {
    list-style: none;
    margin-bottom: 16px;
}

.toc-list li {
    margin-bottom: 4px;
}

.toc-list a {
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
    padding: 4px 0;
    padding-left: 10px;
    display: block;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toc-list a:hover {
    color: #2563eb;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .right-sidebar {
        display: none;
    }
    
    .main-content {
        max-width: calc(100vw - 280px);
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -280px;
        z-index: 200;
        transition: left 0.3s ease;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .main-content {
        max-width: 100vw;
        padding: 24px 20px;
        margin-left: 0;
        margin-right: 0;
        margin-top: 60px;
    }
    
    .header-right .secondary-nav {
        display: none;
    }
    
    .search-input {
        width: 200px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .hero-section {
        flex-direction: column;
        gap: 24px;
        padding: 24px;
        text-align: center;
    }
    
    .hero-image {
        width: 250px;
    }
    
    .hero-text-container .page-title {
        font-size: 32px;
    }
}

/* Dark Theme */
.dark-theme {
    background-color: #111827;
    color: #f9fafb;
}

.dark-theme .header {
    background: #1f2937;
    border-bottom-color: #374151;
}

.dark-theme .sidebar {
    background: #1f2937;
    border-right-color: #374151;
}

.dark-theme .main-content {
    background: #111827;
}

.dark-theme .right-sidebar {
    background: #1f2937;
    border-left-color: #374151;
}

.dark-theme .nav-link {
    color: #9ca3af;
}

.dark-theme .nav-link:hover {
    background-color: #374151;
    color: #f3f4f6;
}

.dark-theme .nav-link.active {
    background-color: #1e40af;
    color: #dbeafe;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Footer Styles */
.app-footer {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 16px 24px;
    margin-top: auto;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-left p,
.footer-right p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.footer-right strong {
    color: #374151;
    font-weight: 600;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* Smooth Scrolling and Hash Navigation Styles */
.comprehensive-guide {
    width: 100%;
}

.comprehensive-guide .content-section {
    scroll-margin-top: 100px;
    padding-top: 20px;
}

.comprehensive-guide .content-section:first-child {
    margin-top: 0;
    padding-top: 0;
}

/* Section dividers */
.comprehensive-guide .content-section:not(:last-child) {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 40px;
}

/* Hash target highlighting */
.content-section:target {
    animation: highlight 2s ease-in-out;
}

@keyframes highlight {
    0% { 
        background-color: rgba(0, 123, 255, 0.1);
        border-radius: 8px;
        padding: 20px;
        margin: -20px;
    }
    100% { 
        background-color: transparent;
        padding: 20px;
        margin: -20px;
    }
}

/* Subsection hash targets */
.content-section h2[id]:target,
.content-section h3[id]:target {
    animation: highlight-heading 2s ease-in-out;
}

@keyframes highlight-heading {
    0% { 
        color: #007bff;
        text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
    }
    100% { 
        color: inherit;
        text-shadow: none;
    }
}

/* Active navigation highlighting */
.nav-link.active,
.toc-list a.active {
    color: #007bff !important;
    font-weight: 600;
    background-color: rgba(0, 123, 255, 0.1) !important;
}

.nav-link.active::before,
.toc-list a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #007bff;
}

/* Ensure sections have proper spacing */
.comprehensive-guide .page-title {
    margin-top: 0;
    margin-bottom: 32px;
    scroll-margin-top: 120px;
}

.comprehensive-guide .section-title {
    margin-bottom: 24px;
    scroll-margin-top: 120px;
}

/* Smooth transitions */
.nav-link,
.toc-list a {
    transition: all 0.3s ease;
    position: relative;
}

/* Japanese text styling */
.nav-subgroup-header span {
    font-size: 14px;
    line-height: 1.4;
}

/* Dark Theme Styles */
body.dark-theme {
    background-color: #1a1a1a;
    color: #e4e4e4;
}

body.dark-theme .header {
    background: #2d2d2d;
    border-bottom: 1px solid #404040;
}

body.dark-theme .logo {
    color: #ff4444;
}

body.dark-theme .nav-item {
    color: #b0b0b0;
}

/* Dark theme language switcher */
body.dark-theme .language-switch select {
    background: #3d3d3d;
    border-color: #555;
    color: #ffffff;
}

body.dark-theme .language-switch select:hover {
    background: #404040;
    border-color: #666;
}

body.dark-theme .language-switch select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

body.dark-theme .nav-item:hover {
    color: #ffffff;
    background-color: #404040;
}

body.dark-theme .theme-toggle {
    color: #b0b0b0;
}

body.dark-theme .theme-toggle:hover {
    background-color: #404040;
    color: #ffffff;
}

body.dark-theme .search-input {
    background: #3d3d3d;
    border-color: #555;
    color: #ffffff;
}

body.dark-theme .search-input::placeholder {
    color: #888;
}

body.dark-theme .sidebar {
    background: #2d2d2d;
    border-right: 1px solid #404040;
}

body.dark-theme .sidebar-nav h3 {
    color: #ffffff;
}

body.dark-theme .nav-group-header {
    color: #e4e4e4;
}

body.dark-theme .nav-group-header:hover {
    background-color: #404040;
}

body.dark-theme .nav-subgroup-header {
    color: #d0d0d0;
}

body.dark-theme .nav-subgroup-header:hover {
    background-color: #404040;
}

body.dark-theme .nav-link {
    color: #b0b0b0;
}

body.dark-theme .nav-link:hover {
    background-color: #404040;
    color: #ffffff;
}

body.dark-theme .nav-link.active {
    background-color: #1a365d;
    color: #60a5fa;
}

body.dark-theme .main-content {
    background: #1a1a1a;
    color: #e4e4e4;
}

body.dark-theme .right-sidebar {
    background: #2d2d2d;
    border-left: 1px solid #404040;
}

body.dark-theme .toc-title {
    color: #ffffff;
}

body.dark-theme .toc-list h4 {
    color: #ffffff;
}

body.dark-theme .toc-list a {
    color: #b0b0b0;
}

body.dark-theme .toc-list a:hover {
    color: #ffffff;
}

body.dark-theme .toc-list a.active {
    color: #60a5fa;
}

body.dark-theme .app-footer {
    background: #2d2d2d;
    border-top: 1px solid #404040;
    color: #b0b0b0;
}

/* Dark theme for content sections */
body.dark-theme .content-section {
    color: #e4e4e4;
}

body.dark-theme .page-title {
    color: #ffffff;
}

body.dark-theme .section-title {
    color: #ffffff;
}

body.dark-theme h1, 
body.dark-theme h2, 
body.dark-theme h3, 
body.dark-theme h4, 
body.dark-theme h5, 
body.dark-theme h6 {
    color: #ffffff;
}

body.dark-theme p {
    color: #e4e4e4;
}

body.dark-theme .card,
body.dark-theme .specification-card,
body.dark-theme .safety-item,
body.dark-theme .charging-step {
    background: #2d2d2d;
    border-color: #404040;
    color: #e4e4e4;
}

body.dark-theme .card h3,
body.dark-theme .card h4 {
    color: #ffffff;
}

body.dark-theme table {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme th {
    background: #404040;
    color: #ffffff;
}

body.dark-theme td {
    border-color: #404040;
    color: #e4e4e4;
}

body.dark-theme .abnormalities-table {
    background: #2d2d2d;
}

body.dark-theme .abnormalities-table th {
    background: linear-gradient(135deg, #404040 0%, #2d2d2d 100%);
    color: #ffffff;
}

body.dark-theme .abnormalities-table td {
    color: #e4e4e4;
}

body.dark-theme .emergency-info {
    background: linear-gradient(135deg, #4a2d2d 0%, #3d2424 100%);
}

body.dark-theme .emergency-content h4,
body.dark-theme .emergency-content p {
    color: #ff9999;
}

/* Dark theme for forms and inputs */
body.dark-theme input,
body.dark-theme textarea,
body.dark-theme select {
    background: #3d3d3d;
    border-color: #555;
    color: #ffffff;
}

body.dark-theme button {
    background: #404040;
    color: #ffffff;
    border-color: #555;
}

body.dark-theme button:hover {
    background: #555;
}

/* Dark theme for navigation disabled state */
body.dark-theme .nav-item.disabled {
    color: #555 !important;
    cursor: not-allowed;
}

body.dark-theme .nav-item.disabled:hover {
    background-color: transparent !important;
}

/* Dark theme for modal dialogs */
body.dark-theme .modal-content {
    background: #2d2d2d;
    color: #e4e4e4;
}

body.dark-theme .modal-header {
    border-bottom-color: #404040;
}

body.dark-theme .modal-footer {
    border-top-color: #404040;
}

/* Dark theme for alerts and notifications */
body.dark-theme .alert {
    background: #3d3d3d;
    border-color: #555;
    color: #e4e4e4;
}

body.dark-theme .notification {
    background: #2d2d2d;
    color: #e4e4e4;
    border-color: #404040;
}

/* Dark theme for code blocks */
body.dark-theme pre {
    background: #1e1e1e;
    border-color: #404040;
}

body.dark-theme code {
    background: #2d2d2d;
    color: #f8f8f2;
}

/* Dark theme for links */
body.dark-theme a {
    color: #60a5fa;
}

body.dark-theme a:hover {
    color: #93c5fd;
}

/* Dark theme for borders and dividers */
body.dark-theme .border,
body.dark-theme hr {
    border-color: #404040 !important;
}

/* Dark theme for shadows */
body.dark-theme .card,
body.dark-theme .modal-content,
body.dark-theme .dropdown-menu {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Dark theme for all div containers and sections */
body.dark-theme div {
    background-color: transparent;
}

body.dark-theme .content-section {
    background-color: transparent;
}

body.dark-theme .hero-section,
body.dark-theme .hero-text-container,
body.dark-theme .hero-image-container {
    background: #1a1a1a;
}

body.dark-theme .safety-banner {
    background: linear-gradient(135deg, #8b0000 0%, #a52a2a 100%);
}

body.dark-theme .safety-grid,
body.dark-theme .safety-card {
    background: #2d2d2d;
}

body.dark-theme .highlight-box {
    background: linear-gradient(135deg, #4a4a8a 0%, #5a4a7a 100%);
}

body.dark-theme .spec-grid,
body.dark-theme .spec-card {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .process-steps,
body.dark-theme .step-item {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .application-grid,
body.dark-theme .app-card {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .contact-rental-info,
body.dark-theme .rental-contact {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .safety-footer,
body.dark-theme .support-contacts,
body.dark-theme .contact-method {
    background: #2d2d2d;
}

/* Dark theme for charging procedure elements */
body.dark-theme .precautions-overview,
body.dark-theme .safety-guidelines,
body.dark-theme .safety-item {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .emergency-contact {
    background: #3d2d2d;
    border-color: #555;
}

body.dark-theme .charging-overview,
body.dark-theme .charging-intro,
body.dark-theme .charging-steps {
    background: transparent;
}

body.dark-theme .charging-step {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .indicator-overview,
body.dark-theme .indicator-display,
body.dark-theme .charging-behavior-section {
    background: transparent;
}

body.dark-theme .abnormalities-section {
    background: #2d2d2d;
}

/* Dark theme for operation methods elements */
body.dark-theme .setup-steps,
body.dark-theme .step-container {
    background: #2d2d2d;
}

body.dark-theme .operation-modes,
body.dark-theme .mode-card {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .power-on-steps,
body.dark-theme .power-step {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .control-overview,
body.dark-theme .controller-intro {
    background: #2d2d2d;
}

body.dark-theme .control-steps,
body.dark-theme .control-step {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .shutdown-overview {
    background: #2d2d2d;
}

/* Dark theme for technical specification elements */
body.dark-theme .hardware-overview,
body.dark-theme .components-section,
body.dark-theme .specifications-section {
    background: transparent;
}

body.dark-theme .components-grid,
body.dark-theme .component-card {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .specs-grid,
body.dark-theme .spec-category {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .conditions-grid,
body.dark-theme .condition-card {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .equipment-section,
body.dark-theme .equipment-item {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .software-section,
body.dark-theme .github-card {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .wiring-section,
body.dark-theme .diagram-panel {
    background: #2d2d2d;
}

body.dark-theme .system-diagram,
body.dark-theme .battery-diagram {
    background: #2d2d2d;
}

body.dark-theme .component-box {
    background: #3d3d3d;
    border-color: #555;
}

/* Dark theme for description page elements */
body.dark-theme .document-info,
body.dark-theme .document-header {
    background: transparent;
}

body.dark-theme .doc-info-card,
body.dark-theme .contact-card {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .doc-info-header,
body.dark-theme .contact-header {
    background: linear-gradient(135deg, #2d4a5a 0%, #3d5a6a 100%);
}

body.dark-theme .contact-header {
    background: linear-gradient(135deg, #2d5a3d 0%, #3d6a4d 100%);
}

body.dark-theme .doc-details,
body.dark-theme .contact-list {
    background: #2d2d2d;
}

body.dark-theme .schedule-grid,
body.dark-theme .maintenance-card {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .troubleshooting-guide,
body.dark-theme .issue-category {
    background: #2d2d2d;
}

body.dark-theme .support-grid,
body.dark-theme .support-card {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .sla-grid,
body.dark-theme .sla-card {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .warranty-grid,
body.dark-theme .warranty-item {
    background: #2d2d2d;
    border-color: #404040;
}

/* Dark theme for specific gradient backgrounds */
body.dark-theme .doc-info-header {
    background: linear-gradient(135deg, #2d4a5a 0%, #3d5a6a 100%) !important;
}

body.dark-theme .contact-header {
    background: linear-gradient(135deg, #2d5a3d 0%, #3d6a4d 100%) !important;
}

body.dark-theme .emergency-info {
    background: linear-gradient(135deg, #4a2d2d 0%, #3d2424 100%) !important;
}

/* Dark theme for any remaining white backgrounds */
body.dark-theme .comprehensive-guide {
    background: transparent;
}

body.dark-theme .nav-features-grid,
body.dark-theme .nav-feature {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .payload-grid,
body.dark-theme .payload-item {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .mounting-steps,
body.dark-theme .mount-step {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .workflow-diagram,
body.dark-theme .workflow-step {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .format-list,
body.dark-theme .format-category {
    background: #2d2d2d;
}

body.dark-theme .dashboard-features,
body.dark-theme .dashboard-section {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .alert-types,
body.dark-theme .alert-level {
    background: #2d2d2d;
    border-color: #404040;
}

/* Dark theme for sequence and startup elements */
body.dark-theme .startup-sequence,
body.dark-theme .sequence-item {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .switch-positions,
body.dark-theme .switch-position {
    background: #2d2d2d;
    border-color: #404040;
}

body.dark-theme .joystick-control {
    background: #2d2d2d;
    border-color: #404040;
}

/* Dark theme for charging specific elements */
body.dark-theme .precautions-header {
    background: #2d2d2d;
}

body.dark-theme .charging-header {
    background: #2d2d2d;
}

body.dark-theme .indicator-header {
    background: #2d2d2d;
}

body.dark-theme .step-layout {
    background: transparent;
}

body.dark-theme .charging-step-content {
    background: transparent;
}

/* Dark theme for any div with white background class */
body.dark-theme div[style*="background: white"],
body.dark-theme div[style*="background-color: white"],
body.dark-theme div[style*="background: #fff"],
body.dark-theme div[style*="background-color: #fff"] {
    background: #2d2d2d !important;
}

/* Dark theme for inline styles override */
body.dark-theme [style*="background: white"] {
    background: #2d2d2d !important;
}

body.dark-theme [style*="background-color: white"] {
    background-color: #2d2d2d !important;
}

body.dark-theme [style*="background: #fff"] {
    background: #2d2d2d !important;
}

body.dark-theme [style*="background-color: #fff"] {
    background-color: #2d2d2d !important;
}

/* Responsive adjustments for hash navigation */
@media (max-width: 768px) {
    .comprehensive-guide .content-section {
        scroll-margin-top: 80px;
    }
    
    .comprehensive-guide .section-title,
    .comprehensive-guide .page-title {
        scroll-margin-top: 100px;
    }
    
    html {
        scroll-padding-top: 80px;
    }
}