:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #343a40;
    --container-bg: #ffffff;
    --border-color: #dee2e6;
    --header-bg: #f7f9fc; /* 연한 헤더 배경색 */

    /* COGI16 Group Colors */
    --cogi16-ap-color: #800080; /* Purple/Indigo */
    --cogi16-as-color: #FF69B4; /* Red/Pink/Apricot tones */
    --cogi16-cp-color: #228B22; /* Green/Khaki */
    --cogi16-cs-color: #008080; /* Teal/Blue-Green tones */

    --header-height: 6.8rem;
}

html {
    height: 100%;
}

ul {
    list-style: none;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    
    /* --- 스티키 푸터(Sticky Footer) 설정 --- */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- 전체 너비 헤더 스타일 --- */
header {
    position: fixed;
    background-color: var(--header-bg);
    padding: 2rem; /* 높이 100% 확장 */
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0; /* 헤더는 줄어들지 않음 */
    height: var(--header-height);
    z-index: 9999;
}

.header-container {
    max-width: 1000px; /* 본문 너비와 일치시키기 위해 max-width 재적용 */
    margin: 0 auto;  /* 컨테이너를 중앙에 정렬 */
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-container h1 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.8rem;
    flex-shrink: 0;
}

nav {
    display: flex;
    gap: 10px;
    flex-grow: 1;
    justify-content: flex-end;
}

.nav-btn, .nav-btn:visited { /* :visited 스타일 추가 */
    text-decoration: none;
    color: var(--text-color); /* 일관된 텍스트 색상 */
    font-weight: bold;
    width: 100px; /* 고정 너비 */
    height: 40px; /* 고정 높이 */
    line-height: 40px; /* 텍스트 수직 중앙 정렬 */
    border-radius: 8px;
    background-color: white;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    text-align: center;
    transition: background-color 0.1s ease; /* 트랜지션 효과 추가 */
}

.nav-btn:hover {
    background-color: rgba(0, 123, 255, 0.1); /* 기본 테마 색상의 연한 버전 */
    color: var(--text-color); /* 호버 시에도 텍스트 색상 변경 없음 */
    transform: none; /* 호버 시에도 변형 없음 */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* 호버 시에도 그림자 변경 없음 */
}

/* --- 메인 콘텐츠 컨테이너 --- */
#app {
    max-width: 1000px; /* 페이지 너비 증가 */
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    padding-top: calc(var(--header-height) + 20px);
    
    /* --- 스티키 푸터(Sticky Footer) 설정 --- */
    flex-grow: 1; /* 이 부분이 내용을 채우고 남는 공간을 모두 차지 */
}

main {
    background-color: var(--container-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

/* --- 고정 진행도 표시기 --- */
#page-indicator {
    position: fixed;
    top: calc(var(--header-height) + 20px);
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease;
    opacity: 0;
}

#welcome-screen {
    /* text-align: center; */ /* Welcome screen content will be aligned by margin auto where applicable */
}
#result-screen {
    text-align: center;
}

/* ... (나머지 스타일은 이전과 동일) ... */

.question-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #fdfdfd;
}

.question-item p {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.options-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.options-group label {
    cursor: pointer;
    padding: 10px 5px;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    text-align: center;
    background-color: transparent;
    border: none;
}

.options-group label:hover {
    background-color: #e0f7fa; /* 연한 하늘색 */
}

.options-group input[type="radio"] {
    display: none;
}

.options-group input[type="radio"]:checked + label {
    background-color: transparent; /* 선택 시 배경색 변경 없음 */
    color: var(--text-color);
    font-weight: bold;
}

/* --- 리커트 척도 원형 기호 스타일 --- */

/* 원형 기호 기본 스타일 */
.option-circle {
    display: block;
    border-radius: 50%;
    background-color: #e0e0e0; /* 기본 회색 */
    margin-bottom: 8px;
    transition: all 0.2s ease-in-out;
}

/* 옵션 값(data-value)에 따른 원형 크기 조절 (v2) */
label[data-value="0"] .option-circle { width: 32px; height: 32px; }
label[data-value="1"] .option-circle, label[data-value="-1"] .option-circle { width: 35px; height: 35px; }
label[data-value="2"] .option-circle, label[data-value="-2"] .option-circle { width: 38px; height: 38px; }
label[data-value="3"] .option-circle, label[data-value="-3"] .option-circle { width: 40px; height: 40px; }

/* 선택 시 원형 기호 색상 변경 (투명도 조절 방식) */

/* 그렇지 않다 계열 - 보라 (rgb(106, 13, 173)) */
.options-group input[value="-3"]:checked + label .option-circle { background-color: rgba(106, 13, 173, 1); }
.options-group input[value="-2"]:checked + label .option-circle { background-color: rgba(106, 13, 173, 0.75); }
.options-group input[value="-1"]:checked + label .option-circle { background-color: rgba(106, 13, 173, 0.5); }

/* 중립 */
.options-group input[value="0"]:checked + label .option-circle { background-color: #888888; } /* 어두운 회색 */

/* 그렇다 계열 - 녹색 (rgb(0, 128, 0)) */
.options-group input[value="1"]:checked + label .option-circle { background-color: rgba(0, 128, 0, 0.5); }
.options-group input[value="2"]:checked + label .option-circle { background-color: rgba(0, 128, 0, 0.75); }
.options-group input[value="3"]:checked + label .option-circle { background-color: rgba(0, 128, 0, 1); }

/* 옵션 텍스트 스타일 */
.option-label-text {
    font-size: 0.85rem;
    display: block;
}

#pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

button#prev-btn .active {
    background-color: var(--secondary-color);
}

button#prev-btn .active:hover {
    background-color: #5a6268;
}

