/* Quiz Styles - Shared styles for all quizzes */
#quiz-app {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}
.quiz-header {
  text-align: center;
  margin-bottom: 2rem;
}
.quiz-progress {
  margin-bottom: 2rem;
}
.quiz-progress-bar {
  width: 100%;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}
.quiz-progress-text {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}
.quiz-question {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}
.question-number {
  color: #667eea;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.question-text {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.quiz-option {
  padding: 1rem 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--color-surface);
}
.quiz-option:hover {
  border-color: #667eea;
}
.quiz-option.selected {
  border-color: #667eea;
}
.quiz-option.correct {
  border-color: #4CAF50;
}
.quiz-option.incorrect {
  border-color: #f44336;
}
.quiz-option.disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.quiz-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
}
.btn-primary, .btn-secondary, .btn-success {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
}
.btn-primary {
  background: #667eea;
  color: white;
}
.btn-primary:hover:not(:disabled) {
  background: #5568d3;
  transform: translateY(-2px);
}
.btn-secondary {
  background: #e0e0e0;
  color: #333;
}
.btn-secondary:hover:not(:disabled) {
  background: #d0d0d0;
}
.btn-success {
  background: #4CAF50;
  color: white;
}
.btn-success:hover {
  background: #45a049;
  transform: translateY(-2px);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.quiz-result {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  flex-direction: column;
}
.quiz-result h2 {
  display: block;
}
.quiz-result h2::before {
  display: none;
}
.result-score {
  font-size: 3rem;
  font-weight: bold;
  color: #667eea;
  margin: 1rem 0;
}
.result-message {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.result-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.result-stat {
  padding: 1rem;
  background: #f8f9ff;
  border-radius: 8px;
}
.result-stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #667eea;
}
.result-stat-label {
  color: #666;
  font-size: 0.9rem;
}
.btn-retry {
  margin-top: 1rem;
}
/* Toast Notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #333;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  animation: slideIn 0.3s ease, slideOut 0.3s ease 2.7s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 400px;
}
.toast.warning {
  background: #ff9800;
}
.toast.error {
  background: #f44336;
}
.toast.success {
  background: #4CAF50;
}
@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}
/* Responsive Design */
@media (max-width: 768px) {
  #quiz-app {
    padding: 1rem;
  }
  .quiz-question {
    padding: 1.5rem;
  }
  .quiz-controls {
    flex-direction: column;
  }
  .btn-primary, .btn-secondary, .btn-success {
    width: 100%;
  }
  .toast {
    right: 10px;
    left: 10px;
    max-width: none;
  }
}