/* Split PDF Tool Styles */
#drop-zone {
  background: var(--bs-light-bg-subtle);
  border: 2px dashed var(--bs-primary);
  transition: background-color 0.3s ease;
}
#drop-zone.dragover {
  background: var(--bs-primary-bg-subtle);
}
.page-card {
  position: relative;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--bs-body-bg);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  cursor: pointer;
}
.page-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.page-card.selected {
  border-color: var(--bs-success);
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.25);
}
.page-card canvas {
  width: 100%;
  height: auto;
  display: block;
}
.page-overlay {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.25rem;
  z-index: 25;
}
.page-overlay button {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}
.page-number {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 2px 6px;
  border-radius: 0.25rem;
  font-size: 0.75rem;
}
.page-select {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
  z-index: 20;
}

.preview-modal-content {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.18);
}

.preview-frame {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.9rem;
  background: linear-gradient(180deg, var(--bs-body-bg), var(--bs-tertiary-bg));
}

.preview-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.14);
}

.preview-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(2px);
  border-radius: 0.9rem;
  z-index: 2;
}
