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

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --color-primary: #4f46e5;
  --color-primary-hover: #4338ca;
}

* {
  box-sizing: border-box;
}

html, body {
  font-family: var(--font-sans);
  background-color: #f8fafc;
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  height: 100%;
}

[x-cloak] {
  display: none !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Smooth Focus Rings */
input:focus, select:focus, textarea:focus, button:focus-visible {
  outline: none;
}

/* Custom animations */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-shimmer {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite ease-in-out;
}

/* Micro interaction badges */
.badge-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  margin-right: 6px;
}

/* Modal transitions */
.modal-backdrop {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Apexcharts custom styling for modern look */
.apexcharts-tooltip {
  background: #0f172a !important;
  color: #f8fafc !important;
  border: 1px solid #1e293b !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1) !important;
  font-family: var(--font-sans) !important;
}

.apexcharts-tooltip-title {
  background: #1e293b !important;
  border-bottom: 1px solid #334155 !important;
  font-weight: 600 !important;
  color: #f1f5f9 !important;
}

.apexcharts-xaxistooltip {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-radius: 6px !important;
  border: 1px solid #334155 !important;
}
