/* ─── Base Reset & Body Styles ─── */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=DM+Mono:wght@400;500&display=swap");
@import "./variables.css";

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-width: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-ui);
  font-size: var(--base-font-size, 15px);
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  height: var(--viewport-stable-height);
  /* Block all body-level scroll — the only scroll container is .main-content */
  overflow: hidden;
  position: relative;
}

#app {
  height: 100%;
  /* overflow:clip — does NOT create a BFC scroll container, so wheel events
     propagate freely to the inner .main-content scrollable element. Body
     already handles outer overflow; #app only needs visual clipping. */
  overflow: clip;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* Remove body glow pseudo-elements — they cause visual noise */
body::before,
body::after {
  display: none;
}

/* Selection styling */
::selection {
  background: var(--accent-subtle);
  color: var(--text-bright);
}

code,
pre {
  font-family: var(--font-mono);
}


/* Universal custom scrollbars for the dark theme */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong, #334155);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim, #64748b);
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* Navbar and Material UI icon fixes */
.MuiTab-root svg, 
.MuiBottomNavigationAction-root svg, 
.more-menu-icon svg {
  width: 24px !important;
  height: 24px !important;
}

.MuiIconButton-root svg {
  width: 24px;
  height: 24px;
}

