:root {
  --main-font: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* applicalo globalmente */
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
strong,
em,
a,
li,
button,
input,
select,
textarea,
.nav-link,
.btn,
.form-control {
  font-family: var(--main-font) !important;
}


.sidebar {
  width: 215px;
  height: 100vh;
  background-color: #1d1d1d;
  color: #ffffff;
  z-index: 3;
  font-size: 14px;
}


.sidebar a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.sidebar a:hover {
  background-color: #a31c1c;
  color: rgb(255, 255, 255);
}

.navbar {
  background-color: #fcfcfc;
  color: rgb(184, 184, 184);
}

.main-content {
  height: 50px;
}

.table {
  font-size: 10px;
  border-color: #f2f2f2;
}

/* Arrotonda gli angoli della tabella */
table.rounded-corners {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

/* Intestazione in alto */
table.rounded-corners thead th:first-child {
  border-top-left-radius: 10px;
}

table.rounded-corners thead th:last-child {
  border-top-right-radius: 10px;
}

/* Ultima riga in basso */
table.rounded-corners tbody tr:last-child td:first-child {
  border-bottom-left-radius: 10px;
}

table.rounded-corners tbody tr:last-child td:last-child {
  border-bottom-right-radius: 10px;
}

.chart-container {
  position: relative;
  width: 380px;
  height: 200px;
}

.container-title {
  padding-left: 230px;
}

.dropdown-toggle-icon {
  background-color: #343a40;
  color: white;
}

.list-group-item {
  background-color: #f8f9fa;
  color: black;
}

.breadcrumb-nav {
  font-size: 11px;
}

.content-title {
  position: fixed;
  top: 50px;
}



.breadcrumb-item a {
  color: #4d555e;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: #a31c1c;
  text-decoration: none;
}

.breadcrumb-item a:active {
  color: #4d555e;
  text-decoration: none;
}

.breadcrumb-item.active {
  color: #a31c1c;
}

.dropdown-toggle {
  background-color: #eeeeee;
  color: rgb(22, 22, 22);
  border: 0px;
}

.pizza-icon a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: transparent;
  transition: background-color 0.3s;
  padding: 0;
  border-radius: 50%;
}

.pizza-icon a:hover {
  background-color: #cecece;
}

.orologio-icon a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: transparent;
  transition: background-color 0.3s;
  padding: 0;
  border-radius: 50%;
}

.orologio-icon a:hover {
  background-color: #cecece;
}

.chart-icon a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: transparent;
  transition: background-color 0.3s;
  padding: 0;
  border-radius: 50%;
}

.chart-icon a:hover {
  background-color: #cecece;

}

.dashboard-color {
  background-color: #a31c1c;
  height: 250px;
}

.btn-account {
  background-color: #fcfcfc;
}

.notifiche {
  background-color: #9c9c9c;
  color: #fcfcfc;
}

.notifiche:hover {
  background-color: black;
}

.ingranaggio-icon a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: transparent;
  transition: background-color 0.3s;
  padding: 0;
  border-radius: 50%;
}

.ingranaggio-icon a:hover {
  background-color: #cecece;
}

.notifiche-icon a {
  transition: background-color 0.3s;
  padding: 10px 10px;
  border-radius: 999px;
  text-decoration: none;
}

.notifiche-icon i {
  color: #9c9c9c;
}

.notifiche-icon a:hover {
  background-color: #cecece;
  color: black;
}

.fc-daygrid-event {
  background-color: #a31c1c !important;
  color: #ffffff !important;
  font-weight: 500;
  margin: 5px;
  border-radius: 4px;
  padding: 2px;
  border: none;
}

.fc-more-link {
  color: #000000;
  font-weight: 700;
}

.fc-toolbar-title {
  text-transform: capitalize;
}

/* Bottoni custom */
.fc .fc-button {
  background-color: #cecece;
  border: none;
  color: #000000;
  border-radius: 6px;
  padding: 6px 12px;
  display: inline-block;
  text-align: start;
  margin-left: 10px;
}

.fc .fc-button:hover {
  background-color: #000000;
  color: white;
}

/* Bottoni attivi (es. "oggi") */
.fc .fc-button-active {
  background-color: #000000;
  color: rgb(255, 255, 255);
}

/* Celle dei giorni */
.fc-daygrid-day-frame {
  border: #dee2e6;
}

.fc .fc-col-header-cell-cushion {
  color: #818181;
  font-weight: 500;
  padding: 10px;
  display: inline-block;
  width: 100%;
  text-decoration: none;
  text-align: end;
  text-transform: capitalize;
}

/* Numeri dei giorni */
.fc-daygrid-day-number {
  color: #000000;
  font-weight: 500;
  font-size: 18px;
  text-decoration: none;
}

