/* ForusSec Lab — 보고서 가이드 스타일 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Pretendard', -apple-system, sans-serif; background: #0f0f0f; color: #e0e0e0; }

.navbar {
  background: #1a1a1a; border-bottom: 2px solid #F96B20;
  padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100;
}
.navbar .logo { font-size: 1.1rem; font-weight: 700; color: #F96B20; }
.navbar ul { display: flex; gap: 16px; list-style: none; }
.navbar ul a { color: #ccc; text-decoration: none; font-size: 0.88rem; padding: 4px 10px; border-radius: 4px; }
.navbar ul a:hover, .navbar ul a.active { background: #F96B20; color: #fff; }

.guide-layout { display: flex; height: calc(100vh - 52px); }

/* 사이드바 */
.sidebar { width: 280px; background: #141414; border-right: 1px solid #2a2a2a; overflow-y: auto; flex-shrink: 0; padding: 16px 0; }
.sidebar h3 { padding: 0 16px 12px; color: #F96B20; font-size: 0.9rem; border-bottom: 1px solid #2a2a2a; margin-bottom: 8px; }
.sidebar-item { display: flex; align-items: center; gap: 8px; padding: 10px 16px; text-decoration: none; border-left: 3px solid transparent; transition: all 0.15s; }
.sidebar-item:hover { background: #1e1e1e; }
.sidebar-item.active { background: #1e1a10; border-left-color: #F96B20; }
.vuln-id { font-size: 0.75rem; font-weight: 700; color: #F96B20; min-width: 36px; font-family: monospace; }
.vuln-name { font-size: 0.82rem; color: #ccc; flex: 1; line-height: 1.3; }
.severity { font-size: 0.7rem; font-weight: 700; padding: 2px 6px; border-radius: 3px; }
.severity-상, .severity-high { background: #4a1010; color: #ff8080; }
.severity-중, .severity-med  { background: #2a2a10; color: #ffcc80; }
.severity-하, .severity-low  { background: #102a10; color: #90ff90; }
.sidebar-note { padding: 12px 16px; font-size: 0.78rem; color: #666; border-top: 1px solid #1e1e1e; margin-top: 8px; }

/* 메인 */
.guide-main { flex: 1; overflow-y: auto; padding: 24px 32px; }

/* 웰컴 화면 */
.welcome-box h2 { color: #F96B20; margin-bottom: 12px; }
.welcome-box > p { color: #aaa; margin-bottom: 24px; }
.report-flow { background: #1a1a1a; border-radius: 8px; padding: 24px; margin-bottom: 20px; }
.report-flow h3 { color: #F96B20; margin-bottom: 16px; }
.flow-steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.flow-step { background: #2a2a2a; border-radius: 8px; padding: 12px 14px; text-align: center; min-width: 100px; }
.step-num { width: 28px; height: 28px; background: #F96B20; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto 6px; font-size: 0.85rem; }
.step-text { font-size: 0.78rem; color: #ccc; }
.flow-arrow { color: #F96B20; font-size: 1.2rem; }

.report-structure { background: #1a1a1a; border-radius: 8px; padding: 24px; }
.report-structure h3 { color: #F96B20; margin-bottom: 16px; }
.structure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.structure-item { background: #111; border-radius: 6px; padding: 16px; }
.structure-item h4 { color: #F96B20; margin-bottom: 10px; font-size: 0.9rem; }
.structure-item ol { padding-left: 18px; font-size: 0.82rem; color: #bbb; line-height: 2; }

/* 취약점 헤더 */
.vuln-header { background: #1a1a1a; border-radius: 8px; padding: 20px 24px; margin-bottom: 20px; }
.vuln-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.vuln-id-large { font-family: monospace; font-size: 1.1rem; font-weight: 700; color: #F96B20; background: #2a1a00; padding: 4px 10px; border-radius: 4px; }
.vuln-title-row h2 { font-size: 1.2rem; flex: 1; }
.severity-badge { padding: 4px 12px; border-radius: 4px; font-size: 0.85rem; font-weight: 700; }
.meta-row { display: flex; gap: 16px; font-size: 0.8rem; color: #888; margin-bottom: 8px; }
.severity-reason { font-size: 0.85rem; color: #ccaa80; background: #1a1200; border: 1px solid #4a3a00; border-radius: 4px; padding: 8px 12px; }

/* 탭 */
.tab-menu { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid #2a2a2a; padding-bottom: 0; }
.tab { padding: 10px 18px; text-decoration: none; color: #888; font-size: 0.88rem; border-radius: 6px 6px 0 0; border-bottom: 2px solid transparent; }
.tab:hover { color: #ccc; background: #1a1a1a; }
.tab.active { color: #F96B20; border-bottom-color: #F96B20; background: #1a1a1a; }

/* 가이드 섹션 */
.guide-intro { background: #1a2a1a; border: 1px solid #3a6a3a; border-radius: 6px; padding: 12px 16px; margin-bottom: 20px; font-size: 0.85rem; color: #90ee90; }
.guide-section { background: #1a1a1a; border-radius: 8px; padding: 20px 24px; margin-bottom: 16px; border: 1px solid #2a2a2a; }
.section-header { margin-bottom: 14px; }
.section-header h3 { font-size: 1rem; color: #F96B20; margin-bottom: 6px; }
.required-items { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { background: #1e2a3e; color: #80aaff; padding: 2px 8px; border-radius: 12px; font-size: 0.75rem; }
.standard-label { font-size: 0.78rem; color: #666; margin-bottom: 8px; }
.standard-content pre {
  background: #111; border: 1px solid #2a2a2a; border-radius: 6px;
  padding: 16px; font-family: 'D2Coding', 'Consolas', monospace;
  font-size: 0.82rem; line-height: 1.7; color: #ddd;
  white-space: pre-wrap; word-break: break-all; overflow-x: auto;
}

/* 채점표 */
.scoring-table { width: 100%; border-collapse: collapse; }
.scoring-table th { background: #2a2a2a; color: #F96B20; padding: 10px 14px; text-align: left; }
.scoring-table td { padding: 10px 14px; border-bottom: 1px solid #222; font-size: 0.88rem; }
.scoring-table .score { text-align: center; font-weight: 700; color: #F96B20; }
.total-row td { background: #1a1a00; border-top: 2px solid #F96B20; }

/* 예시 비교 */
.example-box { background: #1a1a1a; border-radius: 8px; padding: 20px; margin-bottom: 16px; border: 1px solid #2a2a2a; }
.example-type { font-size: 0.8rem; color: #888; margin-bottom: 12px; }
.example-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.example-label { font-size: 0.78rem; font-weight: 700; padding: 4px 0 8px; }
.example-label.bad { color: #ff8080; }
.example-label.good { color: #90ff90; }
.bad-example pre { background: #1a0a0a; border: 1px solid #4a1010; border-radius: 6px; padding: 12px; font-size: 0.8rem; color: #ffaaaa; white-space: pre-wrap; }
.good-example pre { background: #0a1a0a; border: 1px solid #104a10; border-radius: 6px; padding: 12px; font-size: 0.8rem; color: #aaffaa; white-space: pre-wrap; }

/* 체크리스트 */
.checklist-desc { color: #aaa; font-size: 0.88rem; margin-bottom: 16px; }
.checklist-box { background: #1a1a1a; border-radius: 8px; padding: 20px 24px; margin-bottom: 16px; }
.check-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid #222; cursor: pointer; font-size: 0.88rem; color: #ccc; }
.check-item:last-child { border-bottom: none; }
.check-item input { width: 16px; height: 16px; margin-top: 2px; accent-color: #F96B20; cursor: pointer; }
.check-item input:checked + span { color: #90ff90; text-decoration: line-through; }
.checklist-result { padding: 12px 16px; border-radius: 6px; font-size: 0.88rem; }
.checklist-result.ok { background: #102a10; color: #90ff90; border: 1px solid #206b20; }
.checklist-result.pending { background: #1a1a10; color: #ccaa80; border: 1px solid #4a4a20; }
