/* 기본 설정 */
body { margin: 0; font-family: sans-serif; background-color: #f0f2f5; padding-top: 65px; }
.container { max-width: 1000px; margin: 20px auto; padding: 25px; background: #fff; border-radius: 8px; box-shadow: 0 4px 8px rgba(0,0,0,0.05); }
.header { border-bottom: 1px solid #e0e0e0; padding-bottom: 15px; margin-bottom: 20px; }
h1 { margin: 0; color: #34495e; }
.btn { padding: 8px 12px; border: 1px solid #6c757d; background: #fff; cursor: pointer; border-radius: 4px; font-weight: 500; }
.btn.btn-secondary:hover { background-color: #f0f2f5; }

/* 컨트롤 패널 */
.controls-panel { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 15px; background: #f8f9fa; border-radius: 5px; }
#stats-info { font-size: 1.1em; }
.btn-action { background-color: #007bff; color: white; border: none; font-weight: bold; }

/* 결과 테이블 */
.results-table { border: 1px solid #dee2e6; border-radius: 5px; }
.table-header { display: flex; background: #f8f9fa; font-weight: bold; padding: 12px 15px; border-bottom: 1px solid #dee2e6; }
.table-row { display: flex; align-items: center; padding: 15px; border-bottom: 1px solid #e9ecef; }
.table-row:last-child { border-bottom: none; }
.col-info { flex: 0 0 250px; }
.col-scripts { flex: 1; }
.col-correction { flex: 0 0 200px; text-align: center; }
.col-actions { flex: 0 0 120px; text-align: right; }
.item-id { font-weight: bold; font-size: 1.1em; }
.item-type { background: #e9ecef; padding: 2px 6px; border-radius: 3px; font-size: 0.8em; margin-left: 8px; }
.required-text { color: #6c757d; font-size: 0.9em; }

/* 교정 제안 버튼 */
.btn-correction { padding: 8px 16px; border: none; color: white; border-radius: 20px; font-weight: bold; cursor: pointer; }
.level-up { background-color: #28a745; }
.level-down { background-color: #dc3545; }

/* 모달 및 하이라이트 */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); justify-content: center; align-items: center; }
.modal-content { background: #fff; padding: 25px; border-radius: 8px; width: 90%; max-width: 800px; max-height: 85vh; display: flex; flex-direction: column; }
.modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; padding-bottom: 15px; margin-bottom: 15px; }
.modal-body { overflow-y: auto; }
.modal-body pre { background: #f8f9fa; padding: 15px; border-radius: 4px; font-family: monospace; white-space: pre-wrap; }
.btn-close-modal { font-size: 24px; background: none; border: none; cursor: pointer; }
.quiz-highlight { color: #007bff; font-weight: bold; }