/* menù laterale */
.sidebar-icon {
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
}

.sidebar-icon img {
  display: block;
}

.sidebar-text {
  visibility: hidden;
  width: auto;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 5px 10px;
  border-radius: 6px;
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  white-space: nowrap;
}

/* Per hover su desktop */
.sidebar-icon:hover .sidebar-text {
  visibility: visible;
}

.firstbanner {
  background-color: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 15vh;
}

.firstbanner.backend {
  margin-bottom: 15px;
}

.firstbanner .login_name {
  /*background-color: white;*/
  color: black;
  padding: 5px;
  position: absolute;
  right: 5%;
}

.fa-sign-in {
  opacity: 30%;
}

#sidebar {
  padding-bottom: 2.5rem;
}

.footer {
  background-color: #dfdfdf;
  color: white;
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 2.5rem; /* Footer height */
}

#principal_container {
  padding: 0 4vw 1em 4vw;
  padding-bottom: 5rem; /* Footer height che però ho scelto di fare doppio per evitare che le cose si appiccichino*/
  width: 100%;
}

/* body {
    position: relative;
    min-height: 100vh;
  } */

#logo {
  max-width: 70vw;
  height: auto;
  width: auto;
  max-height: 15vh;
}

/* Stile del messaggio */
#success-message {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background-color: #4caf50;
  color: white !important;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 100;
}
#error-message {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background-color: red;
  color: white !important;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.notification-badge {
  background-color: red; /* Colore dello sfondo del badge */
  color: white; /* Colore del testo */
  padding: 3px 6px; /* Spaziatura interna */
  width: 20px; /* Larghezza del badge */
  height: 20px;
  font-size: 12px; /* Dimensione del testo */
  border-radius: 50%; /* Rende il badge circolare */
  position: absolute; /* Posizionamento assoluto */
  top: -12px; /* Sposta il badge verso l'alto rispetto al bordo del bottone */
  right: -10px; /* Sposta il badge verso destra rispetto al bordo del bottone */
  box-shadow: 0 0 3px #333; /* Aggiunge un'ombra per migliorare la visibilità sul bordo del bottone */
}
