*{
  font-family: Montserrat ; 

}

.nav-top-account{
    height: 60px;
    width: 100%;
    background-color: #1187e7;
    box-shadow: 1px 1px 1px 2px rgba(0, 0, 0, .1);
    z-index: 10;
    position: fixed;
    top: 0  ;
    left: 0;
}

.divlogin{
  font-family: Montserrat !important; 
  font-weight: normal;
  position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
max-width: 500px;
min-width: 400px;
z-index: 99;
background-color: #ffffff;
box-shadow: 4px 4px 4px 4px rgba(0.1, 0.1, 0.1, 0.1);
text-align: center;
margin-bottom:00px;
height: 700px;
border-radius: 10px;
padding: 20px;
line-height: 1.6;
              }

.divlogin p{
    margin-bottom: 30px;
    color: #6e6e6e;
}
.divlogin h1{
margin-top: 40px;
    color: #6e6e6e;
}
.logo {
  cursor: pointer;
  max-width: 200px;
  margin-top: 0px;
}

.logo2{
  margin-top: 5px;
}

.logo3{
    margin-top: 70px;
}
.divlogin
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"]{
    width: 80%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 20px;
    margin-top: 10px;
}


.BOTTONE{
width: 80%;
height: 40px;
background-color:#2b93e9;
border-radius: 4px;
margin-top: 50px;
margin-bottom: 20px;
font-size: 18px;
border: 0;
color: #ffffff;
z-index: 2;
box-shadow: 1px 1px 1px 1px rgba(0.1, 0.1, 0.1, 0.1);
}

.space {
    margin-left: 110px;
}
a{
      color: #2b93e9;
}

.hamburger{
  height: 25px;
  margin-top: 15px;
 cursor: pointer;
 margin-left: 27px;
}

.dark-mode-button{
  position: absolute;
  height: 25px;
  margin-top: 15px;
 cursor: pointer;
 right: 40px;
}



/* Stile di base (modalità chiara) */
body {
    background-color: white;
    color: #666;
    transition: background-color 0.3s, color 0.3s;
    place-items: center;
    overflow-x: hidden;
  }
  
  h1{
    color: #665
  }


  p{
    color: #666;
  }
  
  
  
  button {
    padding: 5px 20px !important;
    border: none;
    background-color: #1187e7 !important;
    color: white;
    cursor: pointer;
    font-size: 16px;
    width: 200px;
    height: 30px;
    border-radius: 4px;
    box-shadow: 1px 2px 1px 1px rgba(0.1, 0.1, 0.1, 0.1);
  }
  
  button:hover {
    background-color: #0056b3;
  }
  
  /* Modalità scura */
  body.dark-mode {
    background-color:#27272fff;

    color: white;
  }
  
  body.dark-mode h1, body.dark-mode p, body.dark-mode a {
    color: white;
  }
  
  body.dark-mode .divlogin {
    background-color: #27272fff;
    border-radius: 10px;
    padding: 20px;
  }

  body.dark-mode .c {
    background-color: #27272fff;
    border-radius: 10px;
    padding: 20px;
  }
  body.dark-mode .contenitore-tavola-company {
    background-color: #27272fff;
    border-radius: 10px;
    padding: 20px;
  }
  body.dark-mode .dropdown-content{
    background-color: rgb(44, 44, 49);

  }



  body.dark-mode .nav-left {
    background-color: #27272fff;
  }
  body.dark-mode input {
    background-color: #444;
    color: white;
    border: 1px solid #666;
  }
  body.dark-mode select {
    background-color: #444;
    color: white;
    border: 1px solid #666;
  }
  body.dark-mode textarea {
    background-color: #444;
    color: white;
    border: 1px solid #666;
  }
  
  body.dark-mode input::placeholder {
    color: #bbb;
  }
  
  body.dark-mode button {
    background-color: #007BFF;
  }
  
  body.dark-mode button:hover {
    background-color: #1887fd;
  }


        .nav-left{
          background-color: #f5f5f5;
          margin-top: -20px;
          height: 110vh;
          width: 160px;
          position: fixed;
          box-shadow: 0px 0px 0px 1.5px rgba(0, 0, 0, 0.1);
          z-index: 9;
          transition: left 0.5s ease-in-out;
          left: 0px; /* Menu nascosto di default */
          }

        .div-nav-left {
          margin-top: 20px;
          height: 45px;
          padding-left: 20px;
      
      }
      .div-nav-left a{
          align-items: center;
          font-size: 18px;
          font-weight: 500;
          padding: 0 10px;
          text-decoration: none;
          color: #665;
      }
      .div-nav-left a:hover{
          color: #1187e7;
      }
      .divmaster{
        width: 100%;
        height: 100%;
      }

      
