/* =========================================================================
   QistBazaar - Shared Enterprise Styles
   ========================================================================= */

/* Google Inter Font smoothing */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Custom Sleek Scrollbars (Light & Dark) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
.dark ::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
.dark ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Utility to hide scrollbar on scrollable lanes */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Range input styling */
input[type=range] {
  accent-color: #16a34a;
}

/* Fade animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Smooth layout transitions for sidebar collapses & theme toggles */
.sidebar-transition {
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content-transition {
  transition: padding-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sticky table header enhancement */
th.sticky {
  position: sticky;
  top: 0;
  z-index: 10;
}
