/* Tailwind を補完する最小限のカスタム */

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
.animate-fade-in { animation: fade-in 200ms ease-out; }
.animate-scale-in { animation: scale-in 180ms ease-out; }
.animate-slide-in { animation: slide-in-right 220ms ease-out; }

/* テーブル行ホバー */
tbody tr { transition: background-color 120ms ease; }
tbody tr:hover { background-color: #f8fafc; }

/* バッジ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.badge-ready  { background: #dcfce7; color: #166534; }
.badge-wait   { background: #fef9c3; color: #854d0e; }
.badge-incomplete { background: #fee2e2; color: #991b1b; }
.badge-video  { background: #e0f2fe; color: #075985; }
.badge-image  { background: #fce7f3; color: #9f1239; }

/* インライン編集 */
.editable {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 120ms;
}
.editable:hover { background: #dbeafe; }
.editable.editing {
  background: #fff;
  border: 1px solid #3b82f6;
  padding: 1px 5px;
}
.edit-input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font: inherit;
  color: inherit;
}

/* Toast */
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  min-width: 280px;
  max-width: 420px;
  font-size: 14px;
}
.toast-success { background: #ecfdf5; color: #065f46; border-left: 4px solid #10b981; }
.toast-error   { background: #fef2f2; color: #991b1b; border-left: 4px solid #ef4444; }
.toast-info    { background: #eff6ff; color: #1e40af; border-left: 4px solid #3b82f6; }

/* Result card */
.result-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 150ms;
}
.result-card:hover { border-color: #cbd5e1; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.result-card.ok { border-left: 4px solid #10b981; }
.result-card.err { border-left: 4px solid #ef4444; }
