/* Define a família "Poppins", peso normal (400) */
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap; /* garante texto visível mesmo antes da fonte carregar */
}

/* Se tiver versões bold, italic, especifique também: */
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  font-family: 'Poppins';
  --radius: 0.5rem;
}

.smooth-scroll {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* fade max z-index do loader */
#fade {
  z-index: 999 !important;
}

/* Toast progress */
@keyframes toastEnter {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastExit {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(100%); }
}

.toast-enter {
  animation: toastEnter 0.4s ease-out forwards;
}
.toast-exit {
  animation: toastExit 0.3s ease-in forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Sidebar Styles */
.sidebar-collapsed {
  width: 6rem !important;
}

.sidebar-collapsed .sidebar-text {
  display: none;
}

.sidebar-collapsed .sidebar-title {
  display: none;
}

.sidebar-collapsed .nav-item {
  justify-content: center;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.sidebar-collapsed .nav-icon-container {
  margin-right: 0;
}

/* Navigation Item States */
.btn-active {
  background-color: hsl(222.2 47.4% 11.2%);
  color: hsl(210 40% 98%);
}
/* Navigation Item States */
.nav-item-active {
  background-color: hsl(222.2 47.4% 11.2%);
  color: hsl(210 40% 98%);
}

.nav-item-active-collapsed {
  background-color: hsl(222.2 47.4% 11.2%);
  color: hsl(210 40% 98%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* Table Styles */
.table-row:hover {
  background-color: hsl(210 40% 98%);
}

/* Notification Styles */
.notification-item {
  transition: all 0.2s ease-in-out;
}

.notification-item:hover {
  background-color: hsl(210 40% 96%);
}

.notification-item.unread {
  background-color: hsl(214.3 31.8% 96%);
  border-left: 3px solid hsl(222.2 47.4% 11.2%);
}

/* Modal Styles */
.modal-backdrop {
  backdrop-filter: blur(4px);
}

.modal-content {
  max-height: 90vh;
  overflow-y: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-content {
    margin: 1rem;
    max-width: calc(100vw - 2rem);
  }
}

/* Modal animate */
@keyframes fade-in {
  0% { opacity: 0; transform: scale(0.97) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.animate-fade-in {
  animation: fade-in 0.4s cubic-bezier(0.4,0,0.2,1);
}

@keyframes fade-out {
  0% { opacity: 1; transform: scale(1) translateY(0); }
  100% { opacity: 0; transform: scale(0.97) translateY(20px); }
}
.animate-fade-out {
  animation: fade-out 0.3s ease forwards;
}

/* Tracking notifications modal footer should stay in the normal document flow */
#trackingNotificationsManualFooter {
  position: static !important;
  inset: auto !important;
  z-index: 999 !important;
  height: auto !important;
}