/* Styles améliorés pour les graphiques et tableaux */
.g-gtitle .gtitle {
  fill: #ffffff !important; /* Mets la couleur que tu veux */
  font-weight: 700 !important;
  /* Ajout d'une ombre portée au texte SVG */
  text-shadow: 2px 2px 6px #1a2a6c, 0 1px 2px #000;
}

/* Conteneurs de graphiques avec fond moderne */
.chart {
  height: 400px;
  margin: 2rem 0;
  border-radius: 12px;
  padding: 20px;
  background: linear-gradient(135deg, #ffffff4f 0%, #f8f9fa00 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05),
    inset 0 -1px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(26, 42, 108, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Effet de survol sur les graphiques */
.chart:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1), 0 5px 10px rgba(0, 0, 0, 0.05);
}

/* Fond avec motif subtil pour les graphiques */
.chart::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 50%,
      rgba(120, 119, 198, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(26, 42, 108, 0.03) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 20%,
      rgba(178, 31, 31, 0.02) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: 0;
}

/* Conteneur pour graphiques plus petits */
.smaller-chart {
  height: 300px;
  background-color: #f8f9fa3b;
}

/* Amélioration des explications de graphiques */
.chart-explanation {
  background-color: #f8f9fa3b;
  padding: 15px 20px;
  border-left: 4px solid;
  border-image: linear-gradient(180deg, #1a2a6c 0%, #3498db 100%) 1;
  margin: 20px 0 15px 0;
  border-radius: 8px;
  color: #ffffff;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  font-size: 0.95rem;
  line-height: 1.6;
}

.results > p,
.results > h2,
.results > h3,
.results > .instruction-text {
  color: #ffffff;
  text-shadow: 1px 1px 2px #000, 0 0 2px #000;
}

/* Style pour les sections de résultats */
.results {
  background: linear-gradient(135deg, #ffffff00 0%, #f8fafc00 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

/* Titres de sections améliorés */
.results h2,
.results h3 {
  color: #1a2a6c;
  font-size: 1.4rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
  background: linear-gradient(90deg, #1a2a6c 0%, #3498db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: white;
  background-clip: text;
}

/* Titre principal de la section */
.results h2 {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
}

/* Ligne décorative sous les titres */
.results h2::after,
.results h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #1a2a6c 0%, #3498db 100%);
  border-radius: 2px;
}

/* Centrer la ligne pour le h2 */
.results h2::after {
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
}

/* Amélioration du conteneur de graphiques côte à côte */
.charts-container {
  display: flex;
  gap: 25px;
  margin: 25px 0;
  position: relative;
}

.chart-column {
  flex: 1;
  min-width: 0;
  background: linear-gradient(135deg, #ffffff4f 0%, #f8f9fa00 100%);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.chart-column:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Grilles de numéros améliorées */
.number-grid,
.complementary-grid {
  background: linear-gradient(135deg, #ffffff4f 0%, #f8f9fa00 100%);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: visible; /* Changé de hidden à visible pour voir tout le contenu */
}

/* Grille spécifique pour les numéros principaux (1-49) */
.number-grid {
  display: grid;
  grid-template-columns: repeat(
    10,
    1fr
  ); /* 10 colonnes pour bien organiser 49 numéros */
  gap: 10px;
  margin: 20px auto;
  width: 100%;
  /* max-width: 700px; */
  min-height: auto;
  box-sizing: border-box;
  justify-content: center;
}

/* Grille spécifique pour les numéros complémentaires (1-10) */
.complementary-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
  margin: 20px auto;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  justify-content: center;
}

/* Ajustement des boutons dans la grille principale */
.number-grid .number-btn {
  width: 50px; /* Taille fixe pour les boutons */
  height: 50px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive pour les petits écrans */
@media (max-width: 768px) {
  .number-grid {
    grid-template-columns: repeat(7, 1fr); /* 7 colonnes sur mobile */
    max-width: 100%;
    padding: 15px;
    gap: 8px;
  }

  .number-grid .number-btn {
    width: 40px; /* Plus petit sur mobile */
    height: 40px;
  }

  .complementary-grid {
    grid-template-columns: repeat(5, 1fr); /* 5 colonnes sur mobile */
    max-width: 100%;
    padding: 15px;
  }
}

/* Amélioration des boutons de numéros avec effet 3D moderne */
.number-btn,
.complementary-ball {
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 50%;
  box-shadow: 6px 6px 13px rgba(0, 0, 0, 0.15),
    /* 8px * 0.8 = 6.4px ≈ 6px, 16px * 0.8 = 12.8px ≈ 13px */ -3px -3px 10px
      rgba(255, 255, 255, 0.9),
    /* -4px * 0.8 = -3.2px ≈ -3px, 12px * 0.8 = 9.6px ≈ 10px */ inset 2px 2px
      3px rgba(255, 255, 255, 0.7),
    /* 4px * 0.8 = 3.2px ≈ 3px */ inset -1px -1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: visible;
  transform: translateZ(0);
}

/* Effet de brillance 3D sur les boutons */
.number-btn::before,
.complementary-ball::before {
  content: "";
  position: absolute;
  top: 15%;
  left: 20%;
  width: 35%;
  height: 35%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.4) 40%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.number-btn:hover,
.complementary-ball:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 12px 12px 24px rgba(0, 0, 0, 0.2),
    -6px -6px 18px rgba(255, 255, 255, 0.9),
    inset 3px 3px 6px rgba(255, 255, 255, 0.8),
    inset -2px -2px 4px rgba(0, 0, 0, 0.15);
}

/* Classes de priorité avec dégradés 3D modernes et intensifiés */
.priority-very-high {
  background: linear-gradient(
    145deg,
    #ff4444 0%,
    #cc1100 50%,
    #990000 100%
  ) !important;
  color: white !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
  box-shadow: 8px 8px 20px rgba(255, 68, 0, 0.4),
    -4px -4px 12px rgba(255, 255, 255, 0.3),
    inset 3px 3px 6px rgba(255, 100, 50, 0.6),
    inset -2px -2px 4px rgba(153, 0, 0, 0.4) !important;
}

.priority-very-high::after {
  content: "";
  position: absolute;
  top: 20%;
  left: 25%;
  width: 30%;
  height: 30%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.5) 40%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
}

.priority-high {
  background: linear-gradient(
    145deg,
    #ff8800 0%,
    #ee6600 50%,
    #cc4400 100%
  ) !important;
  color: white !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6) !important;
  box-shadow: 8px 8px 20px rgba(255, 140, 0, 0.4),
    -4px -4px 12px rgba(255, 255, 255, 0.3),
    inset 3px 3px 6px rgba(255, 170, 80, 0.6),
    inset -2px -2px 4px rgba(204, 68, 0, 0.4) !important;
}

.priority-high::after {
  content: "";
  position: absolute;
  top: 20%;
  left: 25%;
  width: 30%;
  height: 30%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.4) 40%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
}

.priority-medium {
  background: linear-gradient(
    145deg,
    #ffdd00 0%,
    #ffcc00 50%,
    #eebb00 100%
  ) !important;
  color: #333 !important;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8) !important;
  box-shadow: 8px 8px 20px rgba(255, 215, 0, 0.4),
    -4px -4px 12px rgba(255, 255, 255, 0.4),
    inset 3px 3px 6px rgba(255, 240, 100, 0.7),
    inset -2px -2px 4px rgba(238, 187, 0, 0.4) !important;
}

.priority-medium::after {
  content: "";
  position: absolute;
  top: 20%;
  left: 25%;
  width: 30%;
  height: 30%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.5) 40%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
}

.priority-low {
  background: linear-gradient(
    145deg,
    #88ee88 0%,
    #66dd66 50%,
    #44bb44 100%
  ) !important;
  color: #1a4d1a !important;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8) !important;
  box-shadow: 8px 8px 20px rgba(152, 251, 152, 0.4),
    -4px -4px 12px rgba(255, 255, 255, 0.4),
    inset 3px 3px 6px rgba(170, 255, 170, 0.7),
    inset -2px -2px 4px rgba(68, 187, 68, 0.4) !important;
}

.priority-low::after {
  content: "";
  position: absolute;
  top: 20%;
  left: 25%;
  width: 30%;
  height: 30%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.4) 40%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
}

.priority-very-low {
  background: linear-gradient(
    145deg,
    #bbeeee 0%,
    #88dddd 50%,
    #55cccc 100%
  ) !important;
  color: #1a4d4d !important;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.9) !important;
  box-shadow: 8px 8px 20px rgba(187, 238, 238, 0.4),
    -4px -4px 12px rgba(255, 255, 255, 0.4),
    inset 3px 3px 6px rgba(220, 255, 255, 0.7),
    inset -2px -2px 4px rgba(85, 204, 204, 0.4) !important;
}

.priority-very-low::after {
  content: "";
  position: absolute;
  top: 20%;
  left: 25%;
  width: 30%;
  height: 30%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.4) 40%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
}

