/* VUNex AI Manual - Common Styles */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");

:root {
    /* Primary Colors */
    --primary-blue: #4B92E1;
    --secondary-blue: #60a5fa;
    --dark-blue: #1e3a8a;
    --accent-blue: #3b82f6;
    
    /* Background Colors */
    --light-bg: #f8fafc;
    --bg-light: #f8fafc;           /* alias for --light-bg */
    --bg-secondary: #f8fafc;       /* secondary background */
    
    /* Text Colors */
    --text-dark: #212121;
    --text-muted: #666;
    
    /* Border Colors */
    --border-color: #e2e8f0;
    --border-light: #e2e8f0;       /* alias for --border-color */
    
    /* Status Colors */
    --warning-red: #ef4444;
    --success-green: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    background: white;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.nav-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding:0 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    line-height: 40px;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--dark-blue);
}

.btn-secondary {
    background: var(--light-bg);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #e2e8f0;
}

/* Main Content */
main {
    padding: 64px 48px 0 328px;
    max-width: 1400px;
    margin: 0 auto;
}

.section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom:1px solid #ccc;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--primary-blue);
}

.section-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    min-width: 60px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 3rem 0 0.5rem;
}

.section h3:first-of-type {
    margin-top:2rem;
}

h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 1.5rem 0 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.intro-text {
    font-size: 1.125rem;
    color: var(--text-muted);
    padding-top: 0.5rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Steps */
.steps {
    list-style: none;
    counter-reset: step-counter;
}

.step {
    counter-increment: step-counter;
    margin-bottom: 1rem;
    padding-left: 2.25rem;
    position: relative;
}

.step::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.step-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    display: block;
    line-height: 1.5;
}

/* step-title 내부의 모든 인라인 요소들이 자연스럽게 줄바꿈되도록 */
.step-title > * {
    display: inline;
}

.step-title span,
.step-title strong,
.step-title em,
.step-title code,
.step-title a {
    display: inline;
    white-space: normal;
    word-break: keep-all;
}

.step-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Screenshot */
.screenshot {
    margin: 1rem 0;
    overflow: hidden;
    text-align: center;
}

.screenshot img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    border-radius: 4px;
    /* border: 1px solid var(--border-color); */
    display: inline-block;
    object-fit: contain;
}

/* 가로로 긴 이미지 (landscape) - 전체 너비 사용 */
.screenshot img.landscape,
.screenshot img[data-orientation="landscape"] {
    width: 100%;
    max-height: none;
}

/* 세로로 긴 이미지 (portrait) - 높이 제한 */
.screenshot img.portrait,
.screenshot img[data-orientation="portrait"] {
    max-height: 600px;
    width: auto;
}

.screenshot img.widthauto {
    width: auto;
}

.screenshot-caption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

/* Info Box */
.info-box {
    background: #F0F8FF;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 6px 6px 0;
}

.info-box-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box-title::before {
    content: 'ℹ️';
    font-size: 1.2rem;
}

.info-box-content {
    color: var(--text-dark);
}

.info-box ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.info-box li {
    margin-bottom: 0.5rem;
}

/* Warning Box */
.warning-box {
    background: #FDEEEF;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 6px 6px 0;
}

.warning-box-title {
    font-weight: 700;
    color: var(--warning-red);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning-box-title::before {
    content: '⚠️';
    font-size: 1.2rem;
}

/* Bullet Lists */
ul {
    margin: 1rem 0 1rem 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Code blocks */
code {
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--primary-blue);
}

pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem;
}

th {
    background: #f2f2f2;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

tr:hover {
    background: var(--light-bg);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: var(--text-muted);
}

/* Page Navigation */
.page-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
}

.page-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s;
}

.page-nav-link:hover {
    background: var(--primary-blue);
    color: white;
}

.page-nav-link.prev::before {
    content: '←';
    font-size: 1.5rem;
}

.page-nav-link.next::after {
    content: '→';
    font-size: 1.5rem;
}

.page-nav-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

.page-nav-title {
    font-weight: 600;
}

