/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  min-width: 1200px;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-on-surface);
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;
}


/* === Scrollbar — overlay, скрывается, появляется при скролле === */
.sidebar,
.main-content {
  overflow-y: auto;
}

::-webkit-scrollbar {
  width: 6px;
  background: transparent;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 3px;
  transition: background 0.3s;
}
.scrolling::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
}
.scrolling::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.25);
}
[data-theme="dark"] .scrolling::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
}
[data-theme="dark"] .scrolling::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.25);
}

