/* Custom styles for Kedai Ndrojos - Sistem Informasi Manajemen Warung */

:root {
  --primary-red: #dc2626;
  --primary-crimson: #7f1d1d;
  --primary-orange: #f97316;
  --primary-orange-dark: #ea580c;
  --pure-white: #ffffff;
  --warm-white: #fffaf5;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: #fffaf5;
}

/* Custom scrollbar */
::-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;
}

/* Card hover transitions */
.hover-lift {
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

/* POS Product grid pulse on click */
.active-press:active {
  transform: scale(0.97);
}

/* Toast Notification Animation */
@keyframes slideInRight {
  from {
    transform: translateX(110%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.toast-enter {
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.toast-exit {
  animation: fadeOut 0.25s ease-out forwards;
}

/* Thermal POS Receipt Print Styles */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-receipt, #printable-receipt * {
    visibility: visible;
  }
  #printable-receipt {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 80mm;
    margin: 0;
    padding: 10px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    line-height: 1.3;
    color: #000;
    background: #fff;
  }
  .no-print {
    display: none !important;
  }
}

.receipt-font {
  font-family: 'Courier New', Courier, monospace;
}

/* Number display with monospace tabular figures */
.tabular-nums {
  font-variant-numeric: tabular-nums;
}