.fc .fc-today-button {
  background-color: #cecece !important;
  color: rgb(0, 0, 0) !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 6px 12px !important;
  font-weight: 500 !important;
  transition: background-color 0.3s ease;
}

.fc .fc-today-button:hover {
  background-color: #000000 !important;
  color: white !important;
}

.fc .fc-daygrid-row,
.fc .fc-row.fc-daygrid-week {
  min-height: 90px;
}

.fc-header-toolbar {
  background-color: transparent;
  padding: 10px 15px;
  display: flex;
  border-radius: 2%;
  justify-content: flex-end;
  font-size: 12px;
  flex-wrap: wrap;
  z-index: 2;
  margin-left: auto;
  margin-right: 5px;
  /* Spinge a destra */
  margin-bottom: 0 !important;
  margin-top: 5px !important;
  /* Elimina margine sotto */
}

.fc-header-toolbar .fc-toolbar-chunk {
  display: flex;
  align-items: center;
}

.fc .fc-toolbar-title {
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: capitalize;
  font-size: 16px;
}

.fc-button {
  font-size: 0.875rem;
  padding: 5px 10px;
}

.fc-daygrid-day.fc-day-today {
  background-color: transparent !important;
}

.fc-day-today .fc-daygrid-day-number {
  background-color: #000;
  color: #fff;
  padding: 0px 8px;
  margin-top: 4px;
  border-radius: 10%;
  display: inline-block;
}

.fc .fc-list-day-text {
  color: #000000;
  text-decoration: none;
  text-transform: capitalize;
}

.fc .fc-list-event-dot {
  border-color: transparent;
}

.fc .fc-list-day-side-text {
  color: #000000;
  text-decoration: none;
  text-transform: capitalize;
}

.fc .fc-list-event-time {
  color: #000000;
  font-weight: 600;
  text-decoration: none;
  text-transform: capitalize;
}

.fc .fc-list-event-title {
  padding: 6px 12px;
  background-color: #a31c1c;
  color: #ffffff;
  font-weight: 700;
}

.notifica :hover {
  background-color: #dddddd;
}

