/* ============================================================================
   N.O GROUP — PDF TOOLKIT STYLES (v1)
   Thick black & white. Merge · Split · Rotate · Compress.
   ========================================================================== */

.pdf {
  --pdf-line: #000;
  background: #fff;
  border: 3px solid #000;
  border-radius: 0;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  box-shadow: 8px 8px 0 #000;
  position: relative;
  overflow: hidden;
}
.pdf::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: #000;
  pointer-events: none;
}

/* badges */
.pdf-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.pdf-badge {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.4rem 0.85rem;
  border-radius: 0;
  border: 2px solid #000;
  background: #000;
  color: #fff;
  white-space: nowrap;
  text-transform: uppercase;
  font-weight: 700;
}
.pdf-badge.is-private { background: #000; color: #fff; }

/* tabs */
.pdf-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.pdf-tab {
  font: inherit;
  text-align: center;
  cursor: pointer;
  border: 3px solid #000;
  background: #fff;
  color: #000;
  border-radius: 0;
  padding: 1rem 1.1rem;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 4px 4px 0 #000;
  transition: box-shadow 0.15s, transform 0.1s, background 0.2s, color 0.2s;
}
.pdf-tab:hover { box-shadow: 6px 6px 0 #000; transform: translate(1px, 1px); }
.pdf-tab.is-active {
  background: #000;
  color: #fff;
  box-shadow: 6px 6px 0 #000;
  transform: translate(2px, 2px);
}

/* panels */
.pdf-panel-split,
.pdf-panel-rotate,
.pdf-panel-compress {
  display: none;
}
.pdf-panel-merge {
  display: block;
}

/* dropzone */
.pdf-drop {
  border: 4px dashed #000;
  border-radius: 0;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  box-shadow: 6px 6px 0 #000;
}
.pdf-drop:hover {
  border-color: #000;
  background: #fafafa;
  box-shadow: 8px 8px 0 #000;
}
.pdf-drop.is-dragging {
  border-color: #000;
  background: #f0f0f0;
  transform: scale(1.01);
  box-shadow: 8px 8px 0 #000;
}
.pdf-drop-icon {
  font-size: 2.5rem;
  color: #000;
  font-weight: 800;
  display: block;
  margin-bottom: 0.75rem;
}
.pdf-drop-title {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.pdf-drop-link {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}
.pdf-drop-sub {
  color: #333;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.pdf-drop-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* file list */
.pdf-file-list {
  border: 3px solid #000;
  background: #fff;
  border-radius: 0;
  padding: 1rem;
  box-shadow: 5px 5px 0 #000;
  margin-top: 1rem;
  max-height: 300px;
  overflow-y: auto;
}
.pdf-file-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 120px auto;
  gap: 0.85rem;
  align-items: center;
  border: 3px solid #000;
  background: #fff;
  border-radius: 0;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  box-shadow: 3px 3px 0 #000;
}
.pdf-file-item:hover {
  box-shadow: 5px 5px 0 #000;
}
.pdf-file-thumb {
  width: 40px;
  height: 40px;
  background: #fff;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  font-weight: 700;
  color: #000;
}
.pdf-file-name {
  font-weight: 800;
  font-size: 0.85rem;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.pdf-file-size {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  color: #333;
  font-weight: 600;
  text-align: right;
}
.pdf-file-remove {
  background: #000;
  color: #fff;
  border: 2px solid #000;
  border-radius: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
}
.pdf-file-remove:hover {
  box-shadow: 5px 5px 0 #000;
}

/* split results */
.pdf-split-results {
  margin-top: 1rem;
  border: 3px solid #000;
  background: #fff;
  border-radius: 0;
  padding: 1rem;
  box-shadow: 5px 5px 0 #000;
  display: none;
}
.pdf-split-download {
  background: #000;
  color: #fff;
  border: 2px solid #000;
  border-radius: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
}
.pdf-split-download:hover {
  box-shadow: 5px 5px 0 #000;
}

/* options */
.pdf-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.pdf-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.pdf-field > span {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #000;
}
.pdf-field select,
.pdf-field input[type="text"],
.pdf-field input[type="range"] {
  width: 100%;
  font: inherit;
  font-size: 0.85rem;
  color: #000;
  background: #fff;
  border: 2px solid #000;
  border-radius: 0;
  padding: 0.5rem 0.7rem;
  box-shadow: 3px 3px 0 #000;
}

/* actions */
.pdf-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.pdf .btn {
  border-radius: 0;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 #000;
  border: 2px solid #000;
  cursor: pointer;
}
.pdf .btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.8rem;
}
.pdf .btn-primary {
  background: #000;
  color: #fff;
}
.pdf .btn-primary:hover {
  background: #000;
  color: #fff;
  box-shadow: 6px 6px 0 #000;
  transform: translate(2px, 2px);
}
.pdf .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: 4px 4px 0 #000;
}
.pdf .btn-ghost {
  background: #fff;
  color: #000;
  border: 2px solid #000;
}
.pdf .btn-ghost:hover {
  background: #f0f0f0;
  box-shadow: 6px 6px 0 #000;
  transform: translate(2px, 2px);
}

/* progress */
.pdf-progress {
  margin-top: 1rem;
  border: 3px solid #000;
  background: #fff;
  border-radius: 0;
  padding: 1rem;
  box-shadow: 5px 5px 0 #000;
  display: none;
}
.pdf-progress-bar {
  height: 12px;
  background: #e5e5e5;
  border: 2px solid #000;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.pdf-progress-fill {
  height: 100%;
  background: #000;
  width: 0%;
  transition: width 0.3s ease;
}
.pdf-progress-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  color: #000;
  font-weight: 700;
  text-align: center;
}

/* results */
.pdf-result {
  margin-top: 1rem;
  border: 3px solid #000;
  background: #fff;
  border-radius: 0;
  padding: 1rem;
  box-shadow: 5px 5px 0 #000;
  display: none;
}
.pdf-result-title {
  font-size: 0.95rem;
  color: #000;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}
.pdf-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 2px solid #000;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: #fafafa;
}
.pdf-result-name {
  font-weight: 700;
  color: #000;
}
.pdf-result-size {
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  color: #333;
  font-weight: 600;
  margin-left: auto;
}
.pdf-download {
  background: #000;
  color: #fff;
  border: 2px solid #000;
  border-radius: 0;
  padding: 0.75rem 1.5rem;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 #000;
  cursor: pointer;
}
.pdf-download:hover {
  box-shadow: 6px 6px 0 #000;
  transform: translate(2px, 2px);
}
.pdf-download:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .pdf-tabs {
    grid-template-columns: 1fr;
  }
  .pdf-file-item {
    grid-template-columns: 32px minmax(0, 1fr) 100px auto;
    font-size: 0.8rem;
  }
  .pdf-options {
    grid-template-columns: 1fr;
  }
}
