/* Custom Styles & Animation for Household Expense Dashboard */

/* Custom smooth scroll and scrollbar */
html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Modal Transition */
#itemModal, #lineSummaryModal {
  transition: opacity 0.2s ease-in-out;
}

/* Badge and Table Row hover styling */
tr {
  transition: background-color 0.15s ease;
}

/* Toast animation */
.toast-visible {
  transform: translateY(0) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Card hover animation */
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

/* Printable / Image Export Optimizations */
@media print {
  header, footer, button, .no-print {
    display: none !important;
  }
  body {
    background: white !important;
  }
}
