/* =================== 기본 스타일 (slide-viewer-main.css와 충돌하지 않는 기본 스타일만) =================== */

/* =================== 단답형 스타일 =================== */
.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 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;
}

/* =================== 순서형 문제 스타일 =================== */
.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.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);
}

/* =================== 매칭형 스타일 =================== */
.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;
}