/* ==========================================================================
   Epsylon Box — PDF TOOLS
   Styles partagés par tous les outils /outils/pdf-xxx/
   ========================================================================== */

/* === DROPZONE === */
.pdf-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  background: var(--bg2);
  transition: all .2s;
  position: relative;
}
.pdf-drop:hover, .pdf-drop.drag-over {
  border-color: var(--accent);
  background: var(--glow);
}
.pdf-drop .icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}
.pdf-drop .hint {
  color: var(--text2);
  font-size: .88rem;
  margin-top: 6px;
}
.pdf-drop .btn {
  margin-top: 14px;
  pointer-events: none; /* le click sur la dropzone ouvre déjà le picker */
}

/* === FILE LIST === */
.pdf-files {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pdf-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.pdf-file .pdf-icon {
  width: 32px; height: 32px; flex-shrink: 0;
  background: var(--glow);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.pdf-file .pdf-info { flex: 1; min-width: 0; }
.pdf-file .pdf-name {
  font-weight: 600;
  color: var(--text);
  font-size: .9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdf-file .pdf-meta {
  font-size: .75rem;
  color: var(--text2);
  margin-top: 2px;
}
.pdf-file .pdf-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.pdf-file .pdf-btn {
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text2);
  border-radius: 6px;
  cursor: pointer;
  font-size: .75rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.pdf-file .pdf-btn:hover { border-color: var(--accent); color: var(--accent); }
.pdf-file .pdf-btn.danger:hover { border-color: var(--accent3); color: var(--accent3); }
.pdf-file[draggable="true"] { cursor: grab; }
.pdf-file[draggable="true"]:active { cursor: grabbing; }
.pdf-file.dragging { opacity: 0.5; }

/* === PROGRESS BAR === */
.pdf-progress {
  margin-top: 16px;
  display: none;
  padding: 14px 16px;
  background: var(--bg2);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  color: var(--text2);
}
.pdf-progress.show { display: block; }
.pdf-progress .label { display: flex; justify-content: space-between; margin-bottom: 6px; }
.pdf-progress .bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.pdf-progress .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width .2s;
}

/* === PRIVACY BADGE === */
.pdf-privacy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(0,255,136,0.08);
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: 20px;
  color: #00cc66;
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: 16px;
}
[data-theme="light"] .pdf-privacy { color: #008844; background: rgba(0,150,60,0.08); border-color: rgba(0,150,60,0.2); }

/* === OPTIONS PANEL === */
.pdf-options {
  margin-top: 16px;
  padding: 16px;
  background: var(--bg2);
  border-radius: var(--radius-sm);
}
.pdf-options .row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.pdf-options .row + .row { margin-top: 10px; }
.pdf-options label {
  font-size: .85rem;
  color: var(--text2);
  font-weight: 600;
}
.pdf-options input[type="text"],
.pdf-options input[type="number"],
.pdf-options select {
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: .9rem;
}
.pdf-options input:focus,
.pdf-options select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--glow);
}

/* === HUB PAGE GRID === */
.pdf-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.pdf-hub-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all .2s;
}
.pdf-hub-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.08);
}
.pdf-hub-card .ico {
  width: 44px; height: 44px;
  background: var(--glow);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.pdf-hub-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}
.pdf-hub-card p {
  color: var(--text2);
  font-size: .82rem;
  line-height: 1.4;
}
