/* ========== PROGRESS DASHBOARD ========== */

/* Style for the main dashboard container - REMOVED */

/* Adjustments for dark theme - REMOVED */

/* .theme-dark .dashboard-container REMOVED */

/* .theme-dark .dashboard-container REMOVED */

.progress-dashboard {
  background-color: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgb(0 0 0 / 0.1);
  margin-top: 20px;
  border: 2px solid var(--primary-color);
}

.theme-dark .progress-dashboard {
  background-color: #34495e;
  color: #ecf0f1;
  border-color: #3498db;
}

.theme-dark .progress-dashboard table {
  color: #ecf0f1;
  border-color: #3498db;
}

.theme-dark .progress-dashboard table th,
.theme-dark .progress-dashboard table td {
  border-color: #3498db;
  padding: 8px;
}

.star-grid {
  display: flex;

  /* Utiliser Flexbox */
  flex-wrap: wrap;

  /* Permettre le retour à la ligne */
  justify-content: center;

  /* Centrer les éléments horizontalement */
  gap: 12px;
  margin: 15px 0;

  /* grid-template-columns est retiré */
}

.star-cell {
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
  transition: all 0.3s;
  border: 2px solid transparent;
}

.star-cell:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgb(0 0 0 / 0.15);
}

/* Tâche 3.4: Style pour les tables faibles */
.star-cell.weak-table {
  border: 2px solid var(--danger-color, red);
  background-color: #fff0f0;

  /* Léger fond rouge */
}

.theme-dark .star-cell {
  background-color: #2c3e50;
  color: #ecf0f1;
  border-color: #3498db;
}

.table-number {
  font-weight: bold;
}

.star-count {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin-top: 5px;
}

.star-count .star {
  font-size: 20px;
}

.table-percent {
  font-size: 12px;
  color: #666;
}

.review-list,
.success-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.review-list li,
.success-list li {
  background-color: #f9f9f9;
  padding: 10px 15px;
  margin-bottom: 8px;
  border-radius: 10px;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgb(0 0 0 / 0.05);
  font-family: 'Comic Sans MS', 'Bubblegum Sans', sans-serif;
}

.review-list li:hover,
.success-list li:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
}

.theme-dark .review-list li {
  background-color: #2c3e50;
  color: #e74c3c;
  border-left: 3px solid #e74c3c;
}

.success-list li {
  color: #2ecc71;
  border-left: 3px solid #2ecc71;
}

.theme-dark .success-list li {
  background-color: #2c3e50;
  color: #2ecc71;
}

/* ========== BOUTON REPLAY VIDÉO ========== */

.replay-video-btn {
  background: linear-gradient(45deg, #ff6b6b, #ff8e53);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 3px 10px rgb(255 107 107 / 0.3);
  margin-left: 10px;
  position: relative;
  top: -5px;
}

.replay-video-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 5px 15px rgb(255 107 107 / 0.4);
}

.replay-video-btn:active {
  transform: scale(0.95);
}

.replay-video-btn:focus {
  /* outline personnalisé plutôt que none pour accessibilité */
  outline: 3px solid #ff6b6b;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgb(255 107 107 / 0.3);
}

/* Thème sombre */
.theme-dark .replay-video-btn {
  background: linear-gradient(45deg, #3498db, #2980b9);
  box-shadow: 0 3px 10px rgb(52 152 219 / 0.3);
}

.theme-dark .replay-video-btn:hover {
  box-shadow: 0 5px 15px rgb(52 152 219 / 0.4);
}
