/* Minimal CSS for React app - Tailwind handles most styling */

/* Cross-platform normalization for Mac Retina vs Windows displays */
html {
  /* Prevent automatic text size adjustment */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Normalize font rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Ensure consistent scaling across devices */
  font-size: 16px; /* Explicit base font size */
  /* Enable smooth scrolling */
  scroll-behavior: smooth;
}

/* Handle high DPI displays better */
@media screen and (-webkit-min-device-pixel-ratio: 1.25),
       screen and (min-resolution: 120dpi) {
  html {
    /* Slightly reduce base font size on high DPI to compensate */
    font-size: 15px;
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Normalize text rendering */
  text-rendering: optimizeLegibility;
  /* Explicit font size to prevent platform differences */
  font-size: 16px;
}

#root {
  width: 100%;
  height: 100vh;
}

/* Custom scrollbar styling */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #0f172a;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Recharts container fix */
.recharts-wrapper {
  width: 100% !important;
  height: 100% !important;
}

.recharts-surface {
  width: 100% !important;
  height: 100% !important;
}
