/* cbt_qu.css */

/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Malgun Gothic', sans-serif;
}

body {
    background-color: #f5f7f9;
    color: #333;
    line-height: 1.6;
}

/* 상단 타이틀 바 (이미지 스타일 반영) */
.cbt-header {
    background-color: #2c4a8a;
    color: #ffffff;
    text-align: center;
    padding: 25px 0;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 메인 컨테이너 */
.cbt-container {
    max-width: 800px;
    margin: 40px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* 로고 및 학원명 */
.cbt-logo-area {
    text-align: center;
    margin-bottom: 35px;
}

.cbt-logo-area h1 {
    font-size: 26px;
    color: #2c4a8a;
}

/* 입력 폼 스타일 */
.input-section {
    margin-bottom: 30px;
}

.input-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.input-row label {
    width: 130px;
    font-weight: bold;
    font-size: 16px;
}

.input-row input, 
.input-row select {
    flex: 1;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 15px;
}

/* 유의사항 박스 */
.notice-card {
    background-color: #ffffff;
    border: 1px solid #e1e1e1;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.notice-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #333;
}

.notice-card p {
    font-size: 15px;
    color: #555;
    margin-bottom: 8px;
}

.notice-card .contact-link {
    color: #007bff;
    text-decoration: none;
}

/* 안내 문구 */
.guide-text {
    text-align: center;
    font-size: 15px;
    color: #666;
    margin-bottom: 30px;
}

/* 시작 버튼 (민트색 라운드 스타일) */
.btn-cbt-start {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    background-color: #00bfa5;
    color: white;
    border: none;
    padding: 18px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-cbt-start:hover {
    background-color: #00a892;
}


/* --- CBT 시험 페이지(Cbt_page.php) 전용 스타일 --- */

/* 전체 레이아웃 (스크롤 방지 및 전체 화면 활용) */
.cbt-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #e9ecef;
}

/* 상단 상태바 */
.top-status {
    background: #ffffff;
    border-bottom: 2px solid #2c4a8a;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.exam-info { font-weight: bold; font-size: 16px; color: #333; }
.user-status span { margin-left: 20px; font-size: 14px; }
.timer-display { color: #d9534f; font-size: 18px; font-weight: bold; }

/* 메인 콘텐츠 (문제 + 답안지) */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden; /* 영역 내부 스크롤을 위해 전체 스크롤 방지 */
}

/* 왼쪽 문제 영역 */
.question-area {
    flex: 7;
    background: #ffffff;
    padding: 40px;
    overflow-y: auto;
    border-right: 1px solid #dee2e6;
}

.q-number { font-weight: bold; font-size: 1.1em; margin-bottom: 15px; }
.q-text { font-size: 1.1em; line-height: 1.6; margin-bottom: 25px; }

.q-options { list-style: none; }
.q-options li {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.2s;
}
.q-options li:hover { background: #f8f9fa; }
.q-options input[type="radio"] { margin-right: 10px; cursor: pointer; }
.q-options label { cursor: pointer; display: inline-block; width: 90%; }

/* 오른쪽 답안지(OMR) 영역 */
.omr-area {
    flex: 3;
    background: #f1f3f5;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.omr-container {
    background: #ffffff;
    border: 1px solid #2c4a8a;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
}

.omr-header {
    background: #2c4a8a;
    color: #fff;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

.omr-list {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
}

/* 하단 버튼 바 */
.bottom-control {
    background: #6c757d;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-group-center { display: flex; gap: 10px; }

.cbt-btn {
    padding: 8px 25px;
    border-radius: 4px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.btn-gray { background: #fff; color: #333; }
.btn-submit { background: #00bfa5; color: #fff; }
.btn-submit:hover { background: #00a892; }