/* CollectionSarthi Custom Styles & Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: var(--font-sans);
  background-color: #f8fafc;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

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

/* Financial Badges */
.badge-risk-low {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.badge-risk-medium {
  background-color: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}
.badge-risk-high {
  background-color: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}
.badge-risk-critical {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.badge-status-paid {
  background-color: #ecfdf5;
  color: #047857;
}
.badge-status-partial {
  background-color: #f0f9ff;
  color: #0369a1;
}
.badge-status-pending {
  background-color: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}
.badge-status-overdue {
  background-color: #fef2f2;
  color: #b91c1c;
}

/* Card Glow and Shadows */
.card-hover {
  transition: all 0.2s ease-in-out;
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

/* Skeleton Loading Pulse */
.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.375rem;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Modal and Drawer transitions */
.drawer-backdrop {
  transition: opacity 0.25s ease-out;
}
.drawer-content {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Print Styling for Invoices / Ledgers / Statements */
@media print {
  aside, header, #toast-container, .no-print {
    display: none !important;
  }
  main {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
}
