/* Carica il font 'Inter' da Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

/* Impostazioni Globali del Font */
body, button, input, textarea, .btn, h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
}

/* Stile per l'header */
.header {
  width: calc(100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 25px; /* Aumenta il padding in alto e in basso */
  background-color: white;
  box-shadow: 0px 0px 16px 4px rgba(65, 6, 255, 0.25);
  border-radius: 0 0 15px 15px; /* Arrotonda solo gli angoli inferiori */
  padding-left: clamp(2.5%, 20px, 5%);
  padding-right: clamp(2.5%, 20px, 5%);
}

.logo-container {
  display: flex;
  align-items: center;
  margin-right: 35px;
}

.logo-icon-container {
  display: grid;
  place-items: center;
  margin-right: 5px;
  width: 35px;
  transition: opacity 0.15s ease-in-out;
}

.logo-mando-text {
  font-family: 'Inter', sans-serif;
  font-weight: bold;
  font-size: 22pt;
  color: black;
  transition: color 0.15s ease-in-out, opacity 0.15s ease-in-out;
}

.header .left-group {
  display: flex;
  align-items: center;
}

.header .logo {
  margin-right: 30px;
  display: inline-block;
}

.header .menu {
  display: inline-block;
}

.header .menu ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.header .menu ul li {
  margin-right: 10px;
}

.header .menu ul li:last-child {
  margin-right: 0;
}

.username {
  font-family: 'Inter', sans-serif;
  font-size: 0.95em;
}

.header .menu-btn {
  padding: 6px 12px;
  background-color: white;
  color: #4106FF;
  border: 2px solid #4106FF;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.15s ease-in, color 0.15s ease-in;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  font-weight: 500;
}

.header .menu-btn i.material-icons {
  margin-right: 8px;
  font-size: 1em;
  color: #4106FF;
}

.header .menu-btn:hover {
  background-color: #4106FF;
  color: white;
}

.header .menu-btn:hover i.material-icons {
  color: white;
}

.header .menu-btn.users {
  color: #4106FF;
  background-color: white;
  border-color: #4106FF;
}

.header .menu-btn.users:hover {
  background-color: #4106FF;
  color: white;
}

.header .menu-btn.users:hover i.material-icons {
  color: white;
}

.header .menu-btn.intermediaries {
  color: #4106FF;
  background-color: white;
  border-color: #4106FF;
}

.header .menu-btn.intermediaries:hover {
  background-color: #4106FF;
  color: white;
}

.header .menu-btn.intermediaries:hover i.material-icons {
  color: white;
}

.header .user-area {
  display: flex;
  align-items: center;
}

.header .username {
  margin-right: 10px;
}

/* Stato active per i bottoni */
.header .menu-btn.active {
    background-color: #4106FF;
    color: white;
    border-color: #4106FF;
}

    .header .menu-btn.active i.material-icons {
        color: white;
    }


.header .logout-btn {
  padding: 6px 12px;
  background-color: #4106FF; /* Colore di sfondo viola */
  color: white; /* Testo e icona bianchi */
  border: 2px solid #4106FF;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  font-family: 'Inter', sans-serif;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.15s ease-in, color 0.15s ease-in;
  display: inline-flex;
  align-items: center; /* Allinea verticalmente l'icona e il testo */
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
}

.header .logout-btn i.material-icons {
  margin-right: 8px;
  font-size: 1em;
  color: white; /* Colore dell'icona bianca */
}

.header .logout-btn:hover {
  background-color: white;
  color: #4106FF; /* Testo e icona viola */
}

.header .logout-btn:hover i.material-icons {
  color: #4106FF; /* Colore dell'icona viola */
}

.hamburger-btn {
  padding: 6px 20px;
  background-color: white;
  color: #4106FF;
  border: 2px solid #4106FF;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  border-radius: 24px;
  cursor: pointer;
  transition: background-color 0.15s ease-in, color 0.15s ease-in;
}

.hamburger-btn:hover, .hamburger-btn[aria-expanded="true"] {
  background-color: #4106FF;
  color: white;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991px) {
  .header {
    padding-left: clamp(2.5%, 15px, 5%);
    padding-right: clamp(2.5%, 15px, 5%);
  }
  
  .logo-mando-text {
    font-size: 20pt; /* Dimensione del testo ridotta */
  }
  
  .logo-img {
    width: 30px; /* Imposta la larghezza desiderata del logo */
  }

  /* Applica gli stili della login-card al modal-content del menù pop-up */
  .modal-dialog {
    margin: 0 auto; /* Mantiene il modal centrato */
    margin-top: -5vh; /* Ajusta questo a seconda delle tue esigenze */
    width: calc(100% - 20px); /* Riduce la larghezza del modal e aggiunge margini laterali di 10px da ogni lato */
  }

    .modal .modal-content {
        border-radius: 20px !important;
    }


  .modal-content {
    padding: 2rem;
    background: #FFFFFF;
    box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    transition: box-shadow 0.5s ease, padding 0.3s ease;
  }
  #navbarMobileModalLabel {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px; /* Corrisponde approssimativamente a 14pt */
    font-weight: bold; /* Grassetto */
    width: 100%; /* Assicura che il label sia largo quanto il suo contenitore */
  }
}

.modal-header {
    box-shadow: none;
    border-bottom: none;
}

/* Stili per i bottoni del menù mobile */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 80%;
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Inter', sans-serif;
    padding: 10px 15px;
    font-size: 1.1em;
    font-family: 'Inter', sans-serif;
    background-color: white;
    color: #4106FF;
    border: 2px solid #4106FF;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    text-align: left;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.15s ease-in, color 0.15s ease-in;
    text-decoration: none;
    white-space: nowrap;
}

.mobile-menu-btn i.material-icons {
    margin-right: 10px;
    font-size: 24px;
}

/* Rimuovi sottolineatura durante hover e focus */
.mobile-menu-btn:hover, .mobile-menu-btn:focus,
.mobile-menu-btn.users:hover, .mobile-menu-btn.users:focus,
.mobile-menu-btn.intermediaries:hover, .mobile-menu-btn.intermediaries:focus {
    background-color: #4106FF;
    color: white;
    text-decoration: none;
}

.mobile-menu-btn:hover i.material-icons, .mobile-menu-btn:focus i.material-icons,
.mobile-menu-btn.users:hover i.material-icons, .mobile-menu-btn.users:focus i.material-icons,
.mobile-menu-btn.intermediaries:hover i.material-icons, .mobile-menu-btn.intermediaries:focus i.material-icons {
    color: white;
}

.mobile-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%; /* Larghezza più stretta */
    margin: 15px auto;
    font-family: 'Inter', sans-serif;
    padding: 10px 15px;
    font-size: 1em;
    background-color: #4106FF; /* Colore di sfondo viola */
    color: white; /* Testo bianco */
    border: 2px solid #4106FF;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.15s ease-in, color 0.15s ease-in;
    text-decoration: none;
    white-space: nowrap;
    font-weight: bold; /* Testo in grassetto */
}

    .mobile-logout-btn .material-symbols-outlined {
        margin-right: 8px;
        font-size: 22px;
        color: white; /* Icona bianca */
    }

    .mobile-logout-btn:hover, .mobile-logout-btn:focus {
        background-color: white; /* Sfondo bianco in hover */
        color: #4106FF; /* Testo viola in hover */
        text-decoration: none;
    }

    .mobile-logout-btn:hover .material-symbols-outlined, .mobile-logout-btn:focus .material-symbols-outlined {
        color: #4106FF; /* Icona viola in hover */
    }
