/* src/tools/pdf-organizer/tool.css */
.pdf-org-root {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-family: inherit;
}

.pdf-org-dropzone {
  border: 2px dashed #2a2d3a;
  border-radius: 0.75rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: #13161f;
  transition: all 0.15s ease;
  cursor: pointer;
}

.pdf-org-dropzone:hover,
.pdf-org-dropzone.dragover {
  border-color: #4f8ef7;
  background: rgba(79, 142, 247, 0.05);
}

.toolbar-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #13161f;
  border: 1px solid #2a2d3a;
  border-radius: 0.5rem;
}

.pages-org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.page-org-card {
  background: #13161f;
  border: 1px solid #2a2d3a;
  border-radius: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.15s ease;
}

.page-org-card:hover {
  border-color: #4f8ef7;
}

.page-org-card.deleted {
  opacity: 0.35;
  filter: grayscale(1);
}

.page-org-thumb-box {
  height: 180px;
  background: #0f1117;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.5rem;
  position: relative;
}

.page-org-thumb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.page-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(15, 17, 23, 0.85);
  border: 1px solid #2a2d3a;
  color: #f0f2f8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
}

.page-actions-row {
  padding: 0.375rem 0.5rem;
  background: #1a1d27;
  border-top: 1px solid #2a2d3a;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.action-icon-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 0.75rem;
  padding: 0.25rem 0.375rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.1s ease;
}

.action-icon-btn:hover {
  color: #f0f2f8;
  background: #2a2d3a;
}

.action-del-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}
