/* ══ SPLIT PDF APP — Specific styles ══ */
/* Thumbnail grid with clickable split gaps between pages. */
/* Shared styles (toolbar, canvas, thumbnail, etc.) come from /shared/. */

/* Container — centered in canvas area */
.page-content {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-bottom: 60px;
}

/* ── Thumbnail grid with inline gaps ── */
/* Horizontal flow: thumbnail, gap, thumbnail, gap, ... wrapping on multiple rows */
.split-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 8px 0;
}

/* ── Clickable gap between pages ── */
/* Thin vertical strip the user clicks to place a cut line */
.split-gap {
  width: 24px;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  align-self: stretch;
}

/* Default: subtle dashed line (hint that it's clickable) */
.split-gap::before {
  content: "";
  width: 1px;
  height: 80%;
  border-left: 2px dashed var(--grey-300);
  transition: all 0.15s;
}

.split-gap:hover::before {
  border-left-color: var(--accent);
  height: 100%;
}

/* Active cut: solid red line with scissors icon */
.split-gap.cut::before {
  border-left: 3px solid var(--accent);
  height: 100%;
}

/* Scissors icon on active cut */
.split-gap.cut::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
}

.split-gap .cut-icon {
  display: none;
}

.split-gap.cut .cut-icon {
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

/* ── Split summary — fixed bar at the bottom of the viewport ── */
.split-summary {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: white;
  border-top: 1px solid var(--grey-200);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
  z-index: 100;
}

.split-part {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--grey-200);
  border-radius: 10px;
  padding: 8px 14px;
}

.split-part-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.split-part-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--grey-900);
}

.split-part-pages {
  font-size: 11px;
  color: var(--grey-500);
}

/* ── Part color indicator on thumbnails ── */
/* Colored bottom bar on each thumbnail to match the summary */
page-thumbnail[data-part-color] .page-thumb-preview {
  border-bottom: 3px solid var(--part-color);
}
