/* Custom smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Base styles */
body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  color: #111827;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

/* Custom range slider styling for better UX */
input[type="range"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  height: 8px !important;
  background: #e5e7eb !important;
  border-radius: 8px !important;
  outline: none !important;
  cursor: pointer !important;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #dc2626;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #dc2626;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 0;
}

/* Focus states for accessibility */
input:focus,
select:focus,
button:focus {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

/* Remove number input spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* Loading animation for better UX */
.animate-fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Print styles - hide unnecessary elements when user prints */
@media print {
  nav,
  footer,
  button,
  .no-print {
    display: none !important;
  }

  body {
    color: #000000;
    background: #ffffff;
  }
}

/* Chart container */
#chart-container {
  position: relative;
  width: 100%;
  height: 400px;
}