/* Container principale che conterrà la griglia */
.form-container {
  display: grid; /* Imposta il layout della griglia */
  grid-template-columns: repeat(2, 1fr); /* 4 colonne uguali */ 
  margin: 0 auto;/* Distanza tra le colonne e le righe */
  width: 95%;
  margin: 0 auto; /* Centra il contenitore */
  padding: 20px;
  box-sizing: border-box; /* Assicura che padding e bordi non influenzino la larghezza */
}

/* Ogni campo (input, select, label) */
.field {
  display: flex;
  flex-direction: column; /* Imposta l'etichetta sopra il campo *//* Spazio tra i campi */
}

/* Stile per le etichette */


/* Input e Select devono occupare tutta la larghezza disponibile */
.field input, .field select{
  width: 90%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  margin-bottom: 20px;
  padding: 8px;
  box-sizing: border-box;
  height: 44px;
}

.field textarea{
  width: 90%;
  transform: translateX(calc(0px + 2vw));
  padding: 12px;
  height: 120px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  margin-bottom: 20px;
  padding: 8px;
  box-sizing: border-box;
  resize: none;
}

.input, .select{
  
  width: 90%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  margin-bottom: 20px;
  padding: 8px;
  box-sizing: border-box;
  height: 44px;
}

.textarea{
  width: 90%;
  transform: translateX(calc(0px + 2vw));
  padding: 12px;
  height: 120px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  margin-bottom: 20px;
  padding: 8px;
  box-sizing: border-box;
  resize: none;
}
.swal-title-custom {
  color: #007BFF; /* Colore rosso personalizzato */
}

/* Bottone di invio */
.form-container button {
  grid-column: span 2; /* Il bottone occupa tutte e 4 le colonne */
  padding: 6px 16px;
  background-color: #1187e7;
  color: white;
  border: none;
  cursor: pointer;
  width: 150px;
  margin-top: 20px;
  border-radius: 6PX;
  box-shadow: 1px 2px 1px 1px rgba(0.1, 0.1, 0.1, 0.1);
}
.form-container2 button {
  grid-column: span 2; /* Il bottone occupa tutte e 4 le colonne */
  padding: 6px 16px;
  background-color: #1187e7;
  color: white;
  border: none;
  cursor: pointer;
  width: 150px;
  margin-top: 20px;
  border-radius: 2px;
  box-shadow: 1px 2px 1px 1px rgba(0.1, 0.1, 0.1, 0.1);
}

/* Effetto hover sul bottone */
.form-container button:hover {
  background-color: #007fe7;
}
.table-aziende{
    width: 100%;
    min-width: 10%; 
 /* Non eccede il contenitore */
    table-layout: auto;
    border-collapse: collapse;
    display: table;
    margin-bottom: 40px;
}
.table-aziende td {
  border-left: none;
  border-right: none;
  overflow: hidden; /* Evita che il contenuto si sovrapponga */
  
}

.table-aziende td {
  border: 1px solid #cfcfcf;
}

.table-aziende th, 
.table-aziende td {

  padding-left: 5px;
  text-align: left;
  word-wrap: break-word; /* Spezza il testo lungo */
  text-overflow: ellipsis; 
  height: 30px;
}
body.dark-mode td  {
  background-color: #27272fff;
  border: 1px solid #ffffff;
}
body.dark-mode th {
  background-color: #27272fff;
}

