* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #464646 0%, #212121 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

header {
  background: linear-gradient(135deg, #ffe936 0%, #141414 100%);
  color: white;
  padding: 30px 20px;
  text-align: center;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
}

.loading {
  padding: 60px 20px;
  text-align: center;
  font-size: 1.2rem;
  color: #666;
}

.progress {
  background: #f8f9fa;
  padding: 15px 20px;
  border-bottom: 1px solid #e9ecef;
  font-weight: 600;
  color: #495057;
  text-align: center;
}

.quiz-container {
  padding: 30px 20px;
}

.question {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 25px;
  line-height: 1.5;
  color: #212529;
}

.answers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.answer-btn {
  padding: 18px 20px;
  font-size: 1rem;
  text-align: left;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #262424;
}

.answer-btn:hover:not(:disabled) {
  background: #e9ecef;
  border-color: #dee2e6;
  transform: translateY(-2px);
}

.answer-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.answer-btn.correct {
  background: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.answer-btn.incorrect {
  background: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.feedback {
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.feedback.correct {
  background: #d4edda;
  border-left: 4px solid #28a745;
}

.feedback.incorrect {
  background: #f8d7da;
  border-left: 4px solid #dc3545;
}

.feedback-status {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.feedback-status.correct {
  color: #155724;
}

.feedback-status.incorrect {
  color: #721c24;
}

.feedback-explanation {
  color: #495057;
  line-height: 1.6;
}

.next-btn,
.restart-btn {
  display: block;
  width: 100%;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #eba500 0%, #806d21 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.next-btn:hover,
.restart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.summary {
  padding: 40px 20px;
  text-align: center;
}

.summary h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #212529;
}

.score-display {
  margin-bottom: 30px;
}

.final-score {
  font-size: 1.5rem;
  font-weight: 700;
  color: #495057;
  margin-bottom: 15px;
}

.percentage {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hidden {
  display: none !important;
}

@media (max-width: 600px) {
  body {
    padding: 10px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  .question {
    font-size: 1.1rem;
  }

  .answer-btn {
    padding: 15px 15px;
    font-size: 0.95rem;
  }

  .percentage {
    font-size: 2.5rem;
  }
}

.buttons-container {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 20px;
}

.report-btn {
  padding: 14px 24px;
  font-size: 0.95rem;
  width: auto;
  background: #f8f9fa;
  color: #495057;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.report-btn:hover {
  background: #e9ecef;
  border-color: #ced4da;
  transform: translateY(-2px);
}

.next-btn {
  display: block;
  flex: 1;
  width: auto;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #eba500 0%, #806d21 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.next-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.skip-btn {
  display: block;
  width: 100%;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.skip-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

.report-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 30px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #212529;
}

#report-explanation {
  width: 100%;
  min-height: 150px;
  padding: 15px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  resize: vertical;
  margin-bottom: 20px;
  background: #f8f9fa;
}

#report-explanation:focus {
  outline: none;
  border-color: #667eea;
  background: white;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.cancel-report-btn {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  background: #f8f9fa;
  color: #495057;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-report-btn:hover {
  background: #e9ecef;
  border-color: #ced4da;
}

.submit-report-btn {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-report-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}
