/* Shared PDF upload UI - used across PDF category tools */
:root {
  --pdf-up-brand: #3d85c6;
  --pdf-up-brand-dark: #2c6396;
  --pdf-up-brand-light: #eaf4fb;
  --pdf-up-brand-border: #b6d5f2;
  --pdf-up-muted: #64748b;
  --pdf-up-text: #1a1a1a;
  --pdf-up-solid: #ffffff;
}

.pdf-up-section {
  padding: 18px 20px 20px;
  margin-bottom: 16px;
  border: 2px solid var(--pdf-up-brand);
  box-shadow: 0 8px 28px rgba(61, 133, 198, 0.18);
}

.pdf-up-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.pdf-up-step {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--pdf-up-brand);
  padding: 4px 10px;
  border-radius: 999px;
}

.pdf-up-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pdf-up-brand-dark);
}

.pdf-up-drop {
  border: 2px dashed var(--pdf-up-brand-border);
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  outline: none;
}

.pdf-up-drop:hover,
.pdf-up-drop:focus-visible {
  border-color: var(--pdf-up-brand);
  background: var(--pdf-up-brand-light);
  box-shadow: inset 0 0 0 1px rgba(61, 133, 198, 0.12);
}

.pdf-up-drop.is-dragover {
  border-color: var(--pdf-up-brand-dark);
  background: var(--pdf-up-brand-light);
  box-shadow: 0 0 0 4px rgba(61, 133, 198, 0.15);
}

.pdf-up-drop.has-file {
  border-style: solid;
  border-color: #86efac;
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
  cursor: pointer;
}

.pdf-up-drop.has-file:hover {
  border-color: var(--pdf-up-brand);
  background: var(--pdf-up-brand-light);
}

.pdf-up-empty {
  text-align: center;
  padding: 28px 20px 24px;
}

.pdf-up-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--pdf-up-brand), #5ba3e0);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(61, 133, 198, 0.35);
}

.pdf-up-icon--docx {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
}

.pdf-up-icon--xlsx {
  background: linear-gradient(135deg, #15803d, #4ade80);
}

.pdf-up-icon--img {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.pdf-up-lead {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pdf-up-brand-dark);
}

.pdf-up-sub {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--pdf-up-muted);
}

.pdf-up-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}

.pdf-up-btn--primary {
  padding: 13px 28px;
  font-size: 0.95rem;
  min-width: 220px;
  color: #fff;
  background: linear-gradient(135deg, var(--pdf-up-brand), #5ba3e0);
  box-shadow: 0 6px 18px rgba(61, 133, 198, 0.32);
}

.pdf-up-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(61, 133, 198, 0.38);
}

.pdf-up-limits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.pdf-up-limits span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pdf-up-brand-dark);
  background: var(--pdf-up-solid);
  border: 1px solid var(--pdf-up-brand-border);
  padding: 4px 10px;
  border-radius: 999px;
}

.pdf-up-note {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: var(--pdf-up-muted);
}

.pdf-up-loaded {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
}

.pdf-up-loaded[hidden],
.pdf-up-empty[hidden] {
  display: none !important;
}

.pdf-up-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.pdf-up-chip-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #dc2626, #f87171);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

.pdf-up-chip-icon--docx {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
}

.pdf-up-chip-icon--xlsx {
  background: linear-gradient(135deg, #15803d, #4ade80);
}

.pdf-up-chip-icon--img {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.pdf-up-chip-body {
  min-width: 0;
  text-align: left;
}

.pdf-up-chip-body strong {
  display: block;
  font-size: 0.92rem;
  color: var(--pdf-up-text);
  word-break: break-word;
  line-height: 1.3;
}

.pdf-up-chip-meta {
  font-size: 0.8rem;
  color: var(--pdf-up-muted);
  font-weight: 600;
}

@media (max-width: 560px) {
  .pdf-up-empty {
    padding: 22px 14px 20px;
  }

  .pdf-up-loaded {
    flex-direction: column;
    align-items: stretch;
  }

  .pdf-up-chip {
    justify-content: center;
    text-align: center;
  }

  .pdf-up-chip-body {
    text-align: center;
  }

  .pdf-up-btn--primary {
    width: 100%;
    min-width: 0;
  }
}