.changePass{
float: right;
  margin-top: 0px;
  width: 150PX;
  font-size: 12PX;
  border-radius: 6PX;
  margin-left: 60px;
  position: absolute  ;
}
.loginMessage{
  position: absolute;
  float: left;
  color: red;
  font-size: 12px;
}
.loginMessage2
{
  position: absolute;
  float: left;
  color: rgba(0, 255, 34, 0.705);
  font-size: 12px;
}
#top{
  margin-top: 600px;
}

.form-container2 {
  /* Rimuoviamo la griglia se non è necessaria */
  margin: 0 auto; /* Centra il contenitore */
  width: 100%; /* Imposta la larghezza al 100% */
  padding: 20px; /* Aggiungi del padding per lo spazio interno */
  box-sizing: border-box; /* Include padding e bordi nella larghezza totale */
  
  /* Aggiungi position relative per abilitare top */
  position: relative; /* Permette l'uso di top */
  
  /* Rimuovi grid-template-columns perché non serve per un layout a una sola colonna */
  transition: top 0.5s ease-in-out; /* Aggiungi transizione per il top */
}

.form-container3 {
  display: grid; /* Imposta il layout della griglia */
  grid-template-columns: repeat(3, 1fr); /* 4 colonne uguali */ 
  margin: 0 auto;/* Distanza tra le colonne e le righe */
  width: 90%;
  margin: 0 auto; /* Centra il contenitore */
  padding: 0px;
  box-sizing: border-box; 
  margin-left: 60px;/* Assicura che padding e bordi non influenzino la larghezza */
}

.form-container3 input, .form-container3 select{
  width: 94%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  margin-bottom: 20px;
  padding: 8px;
  box-sizing: border-box;
  height: 44px;
}

.contenitore-tavola-company{
  transition: left 0.5s ease-in-out;
    position: absolute;
top: 10%;
left: 55%;
transform: translate(-50%, 0);
width: 90%;
margin-bottom:00px;
border-radius: 10px;
padding: 20px;
line-height: 1.6;

}
.contenitore-tavola-companyadd{
  transition: left 0.5s ease-in-out;
    position: absolute;
top: 10%;
left: 55%;
transform: translate(-50%, 0);
width: 90%;
margin-bottom:00px;
border-radius: 10px;
padding: 20px;
line-height: 1.6;

}

.contenitore-tavola-personal{
  transition: left 0.5s ease-in-out;
    position: absolute;
top: 10%;
left: 55%;
transform: translate(-50%, 0);
width: 90%;
margin-bottom:00px;
border-radius: 10px;
padding: 20px;
line-height: 1.6;

}

.centrato{
  margin-left: 70px;
}


.toggle {
  --width: 50px;
  --height: calc(var(--width) / 2);
  --border-radius: calc(var(--height) / 2);

  display: inline-block;
  cursor: pointer;
}

.toggle__input {
  display: none;
}

.toggle__fill {
  position: relative;
  width: var(--width);
  height: var(--height);
  border-radius: var(--border-radius);
  background: #dddddd;
  transition: background 0.2s;
}

.toggle__input:checked ~ .toggle__fill {
  background: #009578;
}

.toggle__fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: var(--height);
  width: var(--height);
  background: #ffffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  border-radius: var(--border-radius);
  transition: transform 0.2s;
}

.toggle__input:checked ~ .toggle__fill::after {
  transform: translateX(var(--height));
}

.name{
  width: 88% !important;
  transform: translateX(calc(20px + 2vw));
  padding: 12px;
  height: 60px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  margin-bottom: 20px;
  padding: 8px;
  box-sizing: border-box;
  resize: none;
}

.contenitore-tavola-list{
  transition: left 0.5s ease-in-out;
    position: absolute;
top: 30%;
left:55%;
transform: translate(-50%, -50%);
width: 1400px;
z-index: 99;
border-radius: 10px;
padding: 20px;
line-height: 1.6;
}


.dropdown {
  position: relative;
  float: right;
  margin-right: 130px;
  margin-top: 2px;
}

