/* Custom styles for Catatan Uang Titipan App 
   Inspired by Figma Finance Management App UI/UX
*/

:root {
  --primary: #4C5BD4;
  --primary-gradient: linear-gradient(135deg, #6C72CB 0%, #4C5BD4 100%);
  --coral-gradient: linear-gradient(135deg, #FF8E8E 0%, #F56565 100%);
  --purple-gradient: linear-gradient(135deg, #8B97FF 0%, #6370E8 100%);
  --card-shadow: 0 10px 25px -5px rgba(50, 70, 110, 0.06), 0 8px 10px -6px rgba(50, 70, 110, 0.04);
}

body {
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  user-select: none;
  background-color: #F4F6FB;
  color: #1E293B;
}

/* Allow text selection in inputs and report tables */
input, textarea, select, .selectable-text {
  user-select: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #E2E8F0;
  border-radius: 4px;
}

/* Safe areas for mobile devices */
.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom, 16px);
}

/* Modal animation */
.modal-enter {
  animation: slideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Numeric Keypad styling for PIN */
.pin-btn {
  transition: all 0.12s ease;
}
.pin-btn:active {
  transform: scale(0.93);
  background-color: #EEF2F6;
}

/* Touch feedback */
.touch-btn:active {
  transform: scale(0.97);
  opacity: 0.92;
}

/* PRINT STYLES FOR PDF EXPORT */
@media print {
  body {
    background: white !important;
    color: black !important;
  }
  header, nav, #floating-add-btn, #pin-overlay, .no-print {
    display: none !important;
  }
  #view-laporan {
    display: block !important;
  }
  .print-only {
    display: block !important;
  }
  .card-print {
    border: 1px solid #E2E8F0 !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  table {
    width: 100% !important;
    border-collapse: collapse !important;
  }
  th, td {
    border: 1px solid #CBD5E1 !important;
    padding: 6px 10px !important;
    font-size: 11px !important;
  }
  th {
    background-color: #F8FAFC !important;
  }
}
