* { box-sizing: border-box; }
html, body { width: 100vw; height: 100vh; margin: 0; padding: 0; overflow: hidden; }
#app { display: flex; height: 100vh; width: 100vw; }
#working-area {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  background: #f5f5f5;
  position: relative;
  overflow: hidden;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#sidebar {
  flex: 0 0 320px;
  max-width: 320px;
  background: #fff;
  border-left: 1px solid #ccc;
  box-shadow: -2px 0 8px rgba(0,0,0,0.04);
  padding: 24px 16px;
  height: 100vh;
  overflow-y: auto;
  z-index: 10;
}
#zoom-wrapper {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  transition: box-shadow 0.25s;
}
#dashboard-canvas {
  display: block;
}
#components-layer {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  /* These will be set via JS for size and centering */
}
.item {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  text-align: center;
  background: #007bff;
  cursor: move;
  user-select: none;
  box-shadow: 0 1px 6px rgba(0,0,0,0.11);
  border: 2px solid #444;
  transition: box-shadow 0.12s;
  position: absolute;
  pointer-events: auto;
}
.item.circle { border-radius: 50%; }
.item.rect   { border-radius: 8px; }

.item-label {
  width: 100%;
  text-align: center;
  pointer-events: none;
  padding: 10px 0;
}
.delete-x {
  display: none;
  position: absolute;
  top: 2px;
  right: 5px;
  color: #fff;
  background: #c22;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 18px;
  text-align: center;
  line-height: 19px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}
.delete-x:hover {
  background: #e44;
}
button { cursor: pointer; }
#zoom-tools {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 11;
}
#zoom-tools button { margin-right: 8px; min-width: 45px; font-size: 15px; padding: 8px 0; }

#price-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}
#price-modal .modal-content {
  background:#fff; max-width:500px; padding:32px; position:relative; border-radius:10px;
}
