.pdfmerger-container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.pdfmerger-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.pdfmerger-title {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 800;
  text-align: center;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.pdfmerger-icon {
  font-size: 1.3em;
}

.pdfmerger-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.pdfmerger-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow);
}

/* Upload Zone */
.upload-zone {
  border: 3px dashed var(--border);
  border-radius: 16px;
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.upload-zone:hover {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
}

.upload-icon {
  font-size: 4.5rem;
  margin-bottom: 1rem;
}

.upload-btn {
  margin-top: 1.5rem;
  padding: 0.9rem 2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* File List */
.file-list-container {
  margin-top: 2rem;
}

.sortable-list {
  list-style: none;
  padding: 0;
  min-height: 100px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
}

.sortable-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  cursor: move;
  user-select: none;
}

.sortable-item.dragging {
  opacity: 0.4;
  transform: scale(0.98);
}

.file-name {
  flex: 1;
  margin: 0 1rem;
  font-weight: 500;
}

.remove-file {
  background: #ef4444;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}

.merge-actions {
  margin: 1.5rem 0;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.merge-btn {
  padding: 1rem 2.2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.merge-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Progress */
.progress {
  margin-top: 1.5rem;
  background: var(--bg);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.progress-bar {
  height: 10px;
  background: var(--primary);
  width: 0%;
  border-radius: 5px;
  transition: width 0.3s;
}

/* Download Card (consistent style) */
.download-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.dark-mode .download-card {
  background: linear-gradient(135deg, #1e293b, #334155);
}

.download-title {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .merge-actions { flex-direction: column; }
  .merge-btn { width: 100%; }
  .sortable-item { padding: 0.9rem; font-size: 0.95rem; }
}