.feedback-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px 20px;
}

.feedback-container {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.feedback-header h1 {
  color: #333;
  font-size: 32px;
}

.restart-button {
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.restart-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.loading-container,
.error-container {
  text-align: center;
  padding: 60px 20px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e0e0e0;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-container h2 {
  color: #f44336;
  margin-bottom: 16px;
}

.retry-button {
  padding: 12px 24px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
}

.scores-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.score-card {
  background: #f5f5f5;
  padding: 24px;
  border-radius: 8px;
  text-align: center;
}

.score-card.overall {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.score-card.overall .score-label {
  color: rgba(255, 255, 255, 0.9);
}

.score-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.score-value {
  font-size: 36px;
  font-weight: 700;
}

.feedback-section {
  margin-bottom: 40px;
}

.feedback-section h2 {
  color: #333;
  font-size: 24px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}

.feedback-list {
  list-style: none;
  padding: 0;
}

.feedback-list li {
  padding: 12px 16px;
  margin-bottom: 8px;
  background: #f5f5f5;
  border-left: 4px solid #667eea;
  border-radius: 4px;
  line-height: 1.6;
}

.detailed-feedback {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feedback-item {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.feedback-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.question-number {
  font-weight: 700;
  color: #667eea;
  font-size: 16px;
}

.question-score {
  font-weight: 700;
  font-size: 18px;
}

.feedback-question {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.6;
}

.feedback-answer {
  background: white;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.feedback-text {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 12px;
}

.feedback-suggestions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
}

.feedback-suggestions strong {
  display: block;
  margin-bottom: 8px;
  color: #333;
}

.feedback-suggestions ul {
  margin: 0;
  padding-left: 20px;
}

.feedback-suggestions li {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 4px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .feedback-page {
    padding: 20px 12px;
  }

  .feedback-container {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .feedback-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .feedback-header h1 {
    font-size: 24px;
  }

  .restart-button {
    width: 100%;
    padding: 14px 20px;
  }

  .scores-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .score-card {
    padding: 20px;
  }

  .score-value {
    font-size: 32px;
  }

  .feedback-section h2 {
    font-size: 20px;
  }

  .feedback-item {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .feedback-page {
    padding: 16px 8px;
  }

  .feedback-container {
    padding: 20px 16px;
  }

  .feedback-header h1 {
    font-size: 22px;
  }

  .score-value {
    font-size: 28px;
  }

  .feedback-section h2 {
    font-size: 18px;
  }

  .feedback-item {
    padding: 14px;
  }

  .feedback-question {
    font-size: 15px;
  }

  .feedback-text {
    font-size: 13px;
  }
}
