.page-container { padding: 32px 40px; max-width: 960px; }
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 26px; font-weight: 700; color: var(--text-primary); margin: 8px 0 0; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); font-weight: 500; text-decoration: none; }
.back-link:hover { color: var(--accent-primary); }
.loading-center { display: flex; flex-direction: column; align-items: center; padding: 80px 0; gap: 16px; }
.loading-center p { color: var(--text-muted); }

/* Questions Header */
.questions-header { display: flex; align-items: center; justify-content: space-between; margin: 0 0 20px; }
.questions-header h2 { font-size: 18px; font-weight: 600; color: var(--text-primary); margin: 0; }

/* Questions List */
.questions-list { display: flex; flex-direction: column; gap: 20px; }

/* Question Card */
.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  border-left: 4px solid var(--accent-primary);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.question-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Question Header */
.q-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.q-number {
  background: rgba(var(--accent-primary-rgb), 0.15);
  color: var(--accent-primary);
  padding: 4px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.q-type-badge {
  background: var(--bg-input);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.delete-q-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--danger-border);
  color: var(--danger);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.delete-q-btn .material-symbols-rounded { font-size: 18px; }
.delete-q-btn:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

/* Editable Question Text */
.q-text-wrap { margin-bottom: 16px; }
.q-text-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.2s;
}
.q-text-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.1);
}
.q-text-input::placeholder { color: var(--text-muted); }

/* Options Grid */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.option {
  padding: 0;
  border-radius: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
}
.option:hover {
  border-color: var(--accent-primary);
  background: rgba(var(--accent-primary-rgb), 0.04);
}
.option.correct-answer {
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.4);
}
.option-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 2px 14px;
}
.option-marker {
  font-weight: 700;
  font-size: 16px;
  color: var(--success);
  width: 18px;
  flex-shrink: 0;
}
.option-input {
  flex: 1;
  padding: 10px 12px;
  background: transparent;
  border: none;
  font-size: 14px;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  min-width: 0;
}
.option-input::placeholder { color: var(--text-muted); }

/* Correct Answer Row */
.correct-answer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 10px;
}
.correct-icon {
  color: var(--success);
  font-size: 20px;
}
.correct-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.correct-select {
  flex: 1;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-primary);
  font-family: inherit;
  cursor: pointer;
}
.correct-select:focus {
  outline: none;
  border-color: var(--success);
}

/* Save Button */
.save-btn { width: 100%; margin-top: 24px; }

@media (max-width: 768px) {
  .page-container { padding: 20px 16px; }
  .options-grid { grid-template-columns: 1fr; }
}
