/* The Sketchpad's chrome around the board: the FAB, the add and context
   menus, the zoom indicator and the drop overlay. Split out of
   css/moodboard.css along its own section banners. */
/* ============ FAB (Add button) ============ */
.mb-fab {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(74, 144, 217, 0.4);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s, transform 0.1s;
}

.mb-fab:hover {
  background: var(--accent-hover);
  transform: scale(1.05);
}

.mb-fab:active {
  transform: scale(0.95);
}

/* ============ Add Menu ============ */
.mb-add-menu {
  display: none;
  position: absolute;
  bottom: 68px;
  right: 16px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  z-index: 100;
  min-width: 160px;
  padding: 4px 0;
}

.mb-add-menu.open {
  display: block;
}

.mb-add-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text-primary);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.mb-add-option:hover {
  background: var(--bg-hover);
}

.mb-add-option .material-symbols-outlined {
  font-size: 18px;
  color: var(--text-secondary);
}

/* ============ Context Menu ============ */
.mb-context-menu {
  display: none;
  position: fixed;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  z-index: 10001;
  min-width: 150px;
  padding: 4px 0;
}

.mb-context-menu.open {
  display: block;
}

.mb-context-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text-primary);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.mb-context-item:hover {
  background: var(--bg-hover);
}

.mb-context-item.mb-context-danger {
  color: var(--danger);
}

.mb-context-separator {
  height: 1px;
  background: var(--border);
  margin: 4px 8px;
}

.mb-color-picker {
  display: flex;
  gap: 4px;
  padding: 6px 14px;
  flex-wrap: wrap;
}

.mb-color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
}

.mb-color-swatch:hover {
  border-color: var(--accent);
}

.mb-color-swatch.active {
  border-color: var(--text-primary);
}

/* ============ Zoom Indicator ============ */
.mb-zoom-level {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(0,0,0,0.5);
  padding: 3px 8px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 50;
  font-variant-numeric: tabular-nums;
}

/* ============ Drop Overlay ============ */
.mb-drop-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(74, 144, 217, 0.08);
  border: 2px dashed var(--accent);
  z-index: 200;
  pointer-events: none;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--accent);
}

.mb-drop-overlay.mb-drop-active {
  display: flex;
}
