/* ==========================================
   ADMIN PANEL - Learning Module Styles
   MC Questions, Cloze/Lückentext
   ========================================== */

/* MC Preview Styles */
.mc-preview {
  margin-top: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.mc-question {
  background: var(--bp-surface-elevated);
  border: 1px solid var(--bp-border-subtle);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.mc-question-text {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--bp-text);
}

.mc-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mc-option {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--bp-surface-elevated);
  border: 1px solid var(--bp-border-subtle);
  cursor: pointer;
  transition: all 0.15s ease;
}

.mc-option:hover {
  background: var(--bp-accent-soft);
  border-color: var(--bp-accent);
}

.mc-option.selected {
  background: var(--bp-accent-soft);
  border-color: var(--bp-accent);
}

.mc-option.correct {
  background: rgba(90, 191, 96, 0.2);
  border-color: var(--bp-accent);
}

.mc-option.incorrect {
  background: rgba(108, 27, 27, 0.2);
  border-color: rgba(239,68,68,0.6);
}

.mc-option-label {
  font-weight: 600;
  margin-right: 6px;
  text-transform: uppercase;
}

.mc-feedback {
  margin-top: 8px;
  font-size: 11px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  color: var(--bp-accent);
}

.mc-stats {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  padding: 8px;
  background: var(--bp-surface-elevated);
  border-radius: 6px;
  font-size: 11px;
  transition: all 0.3s ease;
}

.mc-stats-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* MC Modal */
.mc-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.mc-modal.hidden {
  display: none;
}

.mc-modal-content {
  background: var(--bp-bg);
  border: 1px solid var(--bp-border-subtle);
  border-radius: 16px;
  padding: 20px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.mc-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.mc-modal-title {
  font-size: 18px;
  font-weight: 600;
}

.mc-modal-close {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--bp-border-subtle);
  background: var(--bp-surface-elevated);
  color: var(--bp-text);
  cursor: pointer;
}

/* Cloze / Lückentext Styles */
.cloze-preview {
  margin-top: 8px;
  max-height: 250px;
  overflow-y: auto;
}

.cloze-item {
  background: var(--bp-surface-elevated);
  border: 1px solid var(--bp-border-subtle);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.cloze-sentence {
  font-size: 13px;
  line-height: 1.8;
  color: var(--bp-text);
}

.cloze-gap {
  display: inline-block;
  min-width: 60px;
  border-bottom: 2px solid var(--bp-accent);
  margin: 0 2px;
  padding: 2px 4px;
  text-align: center;
  background: var(--bp-accent-soft);
  border-radius: 4px 4px 0 0;
}

.cloze-gap-input {
  width: 80px;
  padding: 4px 8px;
  font-size: 12px;
  border: 1px solid var(--bp-border-subtle);
  border-radius: 4px;
  background: var(--bp-surface-elevated);
  color: var(--bp-text);
  text-align: center;
}

.cloze-gap-input:focus {
  outline: none;
  border-color: var(--bp-primary);
}

.cloze-gap-input.correct {
  border-color: var(--bp-accent);
  background: rgba(90, 191, 96, 0.2);
}

.cloze-gap-input.incorrect {
  border-color: var(--bp-danger);
  background: rgba(108, 27, 27, 0.2);
}

.cloze-translation {
  margin-top: 8px;
  padding: 8px;
  background: var(--bp-accent-soft);
  border: 1px solid var(--bp-accent);
  border-radius: 6px;
  font-size: 11px;
  color: var(--bp-text-muted);
}

.cloze-translation-label {
  font-size: 10px;
  color: var(--bp-text-muted);
  margin-bottom: 4px;
}

.cloze-hint {
  font-size: 10px;
  color: var(--bp-text-muted);
  font-style: italic;
  margin-top: 4px;
}

.cloze-stats {
  display: flex;
  gap: 12px;
  padding: 8px;
  background: var(--bp-surface-elevated);
  border-radius: 6px;
  font-size: 11px;
  margin-bottom: 8px;
}

.cloze-feedback {
  margin-top: 6px;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
}

.cloze-feedback.correct {
  background: rgba(34,197,94,0.15);
  color: var(--bp-accent);
}

.cloze-feedback.incorrect {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
}

/* Light Mode */
[data-theme="light"] .mc-question {
  background: var(--bp-surface);
  border: 1px solid var(--bp-primary);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.08);
}

[data-theme="light"] .mc-option {
  background: var(--bp-bg);
  border: 1px solid var(--bp-border);
}

[data-theme="light"] .mc-option:hover {
  background: var(--bp-primary-soft);
  border-color: var(--bp-primary);
}

[data-theme="light"] .mc-option.selected {
  background: var(--bp-primary-soft);
  border-color: var(--bp-primary);
}

[data-theme="light"] .mc-stats {
  background: var(--bp-bg);
  border: 1px solid var(--bp-border);
}

[data-theme="light"] .mc-modal-content {
  background: var(--bp-surface);
  border: 2px solid var(--bp-primary);
  box-shadow: 0 8px 32px rgba(14, 165, 233, 0.2);
}

[data-theme="light"] .mc-modal-close {
  border: 1px solid var(--bp-primary);
  background: var(--bp-surface);
  color: var(--bp-primary);
}

[data-theme="light"] .mc-modal-close:hover {
  background: var(--bp-primary);
  color: white;
}

[data-theme="light"] .cloze-item {
  background: var(--bp-surface);
  border: 1px solid var(--bp-primary);
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.08);
}

[data-theme="light"] .cloze-gap {
  border-bottom-color: var(--bp-primary);
  background: var(--bp-primary-soft);
}

[data-theme="light"] .cloze-gap-input {
  background: var(--bp-surface);
  border: 1px solid var(--bp-border);
}

[data-theme="light"] .cloze-translation {
  background: var(--bp-primary-soft);
  border: 1px solid var(--bp-primary);
}

[data-theme="light"] .cloze-stats {
  background: var(--bp-bg);
  border: 1px solid var(--bp-border);
}
