/* Question Types Styling */
.question-type-section {
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f8f9fc;
}

.question-type-section h6 {
    color: #5a5c69;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.image-preview {
    max-width: 200px;
    max-height: 150px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.matching-pair-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.matching-pair-item input {
    margin-right: 0.5rem;
}

.drag-drop-container {
    display: flex;
    gap: 1rem;
}

.drag-drop-items, .drag-drop-targets {
    flex: 1;
}

.sequence-pattern {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    text-align: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

.fill-blanks-preview {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 0.25rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.blank-placeholder {
    background-color: #007bff;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 0.2rem;
    font-size: 0.9rem;
}

.question-type-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.25rem;
    text-transform: uppercase;
}

/* Test Interface Styles */
.test-question-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.test-option {
    padding: 10px 15px;
    margin: 8px 0;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.test-option:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
}

.test-option.selected {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.test-option.correct {
    border-color: #28a745;
    background-color: #d4edda;
}

.test-option.incorrect {
    border-color: #dc3545;
    background-color: #f8d7da;
}

.drag-item {
    padding: 10px 15px;
    margin: 6px;
    background-color: #007bff;
    color: white;
    border-radius: 6px;
    cursor: move;
    display: inline-block;
    transition: all 0.3s ease;
    user-select: none;
}

.drag-item:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.drag-item:active {
    transform: scale(0.95);
}

.drop-zone {
    min-height: 50px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 15px;
    margin: 8px 0;
    background-color: #f8f9fa;
    position: relative;
    transition: all 0.3s ease;
}

.drop-zone.drag-over {
    border-color: #007bff;
    background-color: #e3f2fd;
    transform: scale(1.02);
}

.target-label {
    font-weight: bold;
    color: #6c757d;
    font-size: 0.9rem;
}

.dropped-item {
    margin-top: 5px;
    min-height: 25px;
}

.blank-input {
    display: inline-block;
    width: 120px;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 0 4px;
}

.matching-left, .matching-right {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 5px 0;
    cursor: pointer;
}

.matching-left.selected {
    background-color: #007bff;
    color: white;
}

.matching-right.matched {
    background-color: #28a745;
    color: white;
}

.badge-mcq { background-color: #e3f2fd; color: #1976d2; }
.badge-text { background-color: #f3e5f5; color: #7b1fa2; }
.badge-true-false { background-color: #e8f5e8; color: #388e3c; }
.badge-fill-blanks { background-color: #fff3e0; color: #f57c00; }
.badge-matching { background-color: #fce4ec; color: #c2185b; }
.badge-drag-drop { background-color: #e0f2f1; color: #00796b; }
.badge-image-mcq { background-color: #f1f8e9; color: #689f38; }
.badge-sequence { background-color: #e8eaf6; color: #3f51b5; }

/* Question Display Styles */
.option-image {
    max-width: 150px;
    max-height: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.blank-answer {
    background-color: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.matching-pair {
    display: flex;
    align-items: center;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 8px;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.sequence-pattern {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    text-align: center;
    padding: 15px;
    background-color: #e9ecef;
    border: 2px solid #6c757d;
    border-radius: 8px;
    font-weight: bold;
}

.sequence-options {
    margin-top: 15px;
}

.fill-blanks-preview {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
}

.question-image img {
    max-width: 100%;
    height: auto;
    border: 2px solid #dee2e6;
    border-radius: 8px;
}