/* Effets de survol intensifiés pour chaque priorité */
.priority-very-high:hover {
  transform: translateY(-4px) scale(1.08) !important;
  box-shadow: 12px 12px 30px rgba(255, 68, 0, 0.5),
    -6px -6px 18px rgba(255, 255, 255, 0.4),
    inset 4px 4px 8px rgba(255, 120, 70, 0.7),
    inset -3px -3px 6px rgba(153, 0, 0, 0.5) !important;
}

.priority-high:hover {
  transform: translateY(-4px) scale(1.08) !important;
  box-shadow: 12px 12px 30px rgba(255, 140, 0, 0.5),
    -6px -6px 18px rgba(255, 255, 255, 0.4),
    inset 4px 4px 8px rgba(255, 190, 100, 0.7),
    inset -3px -3px 6px rgba(204, 68, 0, 0.5) !important;
}

.priority-medium:hover {
  transform: translateY(-4px) scale(1.08) !important;
  box-shadow: 12px 12px 30px rgba(255, 215, 0, 0.5),
    -6px -6px 18px rgba(255, 255, 255, 0.5),
    inset 4px 4px 8px rgba(255, 250, 120, 0.8),
    inset -3px -3px 6px rgba(238, 187, 0, 0.5) !important;
}

.priority-low:hover {
  transform: translateY(-4px) scale(1.08) !important;
  box-shadow: 12px 12px 30px rgba(152, 251, 152, 0.5),
    -6px -6px 18px rgba(255, 255, 255, 0.5),
    inset 4px 4px 8px rgba(190, 255, 190, 0.8),
    inset -3px -3px 6px rgba(68, 187, 68, 0.5) !important;
}

