@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400; /* Regular */
    font-style: normal;
  }
  
  @font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500; /* Medium */
    font-style: normal;
  }
  
  @font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600; /* SemiBold */
    font-style: normal;
  }
  
  @font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700; /* Bold */
    font-style: normal;
  }  

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    --primary-color: #003973;
    --secondary-color: #041528;
    --text:#000;
    font-size: 17px;

  }
    
  body {
    font-family: 'Poppins', sans-serif;
    font-weight: 400; 
  }
  
  h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700; 
  }
  
  h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600; 
  }
  
  p {
    font-family: 'Poppins', sans-serif;
    font-weight: 500; 
  }
  
  a {
    text-decoration: none;
    color: var(--primary-color)
  }

  a[disabled="disabled"], a[disabled="disabled"]:hover, a[disabled="disabled"]:focus {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}
  
/* Main content styles */
.content {
  margin-left: 250px;  
  transition: margin-left 0.3s ease;
  padding: 50px;
}

/* Sidebar styles */
#sidebar {
  width: 250px;
  position: fixed;
  top: 0;
  left: 0;  
  height: 100%;
  background: var(--secondary-color);
  color: white;
  transition: left 0.3s ease;
  z-index: 1;
}

#sidebar ul li {
  padding: 15px;
  list-style: none;
}

/* Image menu  */
#sidebar img {
  width: 65%;
}

/* Link menu  */
#sidebar li a {
  color: #fff;
  font-weight: 500;
}

/* Nascondi il sottomenu per impostazione predefinita */
.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

/* Mostra il sottomenu quando l'elemento del menu principale è attivo */
#userMenu.active .submenu {
  max-height: 300px;
}

/* Hamburger menu styles */
.menu-icon .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 3px auto;
  background-color: #333;
}

/* Posiziona l'icona del menu in alto a destra e nascond su desktop */
.menu-icon {
  position: fixed;
  top: 15px;
  right: 15px;
  cursor: pointer;
  z-index: 100;
}


/*
.mobile-hide {
  display: none;
}
*/

/*END MENU*/

select {
  padding: 5px;
  border-radius: 5px;
}

/* Stile per la tabella */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 18px;
  text-align: left;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

/* Stile per l'header della tabella */
thead tr {
  background-color: var(--primary-color);
  color: white;
}

/* Stile per le celle della tabella */
td, th {
  border: 1px solid #dddddd;
  padding: 8px 16px;
}

/* Stile per le righe della tabella */
tbody tr {
  border-bottom: 1px solid #dddddd;
}

/* Stile per le righe della tabella al passaggio del mouse */
tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}

/* Stile per le righe della tabella al passaggio del mouse */
tbody tr:last-of-type {
  border-bottom: 2px solid var(--primary-color);
}

/* Stile per i link all'interno della tabella */
table a {
  color: #121b1d;
  text-decoration: none;
  font-weight: 500;
}

/* Stile per i link all'interno della tabella al passaggio del mouse */
table a:hover {
  text-decoration: underline;
}


.table-container-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between; /* Distribuisce uniformemente le tabelle all'interno del contenitore */
}

.table-container-stats table {
  width: 30%;
  margin-bottom: 20px; /* Aggiunge spazio tra le tabelle */
  border-collapse: collapse;
}

.delete{
  background: var(--primary-color);
  padding: 5px;
  border-radius: 10px;
  font-size: 12px;
  color: #fff;
}

.delete-attach{
  color: #fff;
  background: #d31313;
  font-size: 8px;
  border-radius: 5px;
  padding: 5px 7px;
}

.view-attach-icon{
  background: var(--primary-color);
  width: 20px!important;
  height: 16px!important;
  color: #fff;
  padding: 4px;
  border-radius: 5px;
}

.view-attach-icon path{
  fill:#fff;
}


/* Stile per il pulsante */
button, .button {
  background-color: var(--primary-color);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 700;
}

/* Stile per il pulsante al passaggio del mouse */
button:hover, .button:hover {
  background-color: var(--primary-color);
}

.button-success{
  background-color: #dff0d8;
  color: #3c763d;
  border: 1px solid #d6e9c6;
  padding: 12px 20px;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 700;
}

.button-payment-r, .button-payment-g{
  color:#fff;
  cursor: pointer;
  border-radius: 3px;
  font-size: 11px;
  padding: 4px;
}

.button-payment-r{
  background: var(--primary-color);
}

.button-payment-g{
  background: #3c763d;
}


input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
form select,
 #search {
  height: 35px;
  border: 1px solid #d3d3d3;
  border-radius: 5px;
}

input[type="submit"]{
  background-color: var(--primary-color);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 700;
}

textarea {
  width: 100%; 
  height: 150px;
  border: 1px solid #d3d3d3;
  border-radius: 5px;
}

.content form input,
.content form select,
.content form button {
  display: block;
  width: 100%;
  margin-bottom: 10px;
}


input[type="button"]{
  background-color: var(--primary-color);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 700;
}

input[type="button"]:hover {
  background-color: var(--primary-color);
}

.main-content form label {
  display: block;
  margin-bottom: 5px;
}

#search{
  width: 100%;
}


#searchResults {
  width: 100%;
  max-height: 400px; 
  overflow-y: auto;  
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.cliente {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.cliente:hover {
  background-color: #f2f2f2;
}


.pagination a{
  font-size:17px;
  padding:5px;
  color:var(--primary-color);
}

/* Stili per il form di login */


.content-index {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;  /* 100% dell'altezza della finestra del browser */
}

.login-container {
  width: 300px;
  margin: auto;
  padding-top: 50px;
}

.login-form {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
}

.login-form h2 {
  margin-bottom: 20px;
}

.input-container {
  margin-bottom: 15px;
}

.input-container input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.logo-container img{
 width: 60%;
}

/*AVVERTIMENTI*/
.message {
  font-size: 18px;
  margin-top: 20px;
  padding: 15px;
  border-radius: 5px;
  width: 100%;
  text-align: center;
}

.message.success {
  background-color: #dff0d8;
  color: #3c763d;
  border: 1px solid #d6e9c6;
}

.message.error {
  background-color: #f2dede;
  color: #a94442;
  border: 1px solid #ebccd1;
}

.allegati{
 margin-top: 20px;
}
.download-allegati{
  margin-top: 20px;
 }

 .status-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-block;
}

.legend {
  margin-top: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.status-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 10px;
}


/*STATI CONTRATTI*/

.stato-da_lavorare label {
  background:#d38513;
  padding:3px;
  border-radius:5px;
  font-size:14px;  
  color:#fff;  
}

.stato-ko label {
  background:#d31313;
  padding:3px 27px;
  border-radius:5px;
  font-size:14px;  
  color:#fff;  
}
.stato-completa label {
  background:#2dcd16;
  padding:3px;
  border-radius:5px;
  font-size:14px;  
  color:#fff;  
}



/* Media query to manage sidebar and menu icon on mobile */
@media screen and (max-width: 768px) {

  .content {
    margin-left: 0; 
  }

  #sidebar {
    left: -250px;  
  }

  .mobile-hide {
    display: block; 
  }
}