/* assets/css/custom.css */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --bg-dark: #0f172a;
  --card-dark: #1e293b;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

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

/* Safe Area for Mobile (iOS Notch & Android Nav) */
.safe-bottom {
  padding-bottom: env(safe-area-inset-bottom, 1rem);
}

/* Card hover animation */
.hover-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* Status Badges */
.badge-tersedia {
  background-color: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
.badge-terisi {
  background-color: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}
.badge-perbaikan {
  background-color: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}
.badge-lunas {
  background-color: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
.badge-belum_bayar {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.badge-menunggu_verifikasi {
  background-color: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

/* Mobile Bottom Navigation active indicator */
.nav-item-active {
  color: #4f46e5;
  font-weight: 700;
}

/* Smooth QR Code Box */
.qr-container {
  background: white;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: inline-block;
}

/* Responsive Table Scroll Container & Facility */
.table-scroll-container {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  position: relative;
}

.table-scroll-container::-webkit-scrollbar {
  height: 8px;
}
.table-scroll-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 9999px;
}
.table-scroll-container::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 9999px;
}
.table-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.table-scroll-container table {
  min-width: 720px;
}

.table-scroll-container.is-draggable {
  cursor: grab;
}
.table-scroll-container.is-dragging {
  cursor: grabbing !important;
  user-select: none;
}
