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

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: #f0f0f0;
  border-bottom: 1px solid #ccc;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  z-index: 10;
  flex-wrap: wrap;
}

.toolbar-section {
  display: flex;
  align-items: center;
  gap: 6px;
}

.toolbar-section label {
  font-size: 13px;
}

.tool-button {
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #888;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}

.tool-button.active {
  background: #1976d2;
  color: white;
  border-color: #0d47a1;
}

#canvasContainer {
  position: absolute;
  top: 72px;
  bottom: 28px;
  left: 0;
  right: 0;
  background: #ddd;
}

#drawCanvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none; /* fontos: gesztuskezeléshez */
  background: #ffffff;
}

#statusbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: #f5f5f5;
  border-top: 1px solid #ccc;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
}

#statusLeft, #statusRight {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

