/*
  base.css — reset, layout, typography.
  No component-specific styles here.
*/
@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&display=swap');

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

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
}

button {
  font-family: inherit;
  font-size: inherit;
}

/* ── App layout ─────────────────────────────────────── */
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.workspace {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ── Canvas area ────────────────────────────────────── */
#canvas-area {
  flex: 1;
  position: relative;
  overflow: hidden;
  background-color: var(--canvas-bg);
  background-image:
    radial-gradient(circle at 1px 1px, var(--grid-color) 1px, transparent 0);
  background-size: 28px 28px;
}

#konva-container {
  width: 100%;
  height: 100%;
}

/* ── Custom scrollbars ──────────────────────────────── */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }
