/* Styles for generated lottery grids table */

/* Main table styles */
.combinaisons-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  overflow: hidden;
}

.combinaisons-table thead {
  background: linear-gradient(135deg, #1a2a6c, #b21f1f);
  color: white;
}

.combinaisons-table th,
.combinaisons-table td {
  padding: 12px 15px;
  text-align: center;
  border: 1px solid #ddd;
}

.combinaisons-table tbody tr {
  background-color: #f9f9f9;
  transition: background-color 0.3s, transform 0.2s;
  cursor: pointer;
}

.combinaisons-table tbody tr:nth-child(even) {
  background-color: #f2f2f2;
}

.combinaisons-table tbody tr:hover {
  background-color: #e9f2fd;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Styles pour les lignes sélectionnées */
.combinaisons-table tbody tr.selected {
  background-color: #d4e6f1;
  border-left: 3px solid #3498db;
}

/* Checkbox column styles */
.checkbox-cell {
  width: 30px;
  text-align: center;
  vertical-align: middle;
}

.grid-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Bulk actions container */
.bulk-actions-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Remplacer les styles de selection-controls par selection-info */
.selection-info {
  font-size: 0.9em;
  color: #6c757d;
  max-width: 50%;
  line-height: 1.5;
}

.bulk-actions {
  display: flex;
  gap: 10px;
}

/* Style pour améliorer le label de la case à cocher d'en-tête */
.header-checkbox-label {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header-checkbox-label .grid-checkbox {
  margin-right: 5px;
}

/* Style quand on survole la case à cocher */
.header-checkbox-label:hover {
  opacity: 0.8;
}

.selection-controls {
  display: flex;
  gap: 10px;
}

.selection-controls button {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.2s;
}

.selection-controls button:hover {
  background-color: #e8e8e8;
}

.bulk-actions {
  display: flex;
  gap: 10px;
}

.bulk-action-btn {
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
  border: none;
}

.bulk-save-btn {
  background-color: #3498db;
  color: white;
}

.bulk-save-btn:hover {
  background-color: #2980b9;
}

.bulk-save-btn:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

.bulk-delete-btn {
  background-color: #e74c3c;
  color: white;
}

.bulk-delete-btn:hover {
  background-color: #c0392b;
}

.bulk-delete-btn:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

/* Grid number cell (first column) */
.grid-number-cell {
  background: linear-gradient(135deg, #1a2a6c, #b21f1f);
  color: white;
  font-weight: bold;
  text-align: center;
}

/* Number bubbles styles */
.combinaisons-table .numero-boule {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2980b9, #3498db);
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  border: 2px solid #fff;
}

/* Complementary number bubble styles */
.combinaisons-table .complementary-boule {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  border: 2px solid #fff;
}

/* Complementary cell styles */
.combinaisons-table .complementary-cell {
  /* Base styles for the cell containing complementary numbers */
}

/* Complementary header styles */
.combinaisons-table .comp-header {
  background-color: rgba(46, 204, 113, 0.1);
}

/* Actions cell styles */
.actions-cell {
  text-align: center;
  vertical-align: middle;
}

/* Save button style */
.save-combo-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 5px 8px;
  border-radius: 4px;
}

.save-combo-btn:hover {
  transform: scale(1.2);
  background-color: rgba(41, 128, 185, 0.1);
}

/* Delete button style */
.delete-combo-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 5px 8px;
  border-radius: 4px;
  color: #e74c3c;
}

.delete-combo-btn:hover {
  transform: scale(1.2);
  background-color: rgba(231, 76, 60, 0.1);
}

/* Clear all combinations button */
.clear-all-combinations-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: bold;
}

.clear-all-combinations-btn:hover {
  background-color: #c0392b;
}

/* Animation for row deletion */
#combinaisons tr {
  transition: opacity 0.3s, transform 0.3s;
}
