html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body, var(--chakra-fonts-body, -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;
}

/* Apply heading font to all heading elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading, var(--chakra-fonts-heading, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif)) !important;
}

/* Ensure buttons and other elements use body font */
button, input, textarea, select {
  font-family: var(--font-body, var(--chakra-fonts-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif));
}

/* Dark mode root styles */
html.chakra-ui-dark,
.chakra-ui-dark body,
.chakra-ui-dark #root {
  background-color: #0f1115 !important;
  color: #e8eaf0 !important;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* Utility: hide scrollbar but keep scrollability */
.hide-scrollbar {
  scrollbar-width: none; /* Firefox */
}
.hide-scrollbar::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