#result-display {
    text-align: left;
    margin-top: 2rem;
}

/* --- 인지유형 그리드 스타일 --- */
#types-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}

.type-card {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.type-card-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin: 0;
}

.type-card-nickname {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: 0.5rem;
}

.type-card-alias-en { /* 새로 추가할 스타일 */
    font-size: 0.8rem;
    color: var(--secondary-color); /* 기존 nickname과 같은 색으로 */
    opacity: 0.7; /* 조금 더 연하게 */
    font-weight: normal; /* 굵기 조절 */
}


.type-card-role {
    font-size: 0.8rem;
    color: #888; /* Slightly lighter than secondary-color for differentiation */
    margin-top: 0.2rem;
}

/* --- 전체 너비 푸터 스타일 --- */
footer {
    background-color: #343a40;
    color: #f8f9fa;
    padding: 1.5rem 2rem; /* 패딩 축소 */
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info {
    text-align: left;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-subtitle {
    font-size: 0.9rem;
    color: #adb5bd;
    margin-bottom: 0.5rem;
}

.footer-copyright, .footer-disclaimer {
    font-size: 0.8rem;
    color: #ced4da;
    margin: 0.2rem 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.language-selector {
    margin-bottom: 5px; /* Adjust spacing between selector and links */
}

#language-switcher {
    background-color: #555;
    color: #f8f9fa;
    border: 1px solid #777;
    border-radius: 4px;
    padding: 5px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    -webkit-appearance: none; /* Remove default browser styling */
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23f8f9fa%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%00-13.2-6.4H18.4c-4.8%200-9.3%201.8-12.9%205.5-3.8%203.7-6.1%208.7-6.1%2013.8%200%205%202.3%2010.2%206.1%2013.8l118.8%20118.8c4%203.9%209%206.1%2014.1%206.1s10.1-2.1%2014.1-6.1l118.8-118.8c3.8-3.6%206.1-8.7%206.1-13.8%200-5-2.3-10.2-6.1-13.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px;
    padding-right: 25px; /* Space for the custom arrow */
}


.footer-links a, .footer-links a:visited {
    color: #f8f9fa;
    text-decoration: none;
    margin: 2px 0;
    font-weight: bold;
    font-size: 0.9rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* --- 도움말 페이지 버튼 스타일 --- */
.help-nav-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.help-nav-btn {
    flex-grow: 1;
    background-color: rgba(0, 123, 255, 0.1); /* 요청된 색상 */
    color: var(--text-color); /* 텍스트는 그대로 */
    border: 1px solid var(--primary-color); /* 테두리도 primary-color로 유지하여 통일감 */
}

/* Active button retains the primary color scheme */
.help-nav-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Hover effect for non-active buttons */
.help-nav-btn:hover:not(.active) {
    background-color: #76c1e0;
    border-color: #6bb9d8;
}

.help-nav-btn:hover:not(.active) {
    background-color: #76c1e0;
    border-color: #6bb9d8;
}

/* --- Help Page Dynamic Content Styling --- */
.help-content .help-group-section {
    background-color: var(--container-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.help-content .help-group-section h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-top: 0;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 1rem;
}

.help-content .help-group-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-content .help-group-section li {
    padding: 0.6rem 0;
    border-bottom: 1px dashed #e9ecef;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

.help-content .help-group-section li:last-child {
    border-bottom: none;
}

/* General container for axis and factor lists */
#30axes-display-area ul,
#8factors-display-area ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Responsive grid */
    gap: 1rem;
}

/* Card-like style for each item in the help tabs */
.axis-item,
.factor-item {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-color); /* Highlight color */
    padding: 1.1rem 1.5rem 0.8rem;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: left;
    margin-bottom: 1rem;
}

.axis-item:hover,
.factor-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Title of the card */
.axis-item > strong,
.factor-item > strong {
    display: block;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

/* Description paragraphs inside the card */
.axis-item p,
.factor-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #495057;
    margin: 0.8rem 0;
}

.axis-item p > strong,
.factor-item p > strong {
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

#help-content-30axes #30axes-display-area ul {
    grid-template-columns: repeat(2, 1fr); /* Force 2 columns for 30 axes */
}

/* --- Result Page Styling --- */
.result-header {
    text-align: center;
    margin-bottom: 2rem;
}

.result-header h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.summary-card-content {
    background-color: #e9f5ff; /* Light blue background */
    border: 1px solid #cce5ff;
    border-radius: 12px;
    padding: 2rem;
    margin: 1rem auto;
    max-width: 800px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: left;
}

.type-icon-placeholder {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.summary-text {
    flex-grow: 1;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-color);
    line-height: 1.5;
}

.result-section {
    background-color: #fdfdfd;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.result-section h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-top: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 1.5rem;
}

.result-section h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.result-section p, .result-section ul {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    color: #555;
}

.result-section ul {
    padding-left: 20px;
}

.result-section li {
    margin-bottom: 0.5rem;
}

/* Score Tables within result sections */
.score-tables {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 1rem;
}

.score-table {
    flex: 1;
    min-width: 280px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
}

.score-table h4 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.score-table ul {
    list-style: none;
    padding: 0;
}

.score-table li {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    border-bottom: 1px dashed #e0e0e0;
    font-size: 0.95rem;
}

.score-table li:last-child {
    border-bottom: none;
}

/* Factor Summary Box */
.factor-summary-box {
    flex: 2;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
}

.factor-summary-box p {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.factor-summary-box p:last-child {
    margin-bottom: 0;
}


/* Chart container for responsiveness */
.chart-container {
    position: relative;
    width: 100%;
    height: 350px; /* Default height for charts */
    margin: 20px auto;
}


/* Transparency section for details tag */
.transparency-section details {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    background-color: #f8f9fa;
    margin-top: 2rem;
}

.transparency-section summary {
    font-weight: bold;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.transparency-section .score-tables {
    margin-top: 1rem;
    flex-direction: row; /* Ensure tables are side-by-side */
    justify-content: space-around;
}

/* Style for all 30 axes expandable list */
.full-axis-details {
    margin-top: 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    background-color: #fcfcfc;
}

.full-axis-details summary {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--secondary-color);
    cursor: pointer;
}

.full-axis-details .all-metrics-list ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
}


.full-axis-details .all-metrics-list li {
    background-color: #f0f8ff; /* Light blue for each item */
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: keep-all; /* Prevents long words from breaking in strange ways */
}

/* --- Type Badge and Icon Styling --- */
.type-main-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.type-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    font-weight: bold;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.type-badge {
    background-color: var(--secondary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    white-space: nowrap; /* Prevent badge from wrapping */
}

/* --- Type Card Group Colors --- */
.type-card[data-color-group="purpleindigo"] { background-color: color-mix(in srgb, var(--cogi16-ap-color) 10%, white); border: 2px solid var(--cogi16-ap-color); color: var(--text-color); }
.type-card[data-color-group="purpleindigo"] .type-card-name { color: var(--primary-color); }
.type-card[data-color-group="purpleindigo"] .type-card-nickname { color: var(--secondary-color); }
.type-card[data-color-group="purpleindigo"]:hover { background-color: color-mix(in srgb, var(--cogi16-ap-color) 20%, white); }

.type-card[data-color-group="redpinkapricottones"] { background-color: color-mix(in srgb, var(--cogi16-as-color) 10%, white); border: 2px solid var(--cogi16-as-color); color: var(--text-color); }
.type-card[data-color-group="redpinkapricottones"] .type-card-name { color: var(--primary-color); }
.type-card[data-color-group="redpinkapricottones"] .type-card-nickname { color: var(--secondary-color); }
.type-card[data-color-group="redpinkapricottones"]:hover { background-color: color-mix(in srgb, var(--cogi16-as-color) 20%, white); }

.type-card[data-color-group="greenkhaki"] { background-color: color-mix(in srgb, var(--cogi16-cp-color) 10%, white); border: 2px solid var(--cogi16-cp-color); color: var(--text-color); }
.type-card[data-color-group="greenkhaki"] .type-card-name { color: var(--primary-color); }
.type-card[data-color-group="greenkhaki"] .type-card-nickname { color: var(--secondary-color); }
.type-card[data-color-group="greenkhaki"]:hover { background-color: color-mix(in srgb, var(--cogi16-cp-color) 20%, white); }

.type-card[data-color-group="tealbluegreentones"] { background-color: color-mix(in srgb, var(--cogi16-cs-color) 10%, white); border: 2px solid var(--cogi16-cs-color); color: var(--text-color); }
.type-card[data-color-group="tealbluegreentones"] .type-card-name { color: var(--primary-color); }
.type-card[data-color-group="tealbluegreentones"] .type-card-nickname { color: var(--secondary-color); }
.type-card[data-color-group="tealbluegreentones"]:hover { background-color: color-mix(in srgb, var(--cogi16-cs-color) 20%, white); }


/* --- Type Badge Group Colors --- */
.type-badge.purpleindigo { background-color: var(--cogi16-ap-color); }
.type-badge.redpinkapricottones { background-color: var(--cogi16-as-color); }
.type-badge.greenkhaki { background-color: var(--cogi16-cp-color); }
.type-badge.tealbluegreentones { background-color: var(--cogi16-cs-color); }

/* --- Records Table Styling --- */
#records-screen table.full-width-table {
    width: 100%;
    border-collapse: collapse; /* 셀 경계선을 단일 선으로 병합 */
    margin-top: 1.5rem;
}

#records-screen table.full-width-table th,
#records-screen table.full-width-table td {
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    text-align: center;
    vertical-align: middle;
}

#records-screen table.full-width-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    font-size: 1rem;
}

#records-screen table.full-width-table tr:nth-child(even) {
    background-color: #f8f9fa; /* 짝수 행 배경색 */
}

