/* json-to-pdf.css v2-r2 — tool-specific styles only */

:root {
  --max-width: 1100px; /* wider for this tool */
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

@media (max-width: 880px) {
  .tool-layout { grid-template-columns: minmax(0, 1fr); }
}

/* Drop zone */
.drop-zone {
  border: 1px dashed var(--border);
  background: #fafafa;
  padding: 1.4rem 1.25rem;
  text-align: center;
  cursor: pointer;
}

.drop-zone:hover, .drop-zone-active {
  border-color: var(--accent);
  background: #eef2ff;
}

.drop-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.drop-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.drop-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.file-input { display: none; }

.status-text {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 2.2em;
}

.actions-row {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
}

.stats-text {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.chat-list {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 380px;
  overflow-y: auto;
}

.chat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  background: #fcfcfc;
}

.chat-title {
  font-size: 0.9rem;
  font-weight: 500;
  word-break: break-word;
}

.chat-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chat-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* Side info uses shared .side-block, .side-title, .side-list */
.side-panel-block {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.9rem;
  margin-bottom: 0.9rem;
}

.side-panel-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.side-panel-title {
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Donation modal — id-specific show/hide for this tool's JS */
#donation-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
