/* Delete Pages from PDF — Tool-specific styles */

.page { padding: 40px 20px; max-width: 1100px; margin: 0 auto; }
.page h1 { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.page .subtitle { color: #888; margin-bottom: 20px; font-size: 14px; }

.upload-area {
  border: 2px dashed #333; border-radius: 12px;
  text-align: center; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.upload-area:hover { border-color: #555; background: #0d0d0d; }
.upload-area.dragover { border-color: #ff4444; background: #1a0000; }
.upload-content { padding: 48px 20px; }
.upload-icon { width: 40px; height: 40px; color: #444; margin-bottom: 12px; }
.upload-content p { color: #666; font-size: 14px; margin-bottom: 4px; }
.upload-link { color: #ff4444; cursor: pointer; }
.upload-hint { font-size: 12px; color: #444; }

.progress-area { padding: 24px 0; }
.progress-bar-bg {
  width: 100%; height: 6px; background: #222;
  border-radius: 3px; overflow: hidden; margin-bottom: 10px;
}
.progress-bar-fill {
  height: 100%; background: #cc0000; border-radius: 3px;
  transition: width 0.3s; width: 0%;
}
.progress-text { font-size: 13px; color: #888; text-align: center; }

.editor-card { margin-top: 16px; }
.editor-header {
  display: flex; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 16px; align-items: center;
}
.file-info {
  padding: 8px 12px;
  background: #161616; border: 1px solid #2a2a2a; border-radius: 6px;
  font-size: 13px; color: #ccc;
}
.counter {
  padding: 8px 14px;
  background: #161616; border: 1px solid #2a2a2a; border-radius: 6px;
  font-size: 13px; color: #888;
}
.counter.has-marks {
  border-color: #ff4444; color: #fff;
  background: rgba(255, 68, 68, 0.1);
}

.thumbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px; margin-bottom: 18px;
}
.thumb-card {
  background: #0d0d0d; border: 1px solid #2a2a2a; border-radius: 8px;
  padding: 10px; cursor: pointer;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.15s;
}
.thumb-card:hover { border-color: #444; }
.thumb-img-wrap {
  position: relative;
  width: 100%; aspect-ratio: 1/1;
  background: #1a1a1a; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.thumb-img {
  max-width: 90%; max-height: 90%;
}
.delete-overlay {
  position: absolute; inset: 0;
  background: rgba(255, 68, 68, 0.85);
  color: #fff; font-size: 48px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}
.thumb-card.marked-deleted .delete-overlay { opacity: 1; }
.thumb-card.marked-deleted { border-color: #ff4444; }
.thumb-card.marked-deleted .thumb-img { filter: grayscale(0.8); }
.thumb-label {
  font-size: 11px; color: #aaa; text-align: center;
}

.action-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.status-msg { font-size: 13px; margin-left: 8px; }
.status-msg.ok { color: #4caf50; }
.status-msg.err { color: #ff6666; }

@media (max-width: 600px) {
  .page { padding: 24px 12px; }
  .page h1 { font-size: 22px; }
  .editor-header { flex-direction: column; align-items: flex-start; }
}
