.quiz-container {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.quiz-title {
  margin-bottom: 1.5rem;
  color: #2c3e50;
  font-size: 1.5rem;
}

.quiz-question {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 6px;
  border: 2px solid #e0e0e0;
  transition: border-color 0.3s;
}

.quiz-question.correct {
  border-color: #4caf50;
  background: #f1f8f4;
}

.quiz-question.incorrect {
  border-color: #f44336;
  background: #fff5f5;
}

.quiz-question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.question-number {
  font-weight: bold;
  color: #1976d2;
  font-size: 1.1rem;
}

.question-points {
  color: #666;
  font-size: 0.9rem;
}

.quiz-question-text {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.6;
}

.quiz-answer-section {
  margin-top: 1rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-option {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.quiz-option:hover:not(:has(input:disabled)) {
  border-color: #1976d2;
  background: #f0f7ff;
}

.quiz-option.selected {
  border-color: #1976d2;
  background: #e3f2fd;
}

.quiz-option.correct-answer {
  border-color: #4caf50;
  background: #e8f5e9;
}

.quiz-option input[type="radio"],
.quiz-option input[type="checkbox"] {
  margin-right: 0.75rem;
  cursor: pointer;
}

.quiz-option input:disabled {
  cursor: not-allowed;
}

.quiz-numeric-input,
.quiz-text-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

.quiz-numeric-input:focus,
.quiz-text-input:focus {
  outline: none;
  border-color: #1976d2;
}

.quiz-numeric-input:disabled,
.quiz-text-input:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}

.quiz-explanation {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 4px;
  border-left: 4px solid;
}

.quiz-explanation.correct-explanation {
  background: #e8f5e9;
  border-left-color: #4caf50;
}

.quiz-explanation.incorrect-explanation {
  background: #ffebee;
  border-left-color: #f44336;
}

.explanation-header {
  margin-bottom: 0.75rem;
}

.explanation-header strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.answer-display {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #555;
}

.explanation-text {
  color: #333;
  line-height: 1.6;
}

.quiz-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #e0e0e0;
  flex-wrap: wrap;
}

.quiz-submit-btn,
.quiz-skip-btn,
.quiz-retake-btn {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 140px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quiz-submit-btn {
  background: #1976d2;
  color: white;
}

.quiz-submit-btn:hover:not(:disabled) {
  background: #1565c0;
  box-shadow: 0 4px 8px rgba(25, 118, 210, 0.3);
  transform: translateY(-1px);
}

.quiz-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.quiz-skip-btn,
.quiz-retake-btn {
  background: #757575;
  color: white;
}

.quiz-skip-btn:hover:not(:disabled),
.quiz-retake-btn:hover:not(:disabled) {
  background: #616161;
  box-shadow: 0 4px 8px rgba(117, 117, 117, 0.3);
  transform: translateY(-1px);
}

.quiz-skip-btn:active:not(:disabled),
.quiz-retake-btn:active:not(:disabled) {
  transform: translateY(0);
}

.quiz-submit-btn:disabled,
.quiz-skip-btn:disabled,
.quiz-retake-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.quiz-score {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  color: #2c3e50;
  margin-right: auto;
  padding: 0.75rem 1.25rem;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.score-percentage {
  color: #666;
  font-size: 1rem;
  font-weight: 500;
}

.quiz-retake-warning {
  padding: 2rem;
  background: #fff3cd;
  border: 2px solid #ffc107;
  border-radius: 8px;
  text-align: center;
}

.quiz-retake-warning h3 {
  margin-bottom: 1rem;
  color: #856404;
}

.quiz-retake-warning p {
  margin-bottom: 1.5rem;
  color: #856404;
}

.quiz-retake-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-primary {
  background: #1976d2;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary:hover {
  background: #1565c0;
}

.btn-secondary {
  background: #757575;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.btn-secondary:hover {
  background: #616161;
}