#records-screen table.full-width-table tr:hover {
    background-color: #e2f0fb; /* 호버 시 배경색 */
}

.delete-btn {
    background-color: #dc3545; /* 빨간색 배경 */
    color: white;
    border: none;
    padding: 5px 8px; /* 버튼 크기 조절 */
    font-size: 0.9rem;
    line-height: 1; /* 텍스트 수직 정렬 */
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 30px; /* 정사각형 */
    height: 30px; /* 정사각형 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.delete-btn:hover {
    background-color: #c82333;
}

.result-type-link {
    color: var(--primary-color); /* 파란색 글씨 */
    text-decoration: none; /* 밑줄 없음 */
    font-weight: bold;
    cursor: pointer;
}

.result-type-link:hover {
    text-decoration: underline; /* 호버 시 밑줄 */
}

/* --- 경고 요약 스타일 --- */
.warning-summary {
    background-color: #f8f8f8; /* 아주 연한 회색 배경 */
    border: 1px dashed #cccccc; /* 점선 테두리로 더 부드럽게 */
    border-radius: 8px;
    padding: 1.5rem;
    margin: 0 auto 2rem auto; /* 중앙 정렬 및 하단 마진 */
    max-width: 800px; /* 최대 너비 설정 */
    text-align: left;
    position: relative; /* 아이콘 배치를 위해 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* 은은한 그림자 */
    display: block; /* 명시적으로 블록 레벨 지정 */
}

