.editor-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  align-items: start;
}

@media (max-width: 800px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }
}

.editor-main {
  background: #f7f7fb;
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  position: relative;
}

.canvas-wrapper {
  position: relative;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAOwgAADsIBFShKgAAAABh0RVh0U29mdHdhcmUAcGFpbnQubmV0IDQuMC41ZY743QAAABVJREFUOE9jBP7///9/BmoFjGoAAgA+UQ/j7986SAAAAABJRU5ErkJggg=='); /* Checkered pattern */
  line-height: 0; /* remove bottom gap */
  cursor: crosshair;
}

canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

.canvas-overlay {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.zoom-controls {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    justify-content: center;
}

/* Sidebar Toggle */
.toggle-group {
    display: flex;
    background: #f0f0f5;
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 5px;
}

.toggle-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px;
    border-radius: 6px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}

.toggle-btn.active {
    background: #fff;
    color: #6a4cff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.slider {
    width: 100%;
    margin-top: 5px;
}

.full-width { width: 100%; }
.separator {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}
