/* Small shared classes on top of Tailwind (CDN) — no build step. */

.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

.input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.375rem 0.625rem;
  font-size: 0.875rem;
  background: #fff;
}
.input:focus {
  outline: 2px solid #6366f1;
  outline-offset: -1px;
  border-color: #6366f1;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.55rem;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: #4f46e5; color: #fff; }
.btn-primary:hover { background: #4338ca; }
.btn-secondary { background: #fff; border-color: #cbd5e1; color: #334155; }
.btn-secondary:hover { border-color: #94a3b8; }
.btn-ghost { background: transparent; color: #4f46e5; }
.btn-ghost:hover { text-decoration: underline; }

.flash {
  border-radius: 0.55rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  border: 1px solid;
}
.flash-ok { background: #f0fdf4; border-color: #86efac; color: #166534; }
.flash-err { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }

.chip {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}
.chip-done { color: #166534; border-color: #86efac; background: #f0fdf4; }
.chip-running { color: #92400e; border-color: #fcd34d; background: #fffbeb; }
.chip-failed { color: #991b1b; border-color: #fca5a5; background: #fef2f2; }
.chip-queued { color: #475569; border-color: #cbd5e1; background: #f8fafc; }

.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th {
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  padding: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}
.table td { padding: 0.45rem 0.5rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }

.dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 0.75rem;
  padding: 2rem 1rem;
  text-align: center;
  transition: border-color 0.15s, background-color 0.15s;
}
.dropzone-active { border-color: #6366f1; background: #eef2ff; }