.warning-summary .warning-title {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-left: 0; /* 아이콘이 HTML에 있으므로 패딩 제거 */
    display: flex; /* 아이콘과 텍스트 정렬을 위해 flexbox 사용 */
    align-items: center;
    gap: 0.5rem; /* 아이콘과 텍스트 사이 간격 */
    color: red;
}

.warning-summary ul {
    list-style: none; /* 기본 리스트 스타일 제거 */
    padding-left: 0; /* 아이콘이 HTML에 있으므로 패딩 제거 */
    margin: 0;
}

.warning-summary li {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.warning-summary li:last-child {
    margin-bottom: 0;
}

/* --- 접기/펴기 섹션 스타일 --- */
.collapsible-section {
    margin-top: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--container-bg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.collapsible-header {
    background-color: #f0f0f0; /* 헤더 배경색 */
    padding: 1rem 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
    color: var(--text-color);
    font-size: 1.1rem;
    transition: background-color 0.2s ease;
}

.collapsible-header:hover {
    background-color: #e0e0e0;
}

.collapse-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.collapse-icon.rotate {
    transform: rotate(180deg);
}

.collapsible-content {
    padding: 0 1.5rem;
    max-height: 0; /* 초기에는 숨김 */
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out; /* 부드러운 전환 */
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
}

.collapsible-content.active {
    max-height: 1000px; /* 충분히 큰 값으로 설정 */
    padding: 1.5rem;
}

.collapsible-content h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.collapsible-content ol {
    list-style-type: none; /* 번호 삭제 */
    padding-left: 0; /* 왼쪽 패딩 제거 */
    margin: 0;
}

.collapsible-content li {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    text-align: left; /* 텍스트 왼쪽 정렬 명시 */
}

.collapsible-content li p {
    margin: 0.5rem 0 0.5rem 0;
}

.collapsible-content .note {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
    font-style: italic;
}


/* --- 전체 너비 푸터 스타일 --- */