/* /engine/css/prob_page.css - KOISTUDY 최종 통합 버전 */

/* [1] 채점 결과 UI (글자 크기 키움 & 헤더 강조) */
#multi-result { font-size: 16px !important; margin-top: 25px; }
#multi-result table { width: 100%; border-collapse: collapse; margin-top: 12px; border-radius: 10px; overflow: hidden; border: 2px solid #343a40; }
#multi-result th { background-color: #343a40 !important; color: #ffffff !important; padding: 14px 10px; font-weight: bold; border: 1px solid #23272b; text-align: center; }
#multi-result td { padding: 12px 10px; border: 1px solid #dee2e6; text-align: center; font-family: 'JetBrains Mono', monospace !important; }

/* [2] 서브태스크 박스 디자인 */
.st-container { margin-bottom: 35px; border: 1px solid #ced4da; border-radius: 12px; background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.1); overflow: hidden; }
.st-header { background: #f1f3f5; padding: 16px 20px; border-bottom: 1px solid #ced4da; font-size: 18px; font-weight: bold; color: #212529; display: flex; justify-content: space-between; align-items: center; }

/* [3] 문제 본문 스타일 (기존 유지) */
.problem-container h2 { border-bottom: 2px solid #eee; padding-bottom: 10px; margin-top: 40px; color: #333; }
.problem-content { background-color: #fdfdfd; padding: 5px 25px; border: 1px solid #eee; border-radius: 8px; line-height: 1.8; font-size: 1.05em; }
.problem-content p { margin-bottom: 1.2em; }
.problem-content ul, .problem-content ol { margin-bottom: 1.2em; padding-left: 2em; }

/* [4] 에디터 및 네비게이션 (기존 유지) */
.CodeMirror { border: 1px solid #333; border-radius: 6px; height: 600px; font-family: 'JetBrains Mono', monospace !important; font-size: 16px; margin-bottom: 20px; }
.contest-nav { text-align: center; margin: 25px 0; padding: 15px; background-color: #f8f9fa; border: 1px solid #dee2e6; border-radius: 10px; }
.contest-nav a { display: inline-block; margin: 0 15px; font-size: 1.1em; font-weight: bold; color: #0056b3; text-decoration: none; }
.btn-modify { display: inline-block; padding: 6px 14px; background-color: #dcdcdd; color: #333; text-decoration: none; border-radius: 5px; font-size: 0.95em; vertical-align: middle; border: 1px solid #ccc; cursor: pointer; transition: 0.2s; }
.btn-modify:hover { background-color: #5a6268; color: #fff; }

/* [5] 플로팅 타이머 (기존 유지) */
#floating-contest-timer { position: fixed; bottom: 30px; right: 30px; z-index: 2000; text-align: center; border: 2px solid #222; border-radius: 12px; background: linear-gradient(to bottom, #4a4a4a, #333333); padding: 15px 25px; box-shadow: 0 10px 20px rgba(0,0,0,0.4); color: #f0f0f0; font-family: 'Roboto Mono', monospace; font-size: 1.2em; font-weight: bold; }

/* [6] Input/Output Copy Paste */
/* 입출력 예제 좌우 2단 레이아웃 (CPH 연동 대비) */
.sample-tests {
    margin-top: 15px;
}
.sample-row {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}
.sample-row .input, 
.sample-row .output {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fcfcfc;
    overflow: hidden;
}
.sample-row .title {
    background-color: #f1f1f1;
    padding: 8px 12px;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sample-row .sample-text {
    margin: 0;
    /* 순서대로 위, 오른쪽, 아래, 왼쪽 여백입니다. 
       위쪽 여백을 12px -> 2px로 대폭 줄였습니다. (필요시 0px로 하셔도 됩니다) */
    padding: 2px 12px 12px 12px; 
    font-family: 'JetBrains Mono', monospace;
    white-space: pre-wrap;
    word-break: break-all;
    /* 폰트 자체의 줄 간격이 너무 넓어 보이지 않도록 고정값을 줍니다 */
    line-height: 1.5; 
    font-variant-ligatures: none;
}
.btn-copy {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-copy:hover {
    background-color: #e9ecef;
} 