/* Footer */
footer {
    margin-top: 5rem;
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

/* Print Helper Modal */
.print-helper {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.print-helper.show {
    display: block;
    animation: fadeInScale 0.3s ease-out;
}

.print-helper-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.print-helper-overlay.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.print-helper h3 {
    margin: 0 0 1rem 0;
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.print-helper p {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

.print-helper ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.print-helper li {
    margin-bottom: 0.7rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.print-helper strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.print-helper-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.print-helper-buttons .btn {
    flex: 1;
    justify-content: center;
}

.icon_svg {
    width: 1.25rem;
    height: 1.25rem;
}

.td_flex {
    display: flex;
}

/* ========================================
   Language Switcher
   모든 매뉴얼 페이지에서 공통 사용
   ======================================== */
.language-switcher {
    position: relative;
    display: inline-block;
}

.btn-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-lang:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-blue);
}

.lang-flag {
    font-size: 1.2rem;
}

.lang-name {
    font-weight: 500;
    color: var(--text-dark);
}

.lang-arrow {
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.btn-lang:hover .lang-arrow {
    transform: translateY(2px);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    min-width: 150px;
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.lang-dropdown.active {
    display: block;
    animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.2s ease;
}

.lang-option:hover {
    background: var(--bg-secondary);
}

.lang-option .lang-name {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .btn-lang .lang-name {
        display: none;
    }
    
    .lang-dropdown {
        right: auto;
        left: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    main {
        padding: 2.5rem 1.5rem 0 1.5rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .nav-buttons {
        gap: 0.5rem;
    }

    /* 모바일에서 네비게이션 버튼 숨김 (섹션 페이지: 사이드바 사용) */
    .manual-nav .nav-buttons {
        display: none !important;
    }
    
    .manual-nav .nav-buttons .btn {
        display: none !important;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }


    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }


    .page-nav {
        flex-direction: row;
        gap: 0.75rem;
    }

    .page-nav-link {
        flex: 1;
        padding: 0.875rem 1rem;
        justify-content: flex-start;
        min-width: 0; /* flex 아이템이 축소될 수 있도록 */
    }

    .page-nav-link > div {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        flex: 1;
        min-width: 0; /* 텍스트 오버플로우 허용 */
        overflow: hidden;
    }

    .page-nav-title {
        font-size: 0.85rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .page-nav-label {
        font-size: 0.7rem;
    }
}

/* Print Styles - 고품질 PDF 출력 최적화 */
@media print {
    /* 페이지 설정 */
    @page {
        size: A4;
        margin: 10mm 20mm;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    /* 숨김 요소 */
    nav,
    .page-nav,
    .breadcrumb,
    .nav-buttons,
    .no-print,
    .sidebar-toc,
    .sidebar-toggle,
    .sidebar-overlay,
    .print-helper,
    .print-helper-overlay {
        display: none !important;
    }

    /* 본문 레이아웃 - 사이드바 마진 제거 */
    body,
    body.has-sidebar {
        background: white !important;
        font-size: 11pt;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    main {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        margin-left: 0 !important;
    }

    /* 제목 스타일 */
    .section-header {
        margin-top: 0;
        margin-bottom: 1.5rem;
        page-break-after: avoid;
    }

    h1 {
        font-size: 20pt;
        page-break-after: avoid;
    }

    h2 {
        font-size: 16pt;
        margin-top: 1.5rem;
        page-break-after: avoid;
    }

    h3 {
        font-size: 14pt;
        margin-top: 1.2rem;
        page-break-after: avoid;
    }

    h4 {
        font-size: 12pt;
        margin-top: 1rem;
        page-break-after: avoid;
    }

    /* 단락 */
    p {
        font-size: 10pt;
        line-height: 1.5;
        margin-bottom: 0.5rem;
        orphans: 3;
        widows: 3;
    }

    .intro-text {
        font-size: 11pt;
        margin-bottom: 1rem;
        white-space: pre-wrap;
        word-wrap: break-word;
    }

    /* 리스트 */
    ul, ol {
        page-break-inside: avoid;
    }

    li {
        font-size: 10pt;
        line-height: 1.5;
        margin-bottom: 0.3rem;
    }

    /* 단계별 설명 */
    .steps {
        page-break-inside: auto;
    }

    .step {
        page-break-inside: avoid;
        margin-bottom: 1.5rem;
        padding-left: 2.5rem;
    }

    .step::before {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.8rem;
        line-height: 1.5rem;
    }

    .step-title {
        font-size: 11pt;
        font-weight: 600;
        margin-bottom: 0.3rem;
    }

    .step-description {
        font-size: 10pt;
    }

    /* 스크린샷 - 고품질 이미지 렌더링 */
    .screenshot {
        margin: 1rem 0;
        padding: 0.5rem;
        page-break-inside: avoid;
        background: white !important;
        box-shadow: none;
    }

    .screenshot img {
        max-width: 100%;
        height: auto;
        display: block;
        /* 고품질 렌더링 설정 */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: high-quality;
        image-rendering: crisp-edges;
        /* 색상 정확도 */
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color-adjust: exact;
    }

    .screenshot-caption {
        font-size: 9pt;
        color: #666 !important;
        margin-top: 0.3rem;
        page-break-before: avoid;
    }

    /* Info Box */
    .info-box {
        page-break-inside: avoid;
        background: #e3f2fd !important;
        border-left: 3px solid #2563eb !important;
        padding: 1rem;
        margin: 1rem 0;
        border-radius: 0 4px 4px 0;
    }

    .info-box-title {
        font-size: 11pt;
        font-weight: 600;
        color: #2563eb !important;
        margin-bottom: 0.5rem;
    }

    .info-box-title::before {
        content: '💡 ';
    }

    .info-box-content {
        font-size: 10pt;
        color: #1e293b !important;
    }

    /* Warning Box */
    .warning-box {
        page-break-inside: avoid;
        background: #fee2e2 !important;
        border-left: 3px solid #ef4444 !important;
        padding: 1rem;
        margin: 1rem 0;
        border-radius: 0 4px 4px 0;
    }

    .warning-box-title {
        font-size: 11pt;
        font-weight: 600;
        color: #ef4444 !important;
        margin-bottom: 0.5rem;
    }

    .warning-box-title::before {
        content: '⚠️ ';
    }

    /* 테이블 */
    table {
        page-break-inside: auto;
        border-collapse: collapse;
        width: 100%;
        margin: 1rem 0;
        font-size: 10pt;
    }

    thead {
        display: table-header-group;
    }

    tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    th {
        background: #2563eb !important;
        color: white !important;
        padding: 0.7rem;
        font-weight: 600;
        border: 1px solid #1e3a8a;
    }

    td {
        padding: 0.7rem;
        border: 1px solid #e2e8f0;
        color: #1e293b !important;
    }

    tr:nth-child(even) {
        background: #f8fafc !important;
    }

    /* Code 블록 */
    code {
        background: #f1f5f9 !important;
        color: #2563eb !important;
        padding: 0.15rem 0.4rem;
        border-radius: 3px;
        font-size: 9pt;
    }

    pre {
        background: #1e293b !important;
        color: #e2e8f0 !important;
        padding: 1rem;
        border-radius: 4px;
        font-size: 9pt;
        page-break-inside: avoid;
    }

    /* 섹션 구분 */
    .section {
        page-break-after: auto;
        margin-bottom: 2rem;
    }

    /* Footer */
    footer {
        margin-top: 2rem;
        padding-top: 1rem;
        border-top: 1px solid #e2e8f0;
        font-size: 9pt;
        text-align: center;
        color: #64748b !important;
    }

    /* 링크 */
    a {
        color: #2563eb !important;
        text-decoration: none;
    }

    /* 커버 페이지 최적화 */
    .cover {
        page-break-after: always;
        background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #bae6fd 100%) !important;
    }

    .cover::before,
    .cover::after {
        opacity: 0.6 !important;
    }

    .toc-page {
        page-break-after: always;
    }

    .toc-card {
        border: 2px solid #e2e8f0 !important;
        background: white !important;
    }

    /* 페이지 번호 */
    @page {
        @bottom-right {
            content: counter(page);
        }
    }
}

/* 인쇄 미리보기 개선 */
@media screen and (prefers-color-scheme: print) {
    body {
        background: white;
    }
}

/* ========================================
   Cover Page Styles
   매뉴얼 커버 페이지 공통 스타일
   ======================================== */
.cover {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 6rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #bae6fd 100%);
    position: relative;
    overflow: hidden;
}

.cover::before {
    content: '';
    position: absolute;
    right: -4vw;
    bottom: -3vw;
    width: 40vw;
    height: 40vw;
    max-width: 800px;
    max-height: 800px;
    background: url('/manual/images/logo_vunex.png') no-repeat right bottom / contain;
    z-index: 10;
}

.cover-content {
    position: relative;
    z-index: 1;
    padding-bottom: 4rem;
}

.cover h1 {
    font-size: 6rem;
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1;
}

.cover h2 {
    font-size: 6rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.version {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.cover-note {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.cover-warning {
    font-size: 0.95rem;
    color: var(--warning-red);
    font-weight: 500;
}

.cover-footer {
    position: absolute;
    bottom: 6rem;
    left: 6rem;
    right: 6rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 1;
    flex-direction: column;
    gap: 0.5rem;
}

.company-logo {
    width: 143px;
    height: 40px;
    background: url("/manual/images/logo_innodep.png") no-repeat;
    text-indent: -9999px;
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: right;
}

/* Cover Page Language Switcher */
.lang-switcher-cover {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
}

.btn-lang-cover {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-lang-cover:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-lang-cover:hover .lang-name,
.btn-lang-cover:hover .lang-arrow {
    color: white;
}

.btn-lang-cover .lang-flag {
    font-size: 1.5rem;
}

.btn-lang-cover .lang-name {
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.btn-lang-cover .lang-arrow {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.lang-dropdown-cover {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    min-width: 180px;
    display: none;
    overflow: hidden;
}

.lang-dropdown-cover.active {
    display: block;
    animation: fadeInDown 0.2s ease;
}

.lang-option-cover {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-light);
}

.lang-option-cover:last-child {
    border-bottom: none;
}

.lang-option-cover:hover {
    background: var(--bg-secondary);
}

.lang-option-cover .lang-flag {
    font-size: 1.3rem;
}

.lang-option-cover .lang-name {
    font-size: 1rem;
    font-weight: 500;
}

/* Back to Portal Button */
.back-portal {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
}

.back-portal a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.back-portal a:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ========================================
   Table of Contents (TOC) Styles
   목차 페이지 공통 스타일
   ======================================== */
.toc-page {
    min-height: 100vh;
    padding: 80px;
    background: white;
}

.toc-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    color: var(--primary-blue);
    border-bottom: 3px solid var(--primary-blue);
}

.toc-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin:0 0 3rem 0;
}

.toc-item {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
    overflow: hidden;
}

.toc-link {
    display: flex;
    align-items: flex-start;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    flex-direction: column;
    padding: 2rem;
    position: relative;
}

.toc-link-pdf {
    display: flex;
    align-items: flex-start;
    color: var(--text-dark);
    transition: all 0.3s ease;
    padding: 2rem;
    text-decoration: none;
    font-size: 1.25rem;
}
.toc-link-pdf strong {
    font-weight: 600;
    color: var(--primary-blue);
    min-width:60px;
}
.toc-link-pdf span {
    font-weight: 700;
    color: #000;
}


.toc-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    border-color: var(--primary-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(75, 146, 225, 0.15);
}

.toc-item:hover .toc-number {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1);
}

.toc-number {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: #e0f2fe;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.toc-text {
    font-size: 1.75rem;
    font-weight: 700;
    padding-bottom: 1rem;
}

.toc-disc {
    font-size: 1.125rem;
    color: #666;
}

.btn_pdf {
    padding: 2rem;
    /* background: var(--bg-secondary); */
    border-radius: 12px;
    text-align: center;
}

.btn_pdf a {
    display: inline-block;
    padding: 0.75rem 3rem;
    font-size: 1.125rem;
}

/* Complete.html용 간단한 TOC 스타일 */
.toc-list.simple {
    display: block;
}

.toc-list.simple li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.toc-list.simple .toc-link {
    display: inline-block;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.5rem 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.toc-list.simple .toc-link:hover {
    color: var(--text-dark);
}

.toc-list.simple strong {
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

.toc-list.simple span {
    color: var(--text-dark);
}

/* Cover & TOC Responsive */
@media (max-width: 1024px) {
    .cover {
        padding: 4rem;
    }

    .cover h1,
    .cover h2 {
        font-size: 4rem;
    }

    .cover::before {
        width: 50vw;
        height: 50vw;
        right: -5vw;
        bottom: -5vw;
    }

    .cover-footer {
        bottom: 4rem;
        left: 4rem;
        right: 4rem;
    }

    .toc-page {
        padding: 60px;
    }

    .toc-page h1 {
        font-size: 2rem;
    }

    .toc-list {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }

    .toc-text {
        font-size: 1.5rem;
    }

    .toc-disc {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .cover {
        padding: 3rem 2rem;
    }

    .cover h1,
    .cover h2 {
        font-size: 3rem;
    }

    .cover h2 {
        margin-bottom: 1.5rem;
    }

    .version {
        font-size: 1rem;
    }

    .cover-note {
        font-size: 0.85rem;
    }

    .cover::before {
        width: 60vw;
        height: 60vw;
        right: -10vw;
        bottom: -10vw;
        opacity: 0.3;
    }

    .cover-footer {
        position: static;
        margin-top: 3rem;
        padding: 0;
    }

    .back-portal,
    .lang-switcher-cover {
        top: 1rem;
    }

    .back-portal {
        left: 1rem;
    }

    .lang-switcher-cover {
        right: 1rem;
    }

    .back-portal a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .btn-lang-cover {
        padding: 0.6rem 1rem;
    }

    .btn-lang-cover .lang-name {
        display: none;
    }

    .toc-page {
        padding: 40px 20px;
    }

    .toc-page h1 {
        font-size: 1.75rem;
    }

    .toc-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin: 0;
    }

    /* 모바일: 리스트 스타일로 변경 */
    .toc-item {
        border: 1px solid var(--border-color);
        border-radius: 8px;
        background: white;
    }

    /* 모바일: Grid 레이아웃으로 깔끔하게 정리 */
    .toc-link {
        display: grid;
        grid-template-columns: 2rem 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.5rem 1rem;
        align-items: start;
        padding: 1rem 1.25rem;
        min-height: auto;
    }

    .toc-number {
        grid-column: 1;
        grid-row: 1 / 3;
        align-self: start;
        font-size: 0.875rem;
        font-weight: 700;
        color: var(--primary-blue);
        background: #e0f2fe;
        width: 2rem;
        height: 2rem;
        min-width: 2rem;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        margin-top: 0.125rem;
    }

    .toc-text {
        grid-column: 2;
        grid-row: 1;
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.4;
        color: var(--text-dark);
        padding: 0;
        margin: 0;
    }

    .toc-disc {
        grid-column: 2;
        grid-row: 2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.85rem;
        color: #666;
        line-height: 1.5;
        margin: 0;
        padding: 0;
    }

    /* 화살표는 오른쪽 중앙 */
    .toc-link::after {
        grid-column: 3;
        grid-row: 1 / 3;
        align-self: center;
    }

    /* 모바일: 오른쪽 화살표 아이콘 추가 */
    .toc-link::after {
        content: '→';
        font-size: 1.25rem;
        color: var(--primary-blue);
        opacity: 0.5;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }

    .toc-item:hover .toc-link::after {
        opacity: 1;
        transform: translateX(4px);
    }

    .toc-item:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        background: #f8fafc;
    }

    .toc-item:hover .toc-number {
        transform: none;
        background: var(--primary-blue);
        color: white;
    }

    .btn_pdf {
        padding: 1.5rem 0;
    }

    .btn_pdf a {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cover {
        padding: 2rem 1.5rem;
    }

    .cover h1,
    .cover h2 {
        font-size: 2.2rem;
    }

    .cover h2 {
        margin-bottom: 1rem;
    }

    .version {
        font-size: 0.9rem;
    }

    .cover-note {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .cover::before {
        width: 70vw;
        height: 70vw;
        right: -15vw;
        bottom: -15vw;
        opacity: 0.2;
    }

    .company-logo {
        width: 120px;
        height: 34px;
    }

    .copyright {
        font-size: 0.75rem;
    }

    .back-portal a,
    .btn-lang-cover {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .back-portal a {
        gap: 0.25rem;
    }

    .toc-page {
        padding: 30px 15px;
    }

    .toc-page h1 {
        font-size: 1.5rem;
    }

    .toc-list {
        gap: 0.5rem;
    }

    .toc-link {
        padding: 0.875rem 1rem;
        grid-template-columns: 1.75rem 1fr auto;
        gap: 0.5rem 0.875rem;
    }

    .toc-number {
        font-size: 0.8rem;
        width: 1.75rem;
        height: 1.75rem;
        min-width: 1.75rem;
    }

    .toc-text {
        font-size: 0.95rem;
    }

    .toc-disc {
        font-size: 0.8rem;
    }

    .toc-link::after {
        font-size: 1.1rem;
    }

    .btn_pdf a {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 360px) {
    .cover {
        padding: 1.5rem 1rem;
    }

    .cover h1,
    .cover h2 {
        font-size: 1.8rem;
    }

    .toc-page h1 {
        font-size: 1.3rem;
    }

    .toc-text {
        font-size: 0.9rem;
    }

    .toc-link {
        padding: 0.75rem 0.875rem;
        grid-template-columns: 1.5rem 1fr auto;
        gap: 0.4rem 0.75rem;
    }

    .toc-number {
        width: 1.5rem;
        height: 1.5rem;
        min-width: 1.5rem;
        font-size: 0.75rem;
    }

    .toc-disc {
        font-size: 0.75rem;
    }

    .btn_pdf a {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .cover {
        height: auto;
        min-height: 100vh;
        padding: 3rem 2rem;
    }

    .cover h1,
    .cover h2 {
        font-size: 3rem;
    }

    .cover::before {
        width: 40vw;
        height: 40vw;
    }

    .cover-footer {
        position: static;
        margin-top: 2rem;
    }
}

/* Print styles for Cover & TOC */
@media print {
    .back-portal,
    .lang-switcher-cover {
        display: none !important;
    }

    .cover {
        page-break-after: always;
    }

    .toc-page {
        padding: 40px;
        page-break-after: always;
    }

    .toc-item {
        page-break-inside: avoid;
    }
}

/* ========================================
   Sidebar Table of Contents Styles
   사이드바 목차 공통 스타일
   ======================================== */

/* Force Body Layout with Sidebar */
body.has-sidebar {
    padding-left: 0 !important;
    transition: margin-left 0.3s ease;
}

/* Sidebar Header */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.sidebar-logo:hover {
    color: var(--primary-blue);
    transform: translateX(3px);
}

.logo-icon {
    font-size: 1.5rem;
}

/* Adjust Navigation Bar */
body.has-sidebar nav {
    position: sticky !important;
    top: 0 !important;
    left: 280px !important;
    right: 0 !important;
    width: auto !important;
    padding: 1rem;
}

/* Scrollbar Styling */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: #cbd5e0;
}

/* Mobile Responsive (1024px and below) */
@media (max-width: 1024px) {
    body.has-sidebar {
        margin-left: 0 !important;
    }

    body.has-sidebar nav {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }

    .sidebar-toggle {
        display: block;
    }

    .sidebar-toc {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar-toc.active {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: block;
    }

    .nav-logo {
        padding-left: 16px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .sidebar-toc {
        width: 320px;
    }
}

.icon-64 {
    width: 64px !important;
    height: 64px !important;
}

/* ====================================
   Portable Text & Inline Icons
   ==================================== */

/* 인라인 아이콘 */
.manual-icon {
    display: inline-block;
    vertical-align: middle;
    fill: currentColor;
}

.manual-icon--sm {
    width: 14px;
    height: 14px;
}

.manual-icon--md {
    width: 18px;
    height: 18px;
}

.manual-icon--lg {
    width: 24px;
    height: 24px;
}

/* 인라인 코드 */
.manual-inline-code {
    font-family: 'Space Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    color: #334155;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* 하이라이트 */
.manual-highlight {
    background: linear-gradient(180deg, transparent 50%, rgba(250, 204, 21, 0.4) 50%);
    padding: 0 2px;
}

/* 인용구 */
.manual-blockquote {
    margin: 1rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--primary-blue);
    background: #f8fafc;
    color: #475569;
    font-style: italic;
}

.manual-blockquote p {
    margin: 0;
}

/* 외부/내부 링크 */
.manual-link,
.manual-internal-link {
    color: var(--primary-blue);
    text-decoration: underline;
    text-decoration-color: rgba(0, 102, 255, 0.3);
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.manual-link:hover,
.manual-internal-link:hover {
    text-decoration-color: var(--primary-blue);
}

/* Portable Text 컨테이너 */
.manual-portable-text {
    line-height: 1.7;
}

.manual-portable-text p {
    margin-bottom: 0.75rem;
}

.manual-portable-text p:last-child {
    margin-bottom: 1rem;
}

.manual-portable-text-inline {
    display: inline;
}

/* Portable Text 리스트 스타일 */
.manual-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style-type: circle; /* ○ 비어있는 원 */
}

.manual-list li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.manual-portable-text ul.manual-list {
    list-style-type: circle; /* ○ 비어있는 원 */
}

.manual-portable-text ol.manual-list {
    list-style-type: decimal;
}

/* 인라인 아이콘 스타일 */
.inline-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    margin: 0 0.2em;
    fill: currentColor;
    color: var(--primary-blue);
}

/* Markdown 스타일 (실제 매뉴얼 페이지용) */
.step-title strong,
.step-description strong,
.info-box-content strong {
    font-weight: 600;
    color: inherit;
}

.step-title em,
.step-description em,
.info-box-content em {
    font-style: italic;
    color: inherit;
}

.step-title code,
.step-description code,
.info-box-content code {
    font-family: 'Space Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    color: #334155;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.step-title kbd,
.step-description kbd,
.info-box-content kbd {
    font-family: 'Space Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.875em;
    background: #1e293b;
    color: #e2e8f0;
    padding: 0.15em 0.5em;
    border-radius: 4px;
    border: 1px solid #475569;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.step-title del,
.step-description del,
.info-box-content del {
    text-decoration: line-through;
    opacity: 0.7;
    color: inherit;
}

.step-title a,
.step-description a,
.info-box-content a {
    color: var(--primary-blue);
    text-decoration: underline;
    text-decoration-color: rgba(75, 146, 225, 0.3);
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.step-title a:hover,
.step-description a:hover,
.info-box-content a:hover {
    text-decoration-color: var(--primary-blue);
}

/* 아이콘 버튼 스타일 (메뉴 아이콘 등 표시용) */
.icon-button-ref {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.875em;
    color: #334155;
}

.icon-button-ref .manual-icon {
    flex-shrink: 0;
}

/* ========================================
   Complete Manual Page Styles
   전체 매뉴얼(PDF용) 페이지 전용 스타일
   ======================================== */

.complete-manual-page {
    background: white;
}

/* Complete Nav - 상단 고정 네비게이션 */
.complete-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 1000;
    gap: 1rem;  /* 로고와 버튼 사이 최소 간격 */
}

.complete-nav .nav-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
}

.complete-nav .nav-buttons {
    display: flex;
    gap: 0.75rem;
}

/* Complete Main - 메인 콘텐츠 영역 */
.complete-main {
    padding: 60px 48px 0 48px;
}

/* Cover Background Logo - VUNex 배경 로고 */
.cover-bg-logo {
    position: absolute;
    right: -4vw;
    bottom: -3vw;
    width: 40vw;
    height: 40vw;
    max-width: 800px;
    max-height: 800px;
    background: url('/manual/images/logo_vunex.png') no-repeat right bottom / contain;
    z-index: 0;
    opacity: 0.8;
}

/* TOC List Simple - 간단한 목차 리스트 */
.toc-list-simple {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list-simple li {
    margin-bottom: 1rem;
}

/* Section Anchor - 섹션 앵커 (PDF 페이지 구분) */
.section-anchor {
    padding: 2rem 0;
    page-break-before: always;
}

/* Complete Footer - 푸터 */
.complete-footer {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 4rem;
}

.complete-footer p {
    margin: 0.25rem 0;
}

/* Complete Page Print Styles */
@media print {
    .complete-nav {
        display: none !important;
    }

    .complete-main {
        padding: 0;
    }

    .cover-bg-logo {
        opacity: 0.6 !important;
    }
}

/* Complete Page Responsive */
@media (max-width: 768px) {
    .complete-main {
        padding: 60px 1.5rem 0 1.5rem;
    }

    /* 모바일에서 네비게이션 조정 */
    .complete-nav {
        padding: 0 0.75rem;
    }

    .complete-nav .nav-logo {
        font-size: 0.9rem;
        flex-shrink: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .complete-nav .nav-buttons {
        gap: 0.5rem;
        flex-shrink: 0;
    }

    .complete-nav .nav-buttons .btn {
        padding: 0 0.75rem;
        font-size: 0.75rem;
        line-height: 32px;
        white-space: nowrap;
    }

    /* 모바일에서 PDF 저장 버튼 숨김 */
    .complete-nav .nav-buttons .btn-primary {
        display: none !important;
    }

    /* Cover 페이지 모바일 최적화 */
    .cover {
        padding: 3rem 1.5rem;
        min-height: auto;
    }

    .cover-content {
        padding-bottom: 2rem;
    }

    .cover h1 {
        font-size: 2.5rem !important;
    }

    .cover h2 {
        font-size: 2rem !important;
        margin-bottom: 1rem;
    }

    .version {
        font-size: 1rem;
    }

    .cover-note {
        font-size: 0.85rem;
    }

    .cover-bg-logo {
        width: 60vw;
        height: 60vw;
        right: -10vw;
        bottom: -10vw;
        opacity: 0.3;
    }

    .cover-footer {
        position: static;
        margin-top: 2rem;
        padding: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    /* TOC 페이지 모바일 최적화 */
    .toc-page {
        padding: 60px 1.5rem;
        min-height: auto;
    }

    .toc-page h1 {
        font-size: 1.75rem;
    }

    .toc-list-simple {
        padding: 0;
    }

    .toc-list-simple li {
        margin-bottom: 0.75rem;
    }

    .toc-list-simple .toc-link-pdf {
        font-size: 0.95rem;
    }

    /* Complete 페이지 전용: Section Anchor */
    .section-anchor {
        padding: 1.5rem 0;
    }

    .intro-text {
        font-size: 0.95rem;
    }

    /* Footer 모바일 최적화 */
    .complete-footer {
        padding: 2rem 1rem;
        font-size: 0.85rem;
    }
}

/* 더 작은 화면 (480px 이하) - 더 공격적인 축소 */
@media (max-width: 480px) {
    .complete-nav {
        padding: 0 0.5rem;
    }

    .complete-nav .nav-logo {
        font-size: 0.8rem;
        max-width: 50%;
    }

    .complete-nav .nav-buttons .btn {
        padding: 0 0.5rem;
        font-size: 0.7rem;
        line-height: 30px;
    }

    .complete-main {
        padding: 60px 1rem 0 1rem;
    }

    .cover {
        padding: 2rem 1rem;
    }

    .cover h1 {
        font-size: 2rem !important;
    }

    .cover h2 {
        font-size: 1.75rem !important;
    }

    .toc-page {
        padding: 40px 1rem;
    }

    .toc-page h1 {
        font-size: 1.5rem;
    }

    /* ========================================
       공통 모바일 스타일 (480px 이하)
       ======================================== */
    
    .section-header h1 {
        font-size: 1.5rem;
    }

    .section h2 {
        font-size: 1.25rem;
    }

    .section h3 {
        font-size: 1.1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    /* 이미지 작은 모바일 최적화 - padding 조정 */
    .screenshot {
        margin: 1rem -1rem;
        width: calc(100% + 2rem);
    }

    /* step 내부의 이미지는 step의 padding-left도 무시 */
    .step .screenshot {
        margin-left: calc(-1rem - 2rem); /* 부모 padding + step padding-left */
        margin-right: -1rem;
        width: calc(100% + 2rem + 2rem);
    }

    .screenshot img {
        width: 100%;
        max-height: 40vh;
        border-radius: 0;
        border: none;
    }

    .manual-table table {
        font-size: 0.8rem;
    }

    .manual-table th,
    .manual-table td {
        padding: 0.4rem 0.5rem;
    }
}

/* ========================================
   Sidebar Table of Contents Styles
   매뉴얼 사이드바 목차 스타일
   ======================================== */

/* 매뉴얼 페이지 레이아웃 */
.manual-page.has-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 매뉴얼 네비게이션 */
.manual-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 1001;
}

.manual-nav .nav-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: #4B92E1;
    text-decoration: none;
}

.manual-nav .nav-buttons {
    display: flex;
    gap: 0.75rem;
}

/* Sidebar Container */
.sidebar-toc {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 280px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 1000;
    overflow-y: auto;
}

/* Sidebar Navigation */
.sidebar-nav {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    flex: 0 1 auto;
    overflow-y: auto;
    padding: 0;
    background: transparent;
    border: none;
}

.sidebar-list {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
    width: 100%;
}

.sidebar-item {
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    text-decoration: none;
    color: #212121;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: #e2e8f0;
}

.sidebar-link.active {
    font-weight: 700;
    background: #e0f2fe;
    border-left-color: #4B92E1;
}

.sidebar-link.active .sidebar-number {
    color: #4B92E1;
}

.sidebar-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: #999;
    min-width: 32px;
    transition: all 0.2s ease;
}

.sidebar-text {
    font-size: 0.95rem;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.25rem;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.sidebar-pdf-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: #4B92E1;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar-pdf-btn:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* PDF Download Buttons */
.pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pdf-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.pdf-btn-primary {
    background: #4B92E1;
    color: white;
}

.pdf-btn-primary:hover:not(:disabled) {
    background: #0052cc;
}

.pdf-btn-secondary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.pdf-btn-secondary:hover:not(:disabled) {
    background: #e2e8f0;
}

.pdf-btn-icon {
    padding: 0.5rem;
    background: transparent;
    color: #64748b;
}

.pdf-btn-icon:hover:not(:disabled) {
    color: #4B92E1;
    background: #f1f5f9;
}

.pdf-icon {
    font-size: 1.1rem;
}

.pdf-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Section PDF Button */
.section-pdf-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

/* Main Content Area */
.manual-main {
    margin-left: 280px;
    margin-top: 60px;
    padding: 2rem 3rem;
    max-width: 1024px;
    min-height: calc(100vh - 60px);
    background: white;
}

/* Scrollbar Styling */
.sidebar-toc::-webkit-scrollbar {
    width: 6px;
}

.sidebar-toc::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-toc::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 3px;
}

.sidebar-toc::-webkit-scrollbar-thumb:hover {
    background: #cbd5e0;
}

/* ========================================
   Sidebar Toggle Button (Mobile)
   ======================================== */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: calc((60px - 40px) / 2);
    left: 1rem;
    z-index: 1002;
    width: 40px;
    height: 40px;
    background: #4B92E1;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    /* Flexbox for centering content */
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    /* Safari/iOS specific fixes */
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    /* Reset all text properties */
    font-family: inherit;
    font-size: 0;
    line-height: 0;
    text-align: center;
    vertical-align: middle;
}

.sidebar-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.25rem;
    line-height: 1;
    margin: 0;
    padding: 0;
    /* Prevent baseline shift */
    vertical-align: middle;
    text-align: center;
}

/* iOS Safari specific fix for unicode character alignment */
@supports (-webkit-touch-callout: none) {
    .sidebar-toggle-icon {
        /* Fine-tune vertical position to compensate for baseline offset on iOS */
        transform: translateY(-2px);
        -webkit-transform: translateY(-2px);
        font-size: 2rem;

    }
}

.sidebar-toggle:hover {
    background: #0052cc;
    transform: scale(1.05);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ========================================
   Mobile/Tablet Responsive (1024px and below)
   ======================================== */
@media (max-width: 1024px) {
    .sidebar-toggle {
        display: flex;
        /* align-items and justify-content already set in base style */
    }

    .manual-nav .nav-logo {
        margin-left: 32px;
    }

    .sidebar-toc {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar-toc.active {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: block;
    }

    .manual-main {
        margin-left: 0;
        padding: 1.5rem;
        margin-top: 60px;
    }

    /* ========================================
       공통 모바일 스타일 (Complete & Section 페이지 공통)
       ======================================== */
    
    /* Section Header 모바일 최적화 */
    .section-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .section-header h1 {
        font-size: 1.75rem;
    }

    .section-number {
        font-size: 1.25rem;
        min-width: 50px;
    }

    /* Section 모바일 최적화 */
    .section h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    .section h3 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    /* 이미지 모바일 최적화 - 상위 padding 무시하고 전체 너비 사용 */
    .screenshot {
        margin: 1rem -1.5rem;
        width: calc(100% + 3rem);
    }

    /* step 내부의 이미지는 step의 padding-left도 무시 */
    .step .screenshot {
        margin-left: calc(-1.5rem - 2rem); /* 부모 padding + step padding-left */
        margin-right: -1.5rem;
        width: calc(100% + 3rem + 2rem);
    }

    .screenshot img {
        width: 100%;
        max-height: 50vh;
        border-radius: 0;
        border: none;
    }

    /* 테이블 모바일 최적화 */
    .manual-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .manual-table table {
        font-size: 0.85rem;
    }

    .manual-table th,
    .manual-table td {
        padding: 0.5rem 0.75rem;
    }

    /* Info Box 모바일 최적화 */
    .info-box {
        padding: 1rem;
        margin: 1.5rem 0;
    }

    /* Steps 모바일 최적화 */
    .step {
        padding-left: 2rem;
        margin-bottom: 1.5rem;
    }

    .step::before {
        width: 1.25rem;
        height: 1.25rem;
        font-size: 0.75rem;
    }

    .step-title {
        font-size: 1rem;
    }

    .step-description {
        font-size: 0.9rem;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .sidebar-toc {
        width: 85vw;
        max-width: 320px;
    }

    .manual-nav {
        padding: 0 1rem;
    }

    .manual-nav .nav-buttons .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    .manual-main {
        padding: 1rem;
        margin-top: 60px;
    }

    /* ========================================
       공통 모바일 스타일 (480px 이하) - Complete & Section 공통
       ======================================== */
    
    .section-header h1 {
        font-size: 1.5rem;
    }

    .section h2 {
        font-size: 1.25rem;
    }

    .section h3 {
        font-size: 1.1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    /* 이미지 작은 모바일 최적화 - padding 조정 */
    .screenshot {
        margin: 1rem -1rem;
        width: calc(100% + 2rem);
    }

    /* step 내부의 이미지는 step의 padding-left도 무시 */
    .step .screenshot {
        margin-left: calc(-1rem - 2rem); /* 부모 padding + step padding-left */
        margin-right: -1rem;
        width: calc(100% + 2rem + 2rem);
    }

    .screenshot img {
        width: 100%;
        max-height: 40vh;
        border-radius: 0;
        border: none;
    }

    .manual-table table {
        font-size: 0.8rem;
    }

    .manual-table th,
    .manual-table td {
        padding: 0.4rem 0.5rem;
    }
}

/* ========================================
   Sidebar Print Styles
   ======================================== */
@media print {
    .sidebar-toc,
    .sidebar-toggle,
    .sidebar-overlay,
    .manual-nav {
        display: none !important;
    }

    .manual-main {
        margin-left: 0 !important;
        margin-top: 0 !important;
        padding: 0 !important;
    }
}
