/* Style par défaut (clair) */
body {
  font-family: Arial, sans-serif;
  display: flex;
  margin: 20px;
  background-color: #ffffff;
  color: #000000;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 10px;
  margin-left: 10px;
}

.containers button {
  padding: 5px;
  cursor: pointer;
}

.containers {
  max-width: 320px;
  width: 100%;
  margin-left: 10px;
}

.container2 {
  max-width: 700px;
  width: 100%;
  margin-left: 50px;
}

label {
  font-weight: bold;
  margin-top: 10px;
    font-size: 12px;
  display: block;
}

input {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  margin-bottom: 10px;
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #ccc;
}

input.small {
  width: 375px;
  padding: 8px;
  margin-top: 5px;
  margin-bottom: 10px;
}

select {
  width: 200px;
  padding: 8px;
  margin-top: 5px;
  margin-bottom: 10px;
  background-color: #ffffff;
  color: #000000;
}

.char-counter {
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 10px;
    display: block;
  }

button {
  padding: 10px;
  font-size: 12px;
  cursor: pointer;
  width: 250px;
  height: 30px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background-color: #007bff;
  color: #ffffff;
  border: none;
      border-radius: 5px;
}

button:hover {
    background-color: #8FBC8F; /* Couleur plus foncée au survol */
}

button.small {
  width: 30px;
  height: 30px;
      border-radius: 5px;
}

button.small:hover {
    background-color: #8FBC8F; /* Couleur plus foncée au survol */
}


button.med {
  width: 80px;
  height: 30px;
  border-radius: 5px;
}

button.med:hover {
    background-color: #8FBC8F; /* Couleur plus foncée au survol */
}

button.medr {
  width: 80px;
  height: 30px;
  border-radius: 5px;
  background-color: #BB0B0B;
}


button.copy {
  width: 250px;
  height: 30px;
  border-radius: 5px;
  display: flex;
}

.output {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  color: #000000;
  font-size: 12px;
}

/* Mode sombre */
body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

.sidebar.dark-mode {
  background-color: #1e1e1e;
}

input.dark-mode, select.dark-mode {
  background-color: #333333;
  color: #e0e0e0;
  border: 1px solid #555555;
}

button.dark-mode {
  background-color: #444444;
  color: #e0e0e0;
}

button.medr.dark-mode {
  background-color: #BB0B0B;
  color: #e0e0e0;
}

button.dark-mode:hover {
    background-color: #8FBC8F; /* Couleur plus foncée au survol */
}

.output.dark-mode {
  background-color: #1e1e1e;
  border: 1px solid #444444;
  color: #ffffff;
}



textarea {
    all: unset;
    width: 100%;
    height: 250px;
    margin-bottom: 10px;
    padding: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
      font-size: 12px;
}

textarea.dark-mode {
    background-color: #1e1e1e;
    border: 1px solid #444444;
    color: #ffffff;
}


/* Ajout d'une transition pour un passage fluide entre modes */
body, input, select, textarea, button, .output {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}


a.button {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    width: 250px;
    height: 30px;
    background-color: #008020; /* Même couleur que les boutons */
    color: #ffffff;
    border: none;
    line-height: 30px; /* Aligner verticalement le texte */
}

a.button:hover {
    background-color: #8FBC8F; /* Couleur plus foncée au survol */
}

#darkModeButton {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 10px 15px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#darkModeButton:hover {
    background-color: #0056b3;
}



table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 12px;
}
th, td {
  padding: 8px;
  border-bottom: 1px solid #ccc;
  text-align: left;
}
input[type="number"] {
  width: 100px;
}
/* Masquer les flèches d’incrément dans les champs number */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}
.total-cell {
  font-weight: bold;
  background-color: #f2f2f2;
}

/* Style de la classe .total-cell en mode sombre */
.dark-mode .total-cell {
  background-color: #333; /* Fond sombre pour .total-cell */
  color: #fff;           /* Texte clair */
}
