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

/* 인쇄 최적화 CSS */
@media print {
    /* 페이지 설정 - 더 많은 내용 표시를 위한 최적화 */
    @page {
        margin: 1.5cm 1.5cm 2cm 1.5cm;  /* 하단 여백을 2cm로 증가 */
        size: A4;
    }

    /* 기본 인쇄 스타일 - 축소된 폰트 */
    body {
        font-size: 10pt;  /* 12pt → 10pt로 축소 */
        line-height: 1.3;  /* 1.4 → 1.3으로 축소 */
        color: #000;
        background: white;
    }

    /* 인쇄 시 숨길 요소들 */
    .header,
    .navigation,
    .scroll-to-top,
    .copy-btn,
    .print-button {
        display: none !important;
    }

    /* 컨테이너 기본 설정 */
    .container {
        max-width: none;
        margin: 0;
        padding: 0;
        background-color: white;
        box-shadow: none;
    }

    .content {
        padding: 0;
        margin: 0;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: white;
    }

    /* ========================================
       스마트 페이지 넘김 제어 시스템
       ======================================== */

    /* 1. 절대 분리되면 안 되는 요소들 - 강화된 설정 및 여백 최적화 */
    .requirement-card,
    .spec-item,
    .step-item,
    .config-method,
    .code-block,
    .notice-box,
    .info-notice,
    .warning-notice,
    .success-notice,
    .danger-notice,
    .important-note {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        margin-bottom: 10pt !important;  /* 15pt → 10pt로 축소 */
    }

    /* 섹션 제목과 첫 번째 카드 분리 방지 강화 */
    h2 + .requirement-card,
    h3 + .requirement-card,
    h4 + .requirement-card {
        page-break-before: avoid !important;
        break-before: avoid !important;
        margin-top: 6pt !important;  /* 제목과의 간격 축소 */
    }

    /* 연속된 requirement-card들의 그룹 처리 */
    .requirement-card + .requirement-card {
        margin-top: 8pt !important;  /* 12pt → 8pt로 축소 */
    }

    /* 2. 큰 표는 분할 허용 (헤더 반복 없음) */
    table {
        page-break-inside: auto;
        break-inside: auto;
    }

    /* 작은 표는 분할 방지 */
    table.small-table,
    .package-table table {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    /* 표 헤더 반복 설정 - 비활성화 (헤더 반복 안함) */
    table thead {
        /* display: table-header-group; */
    }

    table tbody {
        display: table-row-group;
    }

    /* 3. 제목과 내용 분리 방지 - 강화된 설정 */
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid !important;
        break-after: avoid !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        orphans: 4;  /* 3 → 4로 강화 */
        widows: 4;   /* 3 → 4로 강화 */
    }

    /* 제목 다음 첫 번째 요소와 분리 방지 - 강화 */
    h1 + *, h2 + *, h3 + *, h4 + * {
        page-break-before: avoid !important;
        break-before: avoid !important;
        orphans: 3;
        widows: 3;
    }

    /* 특별히 config-method와 제목 분리 방지 */
    h2 + .config-method,
    h3 + .config-method {
        page-break-before: avoid !important;
        break-before: avoid !important;
    }

    /* 4. 섹션별 페이지 넘김 제어 - 첫 페이지 최적화 */
    h1 {
        page-break-before: always;
        break-before: page;
        margin-top: 0;
        margin-bottom: 15pt;  /* 새로 추가: h1 아래 여백 축소 */
    }

    /* 첫 번째 h1은 페이지 넘김 방지 */
    h1:first-child,
    .content > h1:first-child {
        page-break-before: avoid !important;
        break-before: avoid !important;
        margin-top: 0 !important;
        margin-bottom: 12pt !important;  /* 첫 페이지 h1 여백 더 축소 */
    }

    /* 5. 적절한 공백 관리 - 첫 페이지 최적화를 위한 축소된 여백 */
    h2 {
        margin-top: 15pt;  /* 20pt → 15pt로 더 축소 */
        margin-bottom: 8pt;  /* 10pt → 8pt로 축소 */
    }

    h3 {
        margin-top: 12pt;  /* 15pt → 12pt로 더 축소 */
        margin-bottom: 6pt;  /* 8pt → 6pt로 축소 */
    }

    h4 {
        margin-top: 10pt;  /* 12pt → 10pt로 축소 */
        margin-bottom: 5pt;  /* 6pt → 5pt로 축소 */
    }

    h5 {
        margin-top: 8pt;   /* 10pt → 8pt로 축소 */
        margin-bottom: 4pt; /* 5pt → 4pt로 축소 */
    }

    /* 첫 페이지의 첫 번째 섹션들은 더욱 축소 */
    .content > h2:first-of-type {
        margin-top: 10pt !important;  /* 첫 번째 h2 여백 더 축소 */
    }

    .content > p:first-of-type {
        margin-top: 8pt !important;   /* 첫 번째 단락 여백 축소 */
        margin-bottom: 8pt !important;
    }

    /* 6. 리스트와 단락 최적화 */
    ul, ol {
        page-break-inside: avoid;
        break-inside: avoid;
        orphans: 2;
        widows: 2;
    }

    /* 긴 리스트는 분할 허용 */
    ul.long-list, ol.long-list {
        page-break-inside: auto;
        break-inside: auto;
    }

    li {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    p {
        orphans: 3;
        widows: 3;
        margin: 6pt 0;  /* 단락 여백 축소 */
    }

    /* ========================================
       레이아웃 유지 시스템
       ======================================== */

    /* 하드웨어 스펙 레이아웃 - 페이지 분할 최적화 */
    .hardware-specs {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        gap: 15pt !important;
        margin: 20pt 0 !important;
        page-break-inside: avoid !important;  /* 전체 그리드 분할 방지 */
        break-inside: avoid !important;
    }

    .spec-item {
        flex: 1 1 30% !important;
        min-width: 180pt !important;
        margin-bottom: 10pt !important;
        border: 1pt solid #ddd;
        padding: 10pt;
        background: #f8f9fa;
        page-break-inside: avoid !important;  /* 개별 카드 분할 방지 */
        break-inside: avoid !important;
    }

    /* spec-item 그룹이 너무 클 경우 분할 허용 */
    .hardware-specs.large-grid {
        page-break-inside: auto !important;
        break-inside: auto !important;
    }

    /* 프로세스 플로우 레이아웃 - 분할 방지 강화 */
    .process-flow {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin: 20pt 0 !important;
        flex-wrap: nowrap !important;
        page-break-inside: avoid !important;  /* 플로우차트 분할 방지 */
        break-inside: avoid !important;
        orphans: 3;
        widows: 3;
    }

    .process-step {
        flex: 1 !important;
        margin: 0 5pt !important;
        position: relative !important;
        border: 1pt solid #ddd;
        padding: 10pt;
        text-align: center;
        page-break-inside: avoid !important;  /* 개별 스텝 분할 방지 */
        break-inside: avoid !important;
    }

    /* 플로우차트 제목과 다이어그램 분리 방지 */
    h4 + .process-flow,
    h5 + .process-flow {
        page-break-before: avoid !important;
        break-before: avoid !important;
    }

    .process-step:not(:last-child)::after {
        content: "→" !important;
        position: absolute !important;
        right: -15pt !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        font-size: 14pt !important;
        font-weight: bold !important;
    }

    /* 설치 단계 최적화 - 여백 축소 */
    .installation-steps {
        margin: 10pt 0;  /* 15pt → 10pt로 축소 */
    }

    .step-item {
        margin-bottom: 12pt;  /* 15pt → 12pt로 축소 */
        border: 1pt solid #ddd;
        padding: 12pt;  /* 15pt → 12pt로 축소 */
        background: #f9f9f9;
    }

    /* ========================================
       표와 코드 블록 최적화
       ======================================== */

    /* 코드 블록 - 분할 방지 강화 */
    .code-block {
        border: 1pt solid #ddd;
        padding: 8pt;
        margin: 12pt 0;  /* 8pt → 12pt로 증가 (위아래 여백 확보) */
        font-size: 8pt;
        background: #f8f9fa;
        font-family: 'Courier New', monospace;
        line-height: 1.2;
        page-break-inside: avoid !important;  /* 절대 분할 방지 */
        break-inside: avoid !important;
        orphans: 4;  /* 고아 줄 방지 */
        widows: 4;   /* 과부 줄 방지 */
    }

    /* 코드 블록 제목과 내용 강력한 결합 */
    h4 + .code-block,
    h5 + .code-block,
    p + .code-block {
        page-break-before: avoid !important;
        break-before: avoid !important;
        margin-top: 8pt !important;  /* 제목과의 간격 최소화 */
    }

    /* 코드 블록 앞의 설명 텍스트와 결합 */
    .code-block + p,
    .code-block + ul,
    .code-block + h4,
    .code-block + h5 {
        page-break-before: avoid !important;
        break-before: avoid !important;
    }

    /* 긴 코드 블록은 분할 허용 */
    .code-block.long-code {
        page-break-inside: auto !important;
        break-inside: auto !important;
    }

    /* 표 스타일 - 더 축소된 폰트 */
    table {
        width: 100%;
        border-collapse: collapse;
        margin: 10pt 0;
        font-size: 9pt;  /* 10pt → 9pt로 축소 */
    }

    table th, table td {
        border: 1pt solid #ddd;
        padding: 4pt;  /* 6pt → 4pt로 축소 */
        text-align: left;
    }

    table th {
        background-color: #f0f0f0;
        font-weight: bold;
    }

    /* ========================================
       알림 박스 최적화
       ======================================== */

    .info-notice, .warning-notice, .success-notice, .danger-notice {
        border: 2pt solid #ddd;
        padding: 10pt;
        margin: 10pt 0;
        background: #f9f9f9;
    }

    .info-notice {
        border-left-color: #17a2b8;
    }

    .warning-notice {
        border-left-color: #ffc107;
        background: #fff9e6;
    }

    .success-notice {
        border-left-color: #28a745;
    }

    .danger-notice {
        border-left-color: #dc3545;
    }

    /* ========================================
       특수 케이스 처리
       ======================================== */

    /* 페이지 구분선 */
    .section-divider {
        height: 1pt;
        background: #ddd;
        margin: 20pt 0;
        page-break-inside: avoid;
    }

    /* 푸터 */
    .footer {
        page-break-before: avoid;
        break-before: avoid;
        border-top: 1pt solid #ddd;
        padding-top: 10pt;
        margin-top: 20pt;
        text-align: center;
    }

    /* 링크 URL 표시 (선택적) */
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 8pt;
        color: #666;
    }

    /* 내부 링크는 URL 표시 안함 */
    a[href^="#"]:after,
    a[href^="chapter"]:after {
        content: "";
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 40px;
    border-radius: 10px;
}

.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header .version {
    font-size: 1.2em;
    opacity: 0.9;
}

.toc {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    border-left: 5px solid #667eea;
}

.toc h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.toc ul {
    list-style: none;
}

.toc li {
    margin: 8px 0;
    padding-left: 20px;
}

.toc li:before {
    content: "▶";
    color: #667eea;
    margin-right: 10px;
}

.toc a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.toc a:hover {
    color: #667eea;
}

.section {
    margin-bottom: 50px;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

h1 {
    color: #667eea;
    font-size: 2.2em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
}

h2 {
    color: #764ba2;
    font-size: 1.8em;
    margin: 30px 0 15px 0;
    padding-left: 15px;
    border-left: 4px solid #764ba2;
}

h3 {
    color: #555;
    font-size: 1.4em;
    margin: 25px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 2px solid #eee;
}

h4 {
    color: #666;
    font-size: 1.2em;
    margin: 20px 0 10px 0;
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

ul, ol {
    margin: 15px 0;
    padding-left: 30px;
}

li {
    margin: 8px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #e3f2fd;
}

.code-block {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    padding: 0px 20px;
    margin: 20px 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    overflow-x: auto;
    position: relative;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.2;
    color: #2d3748;
    text-align: left;
}

.code-block::before {
    content: "CODE";
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 11px;
    color: #6c757d;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 3px;
}

/* 제목이 있는 코드 블록 스타일 개선 */
.code-block > strong {
    display: block;
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 12px;
    color: #667eea;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 8px;
    border-radius: 3px;
    max-width: calc(100% - 80px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 설명이 있는 경우 */
.code-block > strong + p {
    line-height: 1.5;
    font-size: 13px;
    color: #6c757d;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.code-block pre {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.code-block code {
    background: transparent;
    padding: 0;
    border: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* 코드 복사 버튼 스타일 */
.copy-btn {
    position: absolute;
    top: 8px;
    right: 50px; /* CODE 라벨 왼쪽에 배치 */
    background: #667eea;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    z-index: 10;
}

.copy-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: translateY(0);
}

/* code-block 내의 복사 버튼 */
.code-block .copy-btn {
    background: rgba(102, 126, 234, 0.8);
    backdrop-filter: blur(4px);
}

.code-block .copy-btn:hover {
    background: rgba(90, 103, 216, 0.9);
}

/* 일반 pre 태그의 복사 버튼 */
pre:not(.code-block pre) {
    position: relative;
}

pre:not(.code-block pre) .copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(108, 117, 125, 0.8);
    backdrop-filter: blur(4px);
}

pre:not(.code-block pre) .copy-btn:hover {
    background: rgba(73, 80, 87, 0.9);
}

.highlight {
    background-color: #fff3cd;
    padding: 15px;
    border-left: 4px solid #ffc107;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.warning {
    background-color: #f8d7da;
    padding: 15px;
    border-left: 4px solid #dc3545;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.info {
    background-color: #d1ecf1;
    padding: 15px;
    border-left: 4px solid #17a2b8;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.architecture-diagram {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.layer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    margin: 5px 0;
    border-radius: 5px;
    font-weight: bold;
}

.arrow {
    text-align: center;
    font-size: 1.5em;
    color: #667eea;
    margin: 10px 0;
}

.footer {
    text-align: center;
    padding: 30px;
    background-color: #667eea;
    color: white;
    margin-top: 50px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .header h1 {
        font-size: 2em;
    }

    .section {
        padding: 20px;
    }

    table {
        font-size: 0.9em;
    }

    th, td {
        padding: 8px;
    }
}

.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: none;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.scroll-to-top:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

/* 섹션 구분을 위한 간단한 수정 */
.section {
    margin-bottom: 60px; /* 기존보다 조금만 증가 */
    padding: 35px; /* 기존보다 조금만 증가 */
    border-top: 4px solid #667eea; /* 상단에 구분선 추가 */
}

.section h1 {
    margin-top: 0; /* 제목 상단 여백 제거 */
}

/* 네비게이션 스타일 */
.navigation {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.navigation a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-size: 0.9em;
    font-weight: 500;
}

.navigation a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 언어 선택 스타일 */
.language-selector {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.language-selector .label {
    color: white;
    font-weight: bold;
    font-size: 0.9em;
}

.language-selector a {
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-size: 0.85em;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.language-selector a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.language-selector a.current {
    background: rgba(255, 255, 255, 0.4);
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #667eea;
}

@media (max-width: 768px) {
    .navigation {
        padding: 10px;
    }

    .navigation a {
        padding: 6px 10px;
        font-size: 0.8em;
    }

    .content {
        padding: 25px;
    }
}


/* 범용 안내 박스 스타일 */
.notice-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.notice-box::before {
    content: "📊";
    font-size: 2.5em;
    position: absolute;
    top: 15px;
    left: 20px;
    opacity: 0.3;
}

.notice-box h4 {
    color: white;
    margin: 0 0 10px 0;
    font-size: 1.4em;
    font-weight: 600;
}

.notice-box p {
    margin: 0;
    font-size: 1.1em;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.notice-box .icon {
    font-size: 2em;
    margin-bottom: 10px;
    display: block;
}

/* 반응형 */
@media (max-width: 768px) {
    .notice-box {
        padding: 20px 15px;
    }

    .notice-box::before {
        font-size: 2em;
        top: 10px;
        left: 15px;
    }

    .notice-box h4 {
        font-size: 1.2em;
    }

    .notice-box p {
        font-size: 1em;
    }
}

/* 범용 안내 박스 스타일 */
.info-notice {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
    position: relative;
    overflow: hidden;
}

.warning-notice {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    position: relative;
    overflow: hidden;
}

.success-notice {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.danger-notice {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    position: relative;
    overflow: hidden;
}

/* 범용 안내 박스 공통 스타일 */
.notice-box, .info-notice, .warning-notice, .success-notice, .danger-notice {
    position: relative;
    overflow: hidden;
}

.notice-box::before, .info-notice::before, .warning-notice::before,
.success-notice::before, .danger-notice::before {
    font-size: 2.5em;
    position: absolute;
    top: 15px;
    left: 20px;
    opacity: 0.3;
}

.notice-box h4, .info-notice h4, .warning-notice h4,
.success-notice h4, .danger-notice h4 {
    margin: 0 0 10px 0;
    font-size: 1.4em;
    font-weight: 600;
    color: beige;
}

.notice-box p, .info-notice p, .warning-notice p,
.success-notice p, .danger-notice p {
    margin: 0;
    font-size: 1.1em;
    font-weight: 500;
    text-align: center;
}

.notice-box ul, .info-notice ul, .warning-notice ul,
.success-notice ul, .danger-notice ul {
    text-align: left;
}

.notice-box .icon, .info-notice .icon, .warning-notice .icon,
.success-notice .icon, .danger-notice .icon {
    font-size: 1.4em;
    margin-bottom: 10px;
    display: block;
    float: left;
}

/* 범용 강조 박스 */
.highlight-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.highlight-secondary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #667eea;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

/* 범용 카드 스타일 */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin: 20px 0;
    border-top: 4px solid #667eea;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    margin: -25px -25px 20px -25px;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    font-size: 1.2em;
}

/* 반응형 개선 */
@media (max-width: 768px) {
    .notice-box, .info-notice, .warning-notice, .success-notice, .danger-notice {
        padding: 20px 15px;
    }

    .notice-box::before, .info-notice::before, .warning-notice::before,
    .success-notice::before, .danger-notice::before {
        font-size: 2em;
        top: 10px;
        left: 15px;
    }

    .notice-box h4, .info-notice h4, .warning-notice h4,
    .success-notice h4, .danger-notice h4 {
        font-size: 1.2em;
    }

    .notice-box p, .info-notice p, .warning-notice p,
    .success-notice p, .danger-notice p {
        font-size: 1em;
    }

    .card {
        padding: 20px;
    }

    .card-header {
        margin: -20px -20px 15px -20px;
        padding: 12px 15px;
        font-size: 1.1em;
    }
}


/* ==========================================
   인쇄용 스타일 (Print Styles)
   ========================================== */


/* 인쇄 버튼 추가용 스타일 */
.print-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.print-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.print-button:active {
    transform: translateY(0);
}


@media (max-width: 768px) {
    .print-button {
        top: 10px;
        right: 10px;
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* ==========================================
   3장 전용 개선 스타일
   ========================================== */

/* 요구사항 카드 스타일 */
.requirement-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-left: 4px solid #28a745;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    transition: all 0.3s ease;
    position: relative;
}

.requirement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.requirement-card h4 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.requirement-card .req-icon {
    font-size: 1.5em;
    width: 35px;
    height: 35px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
}

/* 하드웨어 요구사항 특별 스타일 */
.hardware-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.spec-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.spec-item:hover {
    transform: scale(1.05);
}

.spec-item .spec-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
    display: block;
}

.spec-item h4 {
    color: lightcyan;
    margin: 10px 0;
    font-size: 1.1em;
}

.spec-item p {
    margin: 0;
    font-size: 0.95em;
    opacity: 0.9;
}

/* 설치 단계 스타일 */
.installation-steps {
    counter-reset: step-counter;
}

.step-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    position: relative;
    transition: all 0.3s ease;
    counter-increment: step-counter;
}

.step-item:hover {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.1);
}

.step-item::before {
    content: counter(step-counter);
    position: absolute;
    top: -15px;
    left: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.step-item h4 {
    margin-left: 20px;
    color: #667eea;
    margin-bottom: 15px;
}

/* 패키지 구성 테이블 개선 */
.package-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.package-table table {
    margin: 0;
    width: 100%;
}

.package-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.package-table thead th {
    color: white;
    padding: 15px;
    font-weight: 600;
}

.package-table tbody tr:hover {
    background: #f8f9fa;
}

/* 주의사항 개선 */
.important-note {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-left: 4px solid #f39c12;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
}

.important-note::before {
    content: "⚠️";
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1.5em;
}

.important-note h4 {
    color: #d68910;
    margin: 2px 0 10px 35px;
}

.important-note p {
    margin-left: 35px;
    margin-bottom: 0;
    color: #7d6608;
}

/* 프로세스 플로우 */
.process-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    flex-wrap: wrap;
    gap: 15px;
}

.process-step {
    background: white;
    border: 2px solid #667eea;
    border-radius: 10px;
    padding: 15px 20px;
    text-align: center;
    flex: 1;
    min-width: 120px;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: #667eea;
    font-weight: bold;
}

.process-step .step-icon {
    font-size: 2em;
    display: block;
    margin-bottom: 10px;
}

.process-step h5 {
    margin: 0;
    color: #667eea;
    font-size: 0.9em;
}

/* 반응형 개선 */
@media (max-width: 768px) {
    .hardware-specs {
        grid-template-columns: 1fr;
    }

    .process-flow {
        flex-direction: column;
    }

    .process-step:not(:last-child)::after {
        content: "↓";
        right: 50%;
        top: auto;
        bottom: -25px;
        transform: translateX(50%);
    }

    .requirement-card {
        padding: 15px;
    }
}

/* 섹션 구분선 */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, transparent 100%);
    margin: 40px 0;
    border-radius: 1px;
}

/* 개발환경 구성 섹션 개선 */
.config-method {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.config-method:hover {
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.1);
}

.config-method h3 {
    color: #667eea;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.config-method .method-icon {
    font-size: 1.5em;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 주요 설정 파일 섹션 개선 */
.config-file-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.config-file-section h2 {
    color: #495057;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.config-file-section h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

