* {
  box-sizing: border-box;
}

body {
  background: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-ui);
  margin: 0;
  height: 100vh;
  overflow: hidden;
  font-size: 13px;
  letter-spacing: -0.01em;
}

#app-root {
  display: flex;
  height: 100%;
  border-top: 1px solid var(--border);
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px; /* Slightly wider to show track */
}

::-webkit-scrollbar-track {
  background: var(--bg-hover); /* Visible track */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--border-highlight); /* Lighter thumb */
  border-radius: 4px;
  border: 2px solid var(--bg-hover); /* Spacing effect */
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* Mobile Base Layout */
@media (max-width: 768px) {
  /* Layout Reset */
  #app-root {
    position: relative;
    overflow: hidden;
  }

  /* Overlay Backdrop (Optional but nice) */
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .sidebar.open + .sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}