.pagination .page-item.active .page-link.active {
  background-color: #a31c1c;
  color: #ffffff;
  border: 0px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.pagination .page-item.disabled {
  background-color: #000000;
  color: #ffffff;
  border: 0px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.pagination .page-item .page-link {
  color: rgb(19, 19, 19);
  background-color: #ffffff;
}

.pagination .page-item:hover {
  background-color: #a31c1c;
  color: rgb(255, 255, 255);
}

.paginaton .page-link:hover {
  background-color: #a31c1c;
  color: rgb(255, 255, 255);
}

.select2-container--default .select2-selection--single {
  height: calc(2.375rem);
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  line-height: 1.5;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 1.5;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus {
  background-color: white !important;
  color: black !important;
}

#dropdownNotifiche:hover i {
  color: black !important;
}

#dropdownNotifiche:hover .notifiche {
  background-color: black !important;
  color: white;
}

.icon-header i {
  color: #9c9c9c !important;
}

.icon-header:hover i {
  color: black !important;
}

.sezione-info:hover {
  background-color: #dddddd;
  transition: background-color 0.3s ease;
}

.nav-item.active .nav-link {
  background-color: #a31c1c;
  color: #ffffff !important;
  font-weight: bold;
}

.chart-icon.active a {
  background-color: #a31c1c;
  color: #ffffff !important;
  font-weight: bold;
}

.chart-icon.active i {
  color: #ffffff !important;
  font-weight: bold;
}

.orologio-icon.active a {
  background-color: #a31c1c;
  color: #ffffff !important;
  font-weight: bold;
}

.orologio-icon.active i {
  color: #ffffff !important;
  font-weight: bold;
}

.pizza-icon.active a {
  background-color: #a31c1c;
  color: #ffffff !important;
  font-weight: bold;
}

.pizza-icon.active i {
  color: #ffffff !important;
  font-weight: bold;
}

.ingranaggio-icon.active a {
  background-color: #a31c1c;
  color: #ffffff !important;
  font-weight: bold;
}

.ingranaggio-icon.active i {
  color: #ffffff !important;
  font-weight: bold;
}

@keyframes slideInUp {
  0% {
    transform: translateY(50px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.slide-in-up {
  animation: slideInUp 0.7s ease-out both;
}

/* Staggered delays */
.slide-in-up.delay-1 {
  animation-delay: 0.2s;
}

.slide-in-up.delay-2 {
  animation-delay: 0.4s;
}

.slide-in-up.delay-3 {
  animation-delay: 0.6s;
}

/* Aggiungi al tuo CSS */
#globalSpinner {
  transition: opacity 0.4s ease;
}

#globalSpinner.hidden {
  opacity: 0;
  pointer-events: none;
}

.box-action {
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

.box-action:hover {
  background-color: #111111;
}

.box-action:hover a svg {
  fill: #ffffff;
  transform: scale(1.1);
  transition: fill 0.3s ease, transform 0.3s ease;
}

.box-action:hover .vr {
  background-color: #ffffff;
  transition: background-color 0.3s ease;
}


.ql-formats select {
  color: white !important;
}


/* Se vuoi cambiare anche il colore di sfondo al passaggio del mouse */
.ql-snow .ql-toolbar button:hover svg {
  fill: #ffc211 !important;
}

/* Cambia il colore dello switch quando è attivo */
.form-check-input:checked {
  background-color: #a31c1c;
  border-color: #a31c1c;
}

.form-control:focus {
  border-color: #a31c1c7a;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* --- animazione pop-in --- */
@keyframes popIn {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(.98);
  }

  40% {
    transform: translateY(0) scale(1.12);
  }

  70% {
    transform: translateY(0) scale(.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* stato iniziale: invisibile */
.pop-entry {
  opacity: 0;
  transform: translateY(12px) scale(.98);
  will-change: opacity, transform;
}

/* quando visibile, parte l'animazione; animation-fill-mode mantiene lo stato finale */
.pop-entry.visible {
  animation-name: popIn;
  animation-duration: 520ms;
  animation-timing-function: cubic-bezier(.2, .8, .2, 1);
  animation-fill-mode: both;
}

/* Classe base: applica al div che vuoi "zoomare" */
.hover-zoom {
  transition: transform 350ms cubic-bezier(.2, .8, .2, 1), box-shadow 350ms cubic-bezier(.2, .8, .2, 1);
  transform-origin: center center;
  will-change: transform;
  overflow: hidden;
}

/* Stato hover: leggera ingrandita e ombra */
.hover-zoom:hover,
.hover-zoom:focus {
  transform: scale(1.04);
  box-shadow: 0 12px 28px rgba(20, 20, 20, 0.12);
  z-index: 2;
}

.hover-zoom.slow {
  transition-duration: 600ms;
}

.hover-zoom.slow:hover {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .hover-zoom,
  .hover-zoom:hover,
  .hover-zoom:focus {
    transition: none;
    transform: none;
    box-shadow: none;
  }
}

#map {
  height: 88vh;
  width: 100%;
}

.lista-info {
  font-size: 16px;
}

.notifiche-scadenze {
  padding-left: 230px;
}

.statistiche-anteprima {
  font-size: 11px;
  margin-left: 8px;
  margin-right: 8px;
}

.titolo-ragione {
  font-size: 11px;
}

.ragione-sociale {
  font-size: 9px;
}

.organig {
  padding-left: 215px;
}


#map {
  padding-left: 210px;
  padding-right: 0px;
}

.logo-file {
  font-size: 32px;
}

.table {
  font-size: 10px;
}

.login-sfondo {
  width: 600px;
}

@media (max-width: 768px) {
  .sidebar {
    width: 50px;
  }

  .titolo-sidebar {
    display: none;
  }

  .navbar-brand {
    display: none;
  }

  .dashboard-color {
    padding-left: 60px;
    height: 80px;
  }

  .titolo-dashboard {
    font-size: 21px;
  }

  .lista-info {
    font-size: 10px;
    display: none;
  }

  .sezione-infodoc {
    display: none;
  }

  .immagine-dashboard {
    display: none;
  }

  .notifiche-scadenze {
    padding-left: 60px;
    padding-right: 10px;
  }

  .breadcrumb-nav {
    padding-left: 60px;
    margin-top: 60px;
    font-size: 8px;
  }

  .title {
    padding-left: 60px;
  }

  .tabella-aziende {
    padding-left: 60px;
  }

  .numeri-pagina {
    display: none;
  }

  .colonna-inattiva {
    display: none;
  }

  .statistiche-anteprima {
    font-size: 8px;
    margin-left: 2px;
    margin-right: 2px;
  }

  .table {
    font-size: 8px;
  }

  .titolo-ragione {
    font-size: 8px;
  }

  .ragione-sociale {
    font-size: 8px;
  }


  .card-contatti {
    display: none;
  }

  .organig {
    padding-left: 50px;
  }

  .creazione-azienda {
    margin-left: 60px;
    margin-right: 10px;
  }

  .logo-file {
    font-size: 28px;
  }

  .login-sfondo {
    width: 100%;
  }
}

.card-table {
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 0px;
  padding-right: 0px;
  border: none;
  border-top: solid 1px;
  border-color: #fafafa;
}

.card-form {
  background-color: #a31c1c;
}

.table-group-divider {
  border-top-color: #f1f1f1;
}

.fc-daygrid-event-harness {
  margin: 5px;
}

.ql-picker-options {
  color: #1d1d1d;
  border-radius: 10%;
}


#main-content {
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
