/* public/system/apps/thumb-shadow/styles.css */

.thumb-shadow-root {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #111;
  border-radius: inherit;
}

.thumb-shadow-canvas {
  position: absolute;
  inset: 0;
  display: block;
  touch-action: none; /* we own the gesture entirely -- no scroll/zoom to fight */
}

.thumb-shadow-hint {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  border-radius: 10px;
  pointer-events: none;
  z-index: 2;
}

.thumb-shadow-fit-btn {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: #c2410c;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  z-index: 2;
}

.thumb-shadow-fit-btn svg {
  fill: #fff;
}

/* Custom vertical slider -- a rotated native <input type=range> was
   unreliable to grab/drag on iOS (small/misaligned hit target). This
   is hand-built instead: the whole wrap is the drag surface (JS
   listens on ts-slider-wrap, not just the knob), and the knob itself
   is drawn large on purpose so there's a big, obvious target even
   before you touch it. */
.thumb-shadow-slider-wrap {
  position: absolute;
  left: 8px;
  bottom: 60px;
  width: 92px;
  height: 280px;
  z-index: 2;
  touch-action: none;
}

.thumb-shadow-slider-rail {
  position: absolute;
  left: 50%;
  top: 32px;
  bottom: 32px;
  width: 14px;
  margin-left: -7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.thumb-shadow-slider-knob {
  position: absolute;
  left: 50%;
  width: 64px;
  height: 64px;
  margin-left: -32px;
  border-radius: 50%;
  background: #c2410c;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  pointer-events: none; /* the wrap owns the drag, so the knob never blocks/eats the pointerdown */
}
