/* =================== OX 문제 스타일 =================== */
.ox-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.ox-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: bold;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ox-btn-o {
    background: linear-gradient(135deg, #34d399, #10b981);
    color: white;
}

.ox-btn-x {
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: white;
}

.ox-btn.selected {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: #fbbf24;
}

.ox-btn.correct {
    border-color: #10b981;
    animation: pulse-green 0.5s;
}

.ox-btn.wrong {
    border-color: #ef4444;
    animation: shake 0.5s;
}

/* =================== 객관식 스타일 =================== */
.multiple-choice .question-content {
    padding: 1.5rem;
    height: auto;
    min-height: auto;
    background: white;
}

.multiple-choice .sentence-box {
    padding: 1rem;
    margin: 1rem 0;
    background: #f8f9ff;
    border-radius: 8px;
    font-size: 1.125rem;
}

.multiple-choice .option {
    background: #f8f9fa;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    position: relative;
}

.multiple-choice .option:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.multiple-choice .option.selected {
    background: #dbeafe;
    border-color: #3b82f6;
    font-weight: bold;
}

.multiple-choice .option.correct {
    background: #d1fae5;
    border-color: #10b981;
}

.multiple-choice .option.wrong {
    background: #fee2e2;
    border-color: #ef4444;
}

.option-number {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: #6366f1;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    margin-right: 0.75rem;
    font-weight: bold;
    font-size: 0.875rem;
}

.option-feedback {
    position: absolute;
    right: 10px;
    font-size: 1.25rem;
}

/* =================== 순서형 문제 스타일 =================== */
.sequence-question-container {
    padding: 1rem;
}

.sentence-pattern {
    background: #fef3c7;
    padding: 1.5rem;
    border-radius: 10px;
    font-size: 1.25rem;
    line-height: 2.5;
    margin: 1rem 0;
    text-align: center;
}

.blank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    max-width: 150px;
    height: 36px;
    padding: 0 12px;
    margin: 0 4px;
    background: white;
    border: 2px dashed #9ca3af;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    vertical-align: middle;
    text-align: center;
    font-size: 0.95rem;
    white-space: nowrap;
}

.blank.filled {
    background: #dbeafe;
    border: 2px solid #3b82f6;
    color: #1e40af;
    font-weight: 600;
    min-width: fit-content;
    padding: 0 12px;
}

.blank.correct {
    background: #d1fae5;
    border-color: #10b981;
}

.blank.wrong {
    background: #fee2e2;
    border-color: #ef4444;
}

.word-bank {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.word-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

.word-item {
    background: #6366f1;
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.95rem;
}

.word-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.word-item.selected {
    background: #fbbf24;
    color: #78350f;
    transform: scale(1.05);
}

.word-item.used {
    opacity: 0.3;
    cursor: not-allowed;
    transform: scale(0.95);
}

/* =================== 단답형 스타일 =================== */
.short-answer-question input[type="text"] {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.625rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    min-width: 140px;
}

.short-answer-question input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.short-answer-question input.has-value {
    font-weight: 600;
    background-color: #eff6ff;
}

.short-answer-question input.correct {
    border-color: #10b981;
    background-color: #d1fae5;
}

.short-answer-question input.wrong {
    border-color: #ef4444;
    background-color: #fee2e2;
}

.correct-answer-display {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 8px;
    background: #10b981;
    color: white;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* =================== 서술형 스타일 =================== */
.essay-question .question-content {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.essay-question .answer-input {
    margin-top: 0;
}

.essay-question textarea {
    width: 100%;
    min-height: 180px;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.2s ease;
}

.essay-question textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #f0f9ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.essay-question textarea.graded {
    border-width: 3px;
}

.char-counter {
    text-align: right;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.char-counter.text-red-500 { color: #ef4444; }
.char-counter.text-yellow-500 { color: #f59e0b; }
.char-counter.text-green-500 { color: #10b981; }

.keyword-feedback {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f0f9ff;
    border-radius: 6px;
    font-size: 0.875rem;
}

.keyword-found {
    color: #10b981;
    font-weight: bold;
}

.keyword-missing {
    color: #ef4444;
    font-weight: bold;
}

/* =================== 매칭형 스타일 =================== */
.matching-question-container {
    padding: 1.5rem;
    position: relative;
}

.matching-item, .matching-target {
    padding: 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
    background: white;
    position: relative;
    z-index: 20;
}

.matching-item:hover, .matching-target:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.matching-item.selected {
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.matching-item.ring-4 {
    border-color: #3b82f6;
    background-color: #dbeafe;
}

.matching-target.ring-4 {
    border-color: #10b981;
    background-color: #d1fae5;
}

.matching-item.bg-green-200,
.matching-target.bg-green-200 {
    background-color: #bbf7d0;
    border-color: #10b981;
}

.matching-item.correct-match,
.matching-target.correct-match {
    background-color: #d1fae5;
    border-color: #10b981;
}

.matching-item.wrong-match,
.matching-target.wrong-match {
    background-color: #fee2e2;
    border-color: #ef4444;
}

.matching-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}


/* =================== 복합형 스타일 =================== */
.complex-question-container .passage-container {
    position: sticky;
    top: 0;
    z-index: 20;
    max-height: 40vh;
    overflow-y: auto;
}

.complex-question-container .question-item {
    transition: all 0.3s ease;
}

.complex-question-container .question-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* =================== 미디어형 스타일 =================== */
.media-question-container .media-section {
    margin-bottom: 2rem;
}

.media-question-container .progress-fill {
    transition: width 0.3s ease;
}

.media-question-container .timestamp-btn:hover {
    background-color: #3b82f6;
    color: white;
}

.media-question-container #transcript {
    max-height: 200px;
    overflow-y: auto;
}

/* PPT 슬라이드 필수 스타일 */
.ppt-question-container {
    position: relative;
}

.ppt-pages {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.ppt-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateX(100%);
}

.ppt-page.slide-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.ppt-page.slide-enter {
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
}

.ppt-page.slide-exit {
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
}

/* 인디케이터 스타일 */
.slide-indicator {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.slide-indicator:hover {
    background: #f0f0f0;
}

.slide-indicator.current {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.slide-indicator.completed {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

/* 버튼 스타일 */
[data-ppt="prev"], [data-ppt="next"] {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

[data-ppt="prev"]:disabled, [data-ppt="next"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}