.priority-very-low:hover {
  transform: translateY(-4px) scale(1.08) !important;
  box-shadow: 12px 12px 30px rgba(187, 238, 238, 0.5),
    -6px -6px 18px rgba(255, 255, 255, 0.5),
    inset 4px 4px 8px rgba(240, 255, 255, 0.8),
    inset -3px -3px 6px rgba(85, 204, 204, 0.5) !important;
}

/* Tableaux modernisés */
.combinaisons-table,
.saved-grids-table,
.results-table {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.combinaisons-table thead,
.saved-grids-table thead,
.results-table thead {
  background: linear-gradient(135deg, #1a2a6c 0%, #2c3e50 100%);
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.combinaisons-table th,
.saved-grids-table th,
.results-table th {
  padding: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
}

.combinaisons-table tbody tr,
.saved-grids-table tbody tr,
.results-table tbody tr {
  background: linear-gradient(to right, #ffffff 0%, #fafbfc 100%);
  transition: all 0.2s ease;
}

.combinaisons-table tbody tr:nth-child(even),
.saved-grids-table tbody tr:nth-child(even),
.results-table tbody tr:nth-child(even) {
  background: linear-gradient(to right, #f8f9fa 0%, #f5f6f7 100%);
}

.combinaisons-table tbody tr:hover,
.saved-grids-table tbody tr:hover,
.results-table tbody tr:hover {
  background: linear-gradient(to right, #e3f2fd 0%, #e8f5ff 100%);
  transform: scale(1.01);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* Boules de numéros dans les tableaux */
.numero-boule,
.grid-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 3px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  color: white;
  text-align: center;
  background: linear-gradient(145deg, #4a90e2 0%, #1e3a8a 100%);
  box-shadow: 0 3px 8px rgba(30, 58, 138, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.numero-boule::before,
.grid-number::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  width: 30%;
  height: 30%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.6) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.complementary-boule,
.grid-complementary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 3px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  color: white;
  text-align: center;
  background: linear-gradient(145deg, #e74c3c 0%, #c0392b 100%);
  box-shadow: 0 3px 8px rgba(192, 57, 43, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.complementary-boule::before,
.grid-complementary::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  width: 30%;
  height: 30%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.6) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

/* Animation au survol des boules */
.numero-boule:hover,
.complementary-boule:hover,
.grid-number:hover,
.grid-complementary:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Styles pour la section de vérification des résultats */
.results-checker-section {
  background: #ffffff00;
  /* background: #ffffff; */
  border-radius: 20px;
  padding: 40px;
  margin: 40px 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e6ed;
}

/* Titre de section amélioré */
.results-checker-section h2 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 30px;
  font-weight: 700;
  text-align: center;
  position: relative;
  padding-bottom: 20px;
}

.results-checker-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #1a2a6c 0%, #3498db 100%);
  border-radius: 2px;
}

/* Cartes de tirage avec style moderne et professionnel */
.draw-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 2px solid #f0f4f8;
  position: relative;
  overflow: hidden;
}

.draw-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1a2a6c 0%, #3498db 100%);
}

.draw-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border-color: #e0e6ed;
}

/* En-tête de carte de tirage */
.draw-header h4 {
  color: #1a2a6c;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
}

/* Boules de loto avec effet 3D professionnel */
.lotto-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; /* 48px * 0.8 = 38.4px ≈ 38px */
  height: 38px; /* 48px * 0.8 = 38.4px ≈ 38px */
  margin: 0 5px; /* 6px * 0.8 = 4.8px ≈ 5px */
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px; /* 20px * 0.8 = 16px */
  color: white;
  position: relative;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.lotto-ball.main-ball {
  background: linear-gradient(145deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.lotto-ball.complementary-ball {
  background: linear-gradient(145deg, #f97316 0%, #ea580c 100%);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Effet de brillance sur les boules - plus subtil */
.lotto-ball::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 20%;
  width: 40%;
  height: 40%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.2) 40%,
    transparent 70%
  );
  border-radius: 50%;
}

.lotto-ball:hover {
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Séparateur entre numéros principaux et complémentaire */
.ball-separator {
  display: inline-flex;
  align-items: center;
  font-size: 19px; /* 24px * 0.8 = 19.2px ≈ 19px */
  font-weight: 700;
  color: #6b7280;
  margin: 0 8px; /* 10px * 0.8 = 8px */
}

/* Formulaire de saisie des résultats - style professionnel */
.draw-input-form {
  background: #f8fafc00;
  /* background: #f8fafc; */
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  margin: 25px 0;
  border: 1px solid #e0e6ed;
}

.draw-input-form label {
  color: #374151;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  display: block;
}

.winning-number-input,
#complementary-number-input,
.winning-number-input {
  width: 65px;
  height: 48px;
  text-align: center;
  border: 2px solid #fff;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  margin: 0 6px;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #222;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.winning-number-input:focus,
#complementary-number-input:focus,
.winning-number-input:focus {
  border-color: #aa00ff;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 12px #aa00ff44;
  outline: none;
}

/* Boutons de gestion */
.manage-draws-btn,
.update-draws-btn,
.update-missing-draws-btn,
.export-draws-btn,
.analyze-draws-btn {
  background: #ffffff;
  color: #374151;
  border: 2px solid #e5e7eb;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 5px;
}

.manage-draws-btn:hover,
.update-draws-btn:hover,
.update-missing-draws-btn:hover,
.export-draws-btn:hover,
.analyze-draws-btn:hover {
  background: #f9fafb;
  border-color: #3b82f6;
  color: #3b82f6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Section des fichiers CSV exportés - style professionnel */
.exported-csv-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.exported-csv-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.exported-csv-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.csv-filename {
  color: #1f2937;
  font-weight: 500;
  font-size: 0.95rem;
}

.csv-view-btn,
.csv-download-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 8px;
  transition: all 0.3s ease;
}

.csv-download-btn {
  background: #3b82f6;
}

.csv-view-btn:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.csv-download-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Table des résultats de vérification - style professionnel */
.results-table {
  margin-top: 25px;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.results-table thead {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.results-table th {
  color: #475569;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 18px 20px;
  border-bottom: 2px solid #e2e8f0;
}

.results-table tbody tr {
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.results-table tbody tr:hover {
  background: linear-gradient(to right, #f8fafc 0%, #f1f5f9 100%);
  transform: none;
}

/* Numéros de résultat */
.result-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0 4px;
  border-radius: 50%;
  background: linear-gradient(145deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

.result-complementary {
  background: linear-gradient(145deg, #f97316 0%, #ea580c 100%);
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.3);
}

/* Statuts de résultat - style professionnel moderne */
.status {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  display: inline-block;
}

.status.lost {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.status.win {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.status.partial-win {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

/* Cellules de correspondance */
.main-match-cell,
.comp-match-cell {
  text-align: center;
  padding: 12px;
}

.match-summary {
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.main-regular,
.comp-regular {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f3f4f6;
  color: #6b7280;
  font-weight: 600;
  font-size: 14px;
  margin: 0 2px;
}

.main-matched {
  background: linear-gradient(145deg, #10b981 0%, #059669 100%);
  color: white;
}

/* Styles spécifiques pour la section des grilles sauvegardées */
.saved-grids-container {
  background: #ffffff;
  border-radius: 16px;
  padding: 25px;
  margin: 20px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #e0e6ed;
}

.saved-grids-container h3 {
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 20px;
  font-weight: 600;
  background: linear-gradient(90deg, #1a2a6c 0%, #3498db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: white;
  background-clip: text;
}

/* Contrôles de sélection des grilles */
.grid-selection-controls {
  background: #f8fafc;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e0e6ed;
}

.select-all-label {
  color: #374151;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.select-all-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.delete-selected-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.delete-selected-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.delete-selected-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Styles spécifiques pour la table des grilles sauvegardées */
.saved-grids-table {
  width: 100%;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 0;
}

.saved-grids-table thead {
  background: linear-gradient(135deg, #1a2a6c 0%, #2c3e50 100%);
}

.saved-grids-table th {
  color: #d90303;
  padding: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  text-align: left;
  font-size: 0.95rem;
}

.saved-grids-table th.select-column {
  width: 50px;
  text-align: center;
}

.saved-grids-table tbody tr {
  background: linear-gradient(to right, #ffffff 0%, #fafbfc 100%);
  transition: all 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.saved-grids-table tbody tr:nth-child(even) {
  background: linear-gradient(to right, #f8f9fa 0%, #f5f6f7 100%);
}

.saved-grids-table tbody tr:hover {
  background: linear-gradient(to right, #e3f2fd 0%, #e8f5ff 100%);
  transform: scale(1.01);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.saved-grids-table td {
  padding: 15px;
  color: #374151;
  font-size: 0.9rem;
}

.saved-grids-table td:first-child {
  text-align: center;
}

/* Checkbox dans la table */
.grid-select-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* === STYLES POUR LES BOULES DU FLOATING PANEL === */

/* Boules principales dans le floating panel avec effet 3D moderne */
.floating-number {
  display: inline-block;
  margin: 4px;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Base moderne avec dégradé bleu */
  background: linear-gradient(145deg, #00a2d9 0%, #0088bb 50%, #006699 100%);
  color: white;
  border: 2px solid #0077aa;

  /* Ombres 3D multiples */
  box-shadow: 6px 6px 16px rgba(0, 162, 217, 0.3),
    -3px -3px 8px rgba(255, 255, 255, 0.2),
    inset 2px 2px 4px rgba(255, 255, 255, 0.4),
    inset -1px -1px 2px rgba(0, 119, 170, 0.3);

  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Effet de brillance sur les boules principales */
.floating-number::after {
  content: "";
  position: absolute;
  top: 15%;
  left: 20%;
  width: 25%;
  height: 25%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.3) 40%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

/* Hover effect pour les boules principales */
.floating-number:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 8px 8px 20px rgba(0, 162, 217, 0.4),
    -4px -4px 12px rgba(255, 255, 255, 0.3),
    inset 3px 3px 6px rgba(255, 255, 255, 0.5),
    inset -2px -2px 4px rgba(0, 119, 170, 0.4);
}

/* Boules complémentaires dans le floating panel avec effet 3D moderne */
.complementary-number {
  display: inline-block;
  margin: 4px;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  border-radius: 50%;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Base moderne avec dégradé rouge */
  background: linear-gradient(145deg, #ea3946 0%, #cc2233 50%, #aa1122 100%);
  color: white;
  border: 2px solid #cc2233;

  /* Ombres 3D multiples */
  box-shadow: 6px 6px 16px rgba(234, 57, 70, 0.3),
    -3px -3px 8px rgba(255, 255, 255, 0.2),
    inset 2px 2px 4px rgba(255, 255, 255, 0.4),
    inset -1px -1px 2px rgba(170, 17, 34, 0.3);

  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Effet de brillance sur les boules complémentaires */
.complementary-number::after {
  content: "";
  position: absolute;
  top: 15%;
  left: 20%;
  width: 25%;
  height: 25%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0.3) 40%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

/* Hover effect pour les boules complémentaires */
.complementary-number:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 8px 8px 20px rgba(234, 57, 70, 0.4),
    -4px -4px 12px rgba(255, 255, 255, 0.3),
    inset 3px 3px 6px rgba(255, 255, 255, 0.5),
    inset -2px -2px 4px rgba(170, 17, 34, 0.4);
}

/* Effet général de survol pour toutes les boules du floating panel */
.floating-numbers span:hover {
  transform: translateY(-2px) scale(1.1);
  color: white;
  cursor: pointer;
}

/* Animation d'apparition pour les boules du floating panel */
.floating-number,
.complementary-number {
  animation: fadeInBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes fadeInBounce {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-20px);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05) translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
