@import "results-checker.css";

/* Styles pour le gestionnaire d'historique des combinaisons */
.history-button {
  background-color: #4a69bd;
  margin-left: 10px;
  transition: background-color 0.3s;
}

.history-button:hover {
  background-color: #3c58a8;
}

/* Modal d'historique */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1100;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  width: 80%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(0);
  transition: transform 0.3s;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.modal-header h2 {
  margin: 0;
  color: #333;
  font-size: 1.5rem;
}

.modal .close {
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s;
}

.modal .close:hover {
  color: #333;
}

/* Liste des combinaisons */
.combinations-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.combination-item {
  background-color: #f9f9f9;
  border-radius: 6px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.combination-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.combination-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.combination-name {
  font-weight: bold;
  font-size: 1.1em;
  color: #2980b9;
}

.combination-date {
  color: #7f8c8d;
  font-size: 0.9em;
}

.combination-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0;
  align-items: center;
}

.complementary-numbers {
  display: flex;
  margin-left: 10px;
  position: relative;
}

.complementary-numbers::before {
  content: "+";
  display: flex;
  align-items: center;
  margin-right: 5px;
  font-weight: bold;
  font-size: 1.2em;
  color: #333;
}

.complementary-bubble {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.combination-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.load-combination {
  background-color: #2ecc71;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.delete-combination {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.load-combination:hover {
  background-color: #27ae60;
}

.delete-combination:hover {
  background-color: #c0392b;
}

/* Utiliser les styles centralisés de common-balls.css pour le modal */
#history-modal .complementary-numbers,
#history-modal .complementary-bubble {
  display: none !important;
}

/* STYLES EXACT COPIÉS DE "MES GRILLES SAUVEGARDÉES" */
#history-modal .combination-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0;
  align-items: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  visibility: visible;
  -webkit-user-select: none;
  user-select: none;
}

#history-modal .combination-item {
  background-color: #f9f9f9;
  border-radius: 6px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  visibility: visible;
  -webkit-user-select: none;
  user-select: none;
}
