/* PDF tools. Builds on style.css tokens and classes. */

.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 32px 16px;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  text-align: center;
  cursor: pointer;
}
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone strong { font-size: 19px; color: var(--accent); }
.dropzone span { color: var(--muted); font-size: 15px; }
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.dropzone.has-files { padding: 16px; }

.file-list { list-style: none; padding: 0; margin: 12px 0 0; }
.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.file-list li > div { min-width: 0; display: flex; flex-direction: column; }
.file-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; text-align: start; }
.file-size { color: var(--muted); font-size: 14px; }
.file-actions { display: flex; gap: 4px; flex-shrink: 0; }
.file-actions button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.file-actions button:disabled { opacity: 0.3; cursor: default; }
.file-actions button:not(:disabled):hover { background: var(--accent-soft); color: var(--accent); }

.pdf-options { margin-top: 16px; }
.pdf-options .calendar-choice { margin-bottom: 8px; }

.primary-button {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  cursor: pointer;
}
.primary-button:hover { text-decoration: none; filter: brightness(1.05); }
.primary-button:disabled { opacity: 0.4; cursor: default; }

.status { min-height: 1.6em; margin: 12px 0 0; color: var(--muted); text-align: center; }
.status.is-error { color: var(--error); }

.pdf-result:empty { display: none; }
.pdf-result { margin-top: 8px; }
.result-summary { margin: 0; text-align: center; font-weight: 600; }
.pdf-result .rows { margin-top: 12px; background: var(--bg); }

.gallery { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.gallery li { background: var(--bg); border-radius: 10px; padding: 8px; text-align: center; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #fff; border-radius: 6px; }
.gallery a { display: block; margin-top: 6px; font-size: 15px; }

.privacy-note { margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 14px; }

.steps { margin: 0; padding-inline-start: 20px; }
.steps li { margin-bottom: 6px; }
