/* Minimal component styles to support tool UI. The page layout & theme
   come from the site-wide Tailwind + inline CSS in index.html. */

* { box-sizing: border-box; }

/* uploader area */
.uploader { margin-bottom: 16px; }
.dropzone { border: 1px solid #e5e7eb; border-radius: 8px; padding: 28px; text-align: center; background: #ffffff; color: #101622; }
.dropzone strong { display: inline-block; margin-right: 6px; }
.dropzone button { background: #111827; border: none; color: #ffffff; font-weight: 700; border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.dropzone button:hover { filter: brightness(1.05); }
.dropzone.dragover { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(147,197,253,0.35) inset; }

.notice { margin: 10px 2px; color: #6b7280; font-size: 12px; }

.actions { display: flex; gap: 12px; align-items: center; margin: 20px 0; }
.option { color: #101622; font-size: 14px; }

/* results table */
table.results { width: 100%; border-collapse: collapse; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
table.results thead { background: #f8fafc; }
table.results th, table.results td { padding: 10px 12px; border-bottom: 1px solid #e5e7eb; font-size: 13px; color: #101622; }
table.results th { text-align: left; color: #6b7280; font-weight: 600; }
table.results td .badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.badge.ok { background: rgba(16,185,129,0.12); color: #0f766e; }
.badge.warn { background: rgba(234,179,8,0.12); color: #a16207; }
.badge.err { background: rgba(239,68,68,0.12); color: #b91c1c; }

.download-btn { color: #0f766e; text-decoration: none; font-weight: 700; }
.download-btn:hover { text-decoration: underline; }

/* Progress UI */
.progress { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; align-items: center; }
.progress-group label { font-size: 0.9rem; color: #334155; margin-bottom: 6px; display: block; }
.progress-bar { width: 100%; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #2563eb, #1d4ed8); transition: width 0.2s ease; }
.progress-text { font-size: 0.85rem; color: #6b7280; margin-top: 4px; }

@media (max-width: 640px) { .progress { grid-template-columns: 1fr; } }

/* Done toast */
.done-toast { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: #10b981; color: #ffffff; padding: 10px 14px; border-radius: 9999px;
  box-shadow: 0 10px 20px rgba(16,22,34,0.18); z-index: 60; font-size: 14px; font-weight: 700;
  opacity: 0; pointer-events: none;
  transition: opacity 180ms var(--ease-out-quart), transform 200ms var(--ease-out-quart);
}
.done-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1.02); }
.done-toast.hide { opacity: 0; transform: translate(-50%, -50%) scale(1.0); }