/* スタンプオーバーレイ */
#stampOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  pointer-events: none;
  z-index: 100;
}

.temp-stamp-wrapper {
  position: absolute;
  pointer-events: auto;
  box-sizing: border-box;
  border: 1px dashed #999;
}

.temp-stamp-wrapper.dragging {
  opacity: 0.6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.temp-stamp {
  display: block;
  width: 100%;
  height: 100%;
  cursor: move;
  opacity: 0.8;
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
}

/* リサイズハンドル */
.resize-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border: 2px solid #03A9F4;
  border-radius: 2px;
  pointer-events: auto;
  z-index: 102;
}

.resize-handle-nw {
  top: -5px;
  left: -5px;
  cursor: nw-resize;
}

.resize-handle-ne {
  top: -5px;
  right: -5px;
  cursor: ne-resize;
}

.resize-handle-sw {
  bottom: -5px;
  left: -5px;
  cursor: sw-resize;
}

.resize-handle-se {
  bottom: -5px;
  right: -5px;
  cursor: se-resize;
}

/* スタンプボタンコンテナ */
.stamp-button-container {
  position: absolute;
  display: flex;
  gap: 8px;
  z-index: 101;
  pointer-events: auto;
}

/* FABスタイルのアイコンボタン */
.stamp-fab {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stamp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stamp-fab:active {
  transform: scale(0.95);
}

.stamp-fab-confirm {
  background-color: #07A9F4;
  color: #fff;
}

.stamp-fab-cancel {
  background-color: #fff;
  color: #757575;
}

/* 描画済みスタンプのクリックターゲット（透明オーバーレイ） */
.stamp-click-target {
  position: absolute;
  cursor: pointer;
  pointer-events: auto;
  z-index: 101;
}

.stamp-click-target:hover {
  outline: 2px solid rgba(7, 169, 244, 0.4);
  outline-offset: 1px;
}

/* 描画済みスタンプ削除ボタン */
.drawn-stamp-delete-container {
  position: absolute;
  display: flex;
  z-index: 103;
  pointer-events: auto;
}

.stamp-fab-delete {
  background-color: #F44336;
  color: #fff;
}

/* 選択中スタンプのハイライト枠 */
.drawn-stamp-highlight {
  position: absolute;
  border: 2px solid #07A9F4;
  border-radius: 2px;
  pointer-events: none;
  z-index: 99;
  display: none;
}
