/* 

Feuille de styles CSS

www.mot-passe.fr | www.pass-gen.net - All rights reserved


*/    
    
body {
  font-family: Arial, sans-serif;
  background-color: #F0F0F0;
  color: #333;
  margin: 0;
  padding: 20px;
  font-size: 14px;
}

a, a:hover{
  text-decoration: none;
  font-size: 12px;
  color: #333;
}

h1 {
  text-align: center;
  /*text-transform: uppercase;*/
  margin-bottom: 0px;
  font-size: 28px;
}

h2{
    text-align: center;
    font-size: 18px;
    margin-bottom: 24px;
}

h3{
  text-align: center;
  font-size: 22px;
  margin-bottom: 24px;
}

#icon{
    display: block;
    width: 92px;
    height: 92px;
    margin: auto;
    background-image: url("img/padlock.png");

}

.container {
  max-width: 400px;
  margin: 0 auto;
  background-color: #FFF;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: left;
  font-size: 16px;
}

.insertion{
  margin: 0;
  padding: 0;
}

#spantitre{
  text-transform: lowercase;
}

label {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

span{
    padding: 5px 10px;
}

#lengthDisplay{
    font-weight: bold;
}

/* Coches et curseur */

input[type="checkbox"],
input[type="range"],
select {
  margin-left: 10px;
}

input[type="range"] {
  width: 100%;
}

.special-chars label{
    font-family: 'Courier New', Courier, monospace;
    font-size: 20px;
}

input[type="checkbox"]{
  width: 18px;
  height: 18px;
  margin: 4px;
}

/* Style pour les boutons */

button {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 20px;
  background-color: #0075ff;
  color: #FFF;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #006ad6;
}

#generateButton, #errorButton{
    font-size:18px;
    font-weight: bold;
}

#copyButton{
  width: 26px;
  height: 26px;
  background-image: url('img/copy_g.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-color: transparent;
}

/* Style pour les checkbox */

input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #0075ff;
  border-radius: 3px;
 
  transition: background-color 0.3s ease;
}

input[type="checkbox"]:hover {
}

input[type="checkbox"]:checked {
  background-color: #0075ff;
  background-image: url('img/checkmark.png');
  background-repeat: no-repeat;
  background-size: 100% 100%;     
}

/* Style pour le menu déroulant */

.custom-select {
  /*
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 10px;
  background-color: #FFF;
  color: #333;
  */
  border: 1px solid #333;
  border-radius: 5px;
}

/*
.custom-select:focus {
  outline: none;
  box-shadow: 0 0 5px #333;
}
*/


/* Style pour le curseur horizontal */

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background-color: #ddd;
  border-radius: 5px;
  outline: none;
  
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background-color: #0075ff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Ajout de l'ombre */
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background-color: #0075ff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Ajout de l'ombre */
}

input[type="range"]::-webkit-slider-thumb:hover {
  background-color: #006ad6;
}

input[type="range"]::-moz-range-thumb:hover {
  background-color: #006ad6;
}


/* Style pour les passwords */
#numPasswords{
    border-radius: 5px;
    padding: 5px;
}

.passwords {
  margin-top: 20px;
  width: 100%;
}

.passwords table {
  width: 100%;
  border-collapse: collapse;
}

.passwords th,
.passwords td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #DDD;
}

.passwords td {
  font-family: 'Courier New', Courier, monospace;
  font-size: 18px;
  font-weight: bold;
  color: #b71c1cc0;
}

.passwords button {
  padding: 5px 10px;
  margin: 0 5px;
  float: right;
}

/* Gestion du dark mode */
.dark-mode {
  background-color: #222;
  color: #FFF;
}

.dark-mode .container {
  background-color: #333;
}

.dark-mode .passwords td {
    color: #FFD54F;
}

.dark-mode #footer {
    color: #FFEBEE;
}

.dark-mode #icon{
    background-image: url("img/padlock_d.png");
}

.dark-mode #copyButton{
  background-image: url('img/copy_w.png');
}


@media (max-width: 480px) {
  .container {
    padding: 10px;
  }
  
  button {
    width: 100%;
  }
}

 /* Style pour les coches caractères spéciaux */
 .special-chars {
  display: none;
  margin-top: 2x;
}

.special-chars label {
  display: inline-block;
  margin-right: 10px;
}

/* Style pour le message */
#copyMessage {
    max-width: 280px;
    background-color: #09af00;
    color: #FFF;
    padding: 10px;
    border-radius: 5px;
    align-items: center;
    font-size: 12px;
    display: inline-block;
    position: fixed;
    top: 64px;
    left: 50%;
    transform: translate(-50%, 0%);
}
/* Style pour le pied de page */
#footer{
    font-size: 12px;
    color: #888888;
    text-align: center;
    margin: 20px;
}

#footer a, #footer a:hover{
  text-decoration: none;
  color: #888888;
}

#annee{
    padding: 0;
    margin: 0;
}

.source{
  font-size: 12px;
  margin: 24px 0;
}

.retour{
  text-align: center;
}

#errorButton{
  background-color: #d50000;
  display: none;
  pointer-events: none;
}

#help-link{
  margin-top: 20px;
  text-align: center;
}