/* Stile del bottone del dropdown */
.dropbtn {
  color: white;
  padding: 10px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

/* Il menu a discesa (nascosto per impostazione predefinita) */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 120px;
  z-index: 1;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

/* Link all'interno del dropdown */
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  border-radius: 6px;
}

/* Cambia colore dei link al passaggio del mouse */
.dropdown-content a:hover {
  background-color: #ddd;
}

/* Mostra il menu a discesa quando l'utente passa sopra il bottone */
.dropdown:hover .dropdown-content {
  display: block;
}
.logout{
  position: absolute;
  right: 10px;
  height: 20px;
}


.div-input input, .div-input select{
  width: 400px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  margin-bottom: 20px;
  padding: 8px;
  box-sizing: border-box;
  height: 44px;
  margin-right: 40px;
}

.error {
  border-color: red !important;
}
.success {
  border-color: green !important;
}

.action-btn { /* Colorazione bordeaux per i bottoni delle maschere di login, reset, ecc.*/
  background-color: #b10456 !important;
}
.custom-checkbox {
  width: 25px !important;  /* Larghezza */
  height: 25px !important; /* Altezza */
  cursor: pointer !important; /* Cambia il cursore al passaggio */
  align-self: left;
margin-bottom: 20px !important;
margin-right: 41px;
}
.label-checkbox{
position: absolute;
width: 330px;
margin-left: 40px;
font-size: 12px;
padding: 4px 4px 0;
line-height: normal;
}
.contenitore-tavola-account{
  transition: left 0.5s ease-in-out;
    position: absolute;
top: 32%;
left: 55%;
transform: translate(-50%, -50%);
width: 90%;
margin-bottom:00px;
border-radius: 10px;
padding: 20px;
line-height: 1.6;

}

#darkModeToggle {
  transition: transform 0.5s ease-in-out;
}

/* Questo è il comportamento per la rotazione */
.rotate {
  transform: rotate(360deg);
}
.rotated {
  transform: rotate(180deg);
}
.img-az{
  margin-top: 10px;
  height: 15px;
  margin-left: 5px;
}


.checkbox-container {
  display: inline-block;
  cursor: pointer;
}
.checkbox-container input[type="checkbox"]{
  display: none;
}
.Unsubscribe{
  width: 90%;
  height: 200px;
  margin-left: 20px;
  font-size: 20px;
}
.sezione-assistenza{
   width: 88%;
   position: absolute;
   top: 77%;
   left: 55%;
   transform: translate(-50%, -50%);
   transition: left 0.5s ease-in-out;
   margin-left: 50px;
}



.card {
  background: #1187e7 ;
  padding: 0.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #ffffff;
}

.card-icon {
  width: 64px;
  height: 64px;
  font-size: 30px;
  margin: 0 auto 1rem;
  background: #f5f7fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  margin-top: 10px;
  color: #000000;
}

