.feedback-page {
  min-height: 100vh;
  background: var(--primary-gradient);
  padding: 48px 24px;
  position: relative;
  overflow: hidden;
}

/* Animated background */
.feedback-page::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 20s ease-in-out infinite;
  pointer-events: none;
}

.feedback-container {
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  z-index: 1;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border-color);
}

.feedback-header h1 {
  color: var(--text-primary);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.restart-button {
  padding: 14px 28px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-base);
  box-shadow: var(--shadow-md);
  letter-spacing: 0.3px;
}

.restart-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.loading-container,
.error-container {
  text-align: center;
  padding: 80px 24px;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid var(--border-light);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 24px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-container h2 {
  color: var(--error-color);
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 700;
}

.retry-button {
  padding: 14px 28px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 24px;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.retry-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.scores-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.score-card {
  background: var(--bg-secondary);
  padding: 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 2px solid var(--border-color);
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.score-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.score-card.overall {
  background: var(--primary-gradient);
  color: white;
  border: none;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.score-card.overall:hover {
  transform: translateY(-4px) scale(1.02);
}

.score-card.overall .score-label {
  color: rgba(255, 255, 255, 0.95);
}

.score-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.score-value {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
}

.feedback-section {
  margin-bottom: 48px;
}

.feedback-section h2 {
  color: var(--text-primary);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary-color);
  letter-spacing: -0.3px;
}

.feedback-list {
  list-style: none;
  padding: 0;
}

.feedback-list li {
  padding: 16px 20px;
  margin-bottom: 12px;
  background: var(--bg-secondary);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius-md);
  line-height: 1.7;
  font-size: 15px;
  transition: var(--transition-base);
  box-shadow: var(--shadow-xs);
}

.feedback-list li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  background: var(--bg-tertiary);
}

.detailed-feedback {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.feedback-item {
  background: var(--bg-secondary);
  padding: 28px;
  border-radius: var(--radius-lg);
  border-left: 5px solid var(--primary-color);
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.feedback-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.feedback-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.question-number {
  font-weight: 800;
  color: var(--primary-color);
  font-size: 17px;
  letter-spacing: -0.2px;
}

.question-score {
  font-weight: 800;
  font-size: 20px;
  color: var(--text-primary);
}

.feedback-question {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.6;
  letter-spacing: -0.2px;
}

.feedback-answer {
  background: white;
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.feedback-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.feedback-suggestions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--border-color);
}

.feedback-suggestions strong {
  display: block;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
}

.feedback-suggestions ul {
  margin: 0;
  padding-left: 24px;
}

.feedback-suggestions li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .feedback-page {
    padding: 24px 16px;
  }

  .feedback-container {
    padding: 32px 24px;
    border-radius: var(--radius-lg);
  }

  .feedback-header {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .feedback-header h1 {
    font-size: 28px;
  }

  .restart-button {
    width: 100%;
    padding: 16px 24px;
  }

  .scores-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .score-card {
    padding: 24px;
  }

  .score-value {
    font-size: 36px;
  }

  .feedback-section h2 {
    font-size: 22px;
  }

  .feedback-item {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .feedback-page {
    padding: 20px 12px;
  }

  .feedback-container {
    padding: 28px 20px;
  }

  .feedback-header h1 {
    font-size: 24px;
  }

  .score-value {
    font-size: 32px;
  }

  .feedback-section h2 {
    font-size: 20px;
  }

  .feedback-item {
    padding: 18px;
  }

  .feedback-question {
    font-size: 16px;
  }

  .feedback-text {
    font-size: 14px;
  }
}