:root {
  color-scheme: light dark;
  font-family: "Segoe UI", "Noto Sans TC", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  color: #0f172a;
}

.container {
  width: min(720px, 92vw);
  padding: 1.5rem;
}

h1 {
  margin-bottom: 0.2rem;
}

.subtitle {
  margin-top: 0;
  color: #334155;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  margin: 0.8rem 0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

#pdfInput {
  display: none;
}

.drop-zone {
  margin-top: 0.7rem;
  border: 2px dashed #94a3b8;
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  color: #475569;
  background: #f8fafc;
  transition: 0.2s ease;
}

.drop-zone.drag-over {
  border-color: #2563eb;
  background: #dbeafe;
  color: #1e3a8a;
}

.drop-zone:focus {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.button,
button {
  border: 0;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  background: #2563eb;
  color: white;
  cursor: pointer;
  font-size: 1rem;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button.secondary {
  background: #475569;
}

#hint {
  font-size: 0.9rem;
  color: #64748b;
}

#fileList {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
}

.file-meta {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.file-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-detail {
  font-size: 0.82rem;
  color: #475569;
}

.file-detail.file-error {
  color: #b91c1c;
}

.row-actions {
  display: flex;
  gap: 0.3rem;
}

.row-actions button {
  padding: 0.35rem 0.55rem;
  font-size: 0.85rem;
  background: #0ea5e9;
}

.row-actions .remove {
  background: #dc2626;
}

.actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

#status {
  min-height: 1.25rem;
  margin-top: 0.8rem;
}