.card:hover .card-icon {
  transform: scale(1.1);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 0fr));
  gap: 4rem;
  margin-bottom: 4rem;
}
@media screen and (max-width: 1682px){
  .sezione-assistenza{
    width: 88%;
    position: absolute;
    top: 97%;
    left: 55%;
    transform: translate(-50%, -50%);
    transition: left 0.5s ease-in-out;
    margin-left: 50px;
 }
 
}
@media screen and (max-width: 749px){
  .sezione-assistenza{
    width: 88%;
    position: absolute;
    top: 137%;
    left: 55%;
    transform: translate(-50%, -50%);
    transition: left 0.5s ease-in-out;
    margin-left: 50px;
 }
 
}
@media screen and (max-width: 600px) {
  .sezione-assistenza{
    height: 400px;
    width: 80%;
    position: absolute;
    top: 125%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-left: 30px;
 }
 .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 0fr));
  gap: 5rem;
  margin-bottom: 4rem;
}
  #top{
    margin-top: 800px;
  }
  .divlogin{
    position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 500px;
  min-width: 300px;
  z-index: 99;
  background-color: #ffffff;
  box-shadow: 4px 4px 4px 4px rgba(0.1, 0.1, 0.1, 0.1);
  text-align: center;
  margin-bottom:00px;
  height: 700px;
  border-radius: 10px;
  padding: 20px;
  line-height: 1.6;
                }
  
  .divlogin p{
      margin-bottom: 15px;
      color: #6e6e6e;
  }
  .divlogin h1{
  margin-top: 20px;
      color: #6e6e6e;
      font-size: 20px;
  }
  .logo {
    cursor: pointer;
    width: 150px;
    margin-top: 0px;
  }
  
  .logo2{
    margin-top: 5px;
  }
  
  .logo3{
      margin-top: 70px;
  }
  .divlogin
  input[type="text"],
  input[type="password"],
  input[type="email"],
  input[type="number"],
  input[type="tel"]{
      width: 80%;
      padding: 12px;
      border: 1px solid #ddd;
      border-radius: 4px;
      font-size: 16px;
      margin-bottom: 20px;
      margin-top: 10px;
  }
  
  .form-container {
    display: block; /* Imposta il layout della griglia */
    grid-template-columns: repeat(1, 1fr); /* 4 colonne uguali */ 
    margin: 0 auto;/* Distanza tra le colonne e le righe */
    width: 95%;
    margin: 0 auto; /* Centra il contenitore */
    padding: 20px;
    box-sizing: border-box; /* Assicura che padding e bordi non influenzino la larghezza */
  }
  .form-container3 {
    display: grid; /* Imposta il layout della griglia */
    grid-template-columns: repeat(1, 1fr); /* 4 colonne uguali */ 
    margin: 0 auto;/* Distanza tra le colonne e le righe */
    width: 90%;
    margin: 0 auto; /* Centra il contenitore */
    padding: 0px;
    box-sizing: border-box; 
    margin-left: 25px;/* Assicura che padding e bordi non influenzino la larghezza */
  }

  .form-container3 input, .form-container3 select{
    width: 85%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 20px;
    padding: 8px;
    box-sizing: border-box;
    height: 44px;
  }
  .contenitore-tavola-account{
    transition: left 0.5s ease-in-out;
      position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  margin-bottom:00px;
  border-radius: 10px;
  padding: 20px;
  line-height: 1.6;
  
  }

  .changePass{
    float: right;
      margin-top: 0px;
      width: 150PX;
      font-size: 12PX;
      margin-left: 28px;
      border-radius: 6PX;
position: absolute;
    }

    .contenitore-tavola-personal{
      transition: left 0.5s ease-in-out;
        position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, 0);
    width: 90%;
    margin-bottom:00px;
    border-radius: 10px;
    padding: 20px;
    line-height: 1.6;
    
    }

    .label-checkbox{
      position: absolute;
      width: 230px;
      margin-left: 40px;
      font-size: 12px;
      padding: 4px 4px 0;
      
      }
      .contenitore-tavola-list{
        transition: left 0.5s ease-in-out;
          position: absolute;
      top: 40%;
      left: 55% !important;
      transform: translate(-50%, -50%);
      max-width: 300px;
      z-index: 99;
      border-radius: 10px;
      padding: 20px;
      line-height: 1.6;
      overflow-x: scroll;
      }
      .contenitore-tavola-company{
        transition: left 0.5s ease-in-out;
          position: absolute;
      top: 10%;
      left: 50%;
      transform: translate(-50%, 0);
      width: 90%;
      margin-bottom:00px;
      border-radius: 10px;
      padding: 20px;
      line-height: 1.6;
      
      }
      .contenitore-tavola-companyadd{
        transition: left 0.5s ease-in-out;
          position: absolute;
      top: 10%;
      left: 50%;
      transform: translate(-50%, 0);
      width: 90%;
      margin-bottom:00px;
      border-radius: 10px;
      padding: 20px;
      line-height: 1.6;
      
      }
      
.name{
  width: 72% !important;
  transform: translateX(calc(20px + 2vw));
  padding: 12px;
  height: 60px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  margin-bottom: 20px;
  padding: 8px;
  box-sizing: border-box;
  resize: none;
}
}
