/* Stili personalizzati per l'app CarWash */

/* Fix per pulsante login che diventa invisibile o perde lo stile */
.gradient-highlight {
  color: #FFFFFF !important;
  background-image: linear-gradient(to bottom, #5D9CEC, #4A89DC) !important;
}

/* Fix per icone nelle select */
.form-custom.form-icon i {
  z-index: 5 !important;
  pointer-events: none !important;
}

/* Fix per modali che non si mostrano correttamente */
.modal {
  z-index: 99999 !important;
}

.modal-fix {
  z-index: 99999 !important;
}

.modal-backdrop {
  z-index: 99998 !important;
  opacity: 0.5 !important;
}

.modal-content {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
  border: none !important;
  max-height: 90vh;
  overflow-y: auto;
}

/* Assicurarsi che i modali siano sempre sopra a qualsiasi altro elemento */
.modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding-left: 0 !important;
}

.modal-dialog {
  margin: 0.75rem auto;
  max-width: 95%;
  width: 500px;
  position: relative;
  z-index: 100000 !important;
}

/* Assicura che il pulsante del menu sia cliccabile */
.edit-reservation-btn {
  position: relative;
  z-index: 50;
  background: none;
  border: none;
  padding: 8px;
  margin: 0;
  cursor: pointer;
  font-size: 20px;
}

/* Fix per il container dei modali */
#modals-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

/* Stili per le prenotazioni card */
.card .content {
  padding: 15px !important;
}

/* Fix per troncare testi lunghi con ... */
.line-truncate-1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
}

/* Stile per i divider nei modal */
.divider {
  height: 1px;
  background-color: rgba(0,0,0,0.05);
  margin: 15px 0;
}

/* Miglioramenti ai modal */
.modal-header.gradient-highlight {
  background-image: linear-gradient(to bottom, #5D9CEC, #4A89DC) !important;
  padding: 15px 20px;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 15px 20px;
  border-top: none;
}

/* Miglioramenti per i badge */
.badge {
  font-size: 10px;
  font-weight: 500;
  padding: 5px 10px;
}

/* Migliora aspetto dei bottoni nei modal */
.btn-full {
  width: 100%;
  text-align: center;
  padding: 10px 16px !important;
}

/* Stili per le liste nei modal */
.list-group.list-custom .list-group-item {
  padding: 10px 15px;
  border-color: rgba(0,0,0,0.05);
}

.list-group.list-custom .list-group-item:last-child {
  border-bottom: none;
}

/* Icone Tabler */
.ti {
  font-size: 18px;
}

/* Tronca testo lungo con puntini */
.line-truncate-1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Logo nell'header */
.header-logo {
  height: 36px;
  max-width: 160px;
  vertical-align: middle;
  object-fit: contain;
}

.header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Stile comune per icone */
.stat-item .stat-icon, .icon-xs, .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 15px;
}

/* Dimensioni per SVG nelle icone */
.stat-item .stat-icon svg, .stat-icon svg, .icon-xs svg {
  width: 22px !important;
  height: 22px !important;
  display: block !important;
}

/* Stile uniforme per i testi */
.list-group-item div strong {
  font-size: 15px;
  color: #1f1f1f;
  font-weight: 500 !important;
}

/* Stile per le icone nei badge */
.rounded-s {
  border-radius: 8px !important;
}

/* Bottom navbar icons */
.bi-custom {
  font-size: 16px;
  display: block !important;
  margin: 0 auto !important;
  width: 22px !important;
  height: 22px !important;
}

/* Stile per footer-bar e active-nav (Basato su DUO/component-footers.html - Classic Selected Icon) */
/* Stile complessivo per footer-bar */
#footer-bar {
  position: fixed;
  bottom: 0px;
  left: 0px;
  right: 0px;
  z-index: 98;
  background-color: rgba(249, 249, 249, 0.98);
  box-shadow: 0 -5px 10px 0 rgba(0, 0, 0, 0.06) !important;
  min-height: 60px;
  display: flex;
  text-align: center;
  transition: all 0.3s ease;
}
#footer-bar a span {
  position: relative;
  z-index: 2;
  display: block;
  font-size: 10px;
  font-weight: 500;
  margin-top: -3px;
  opacity: 0.7;
}

#footer-bar a.active-nav {
  color: #1f1f1f;
}

#footer-bar a.active-nav span {
  padding-top: 22px;
  font-weight: 600 !important;
  color: #1f1f1f !important;
  opacity: 1 !important;
}

#footer-bar {
  will-change: contents;
}

#footer-bar a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  text-align: center;
  padding: 5px 5px 0px 5px;
  will-change: transform, opacity;
}

#footer-bar a .bi-custom {
  transition: all 0.3s ease !important;
  width: 22px !important;
  height: 22px !important;
  will-change: transform, filter;
}

#footer-bar a.active-nav .bi-custom {
  position: absolute !important;
  width: 48px !important;
  height: 48px !important;
  left: 50%;
  margin-left: -24px !important;
  transform: translateY(-28px);
  border-radius: 22px;
  line-height: 48px;
  background-image: linear-gradient(to bottom, #5D9CEC, #4A89DC) !important;
  color: #FFF !important;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(93, 156, 236, 0.5) !important;
  transition: all 0.3s ease !important;
}

#footer-bar a.active-nav .bi-custom::after {
  transform: scale(0.8) translateY(5px) translateZ(0px);
  filter: blur(12px);
  -webkit-filter: blur(12px);
  content: "";
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background: inherit;
  z-index: -1;
  opacity: 0.7;
  pointer-events: none;
  border-radius: 22px;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
}