/* Flowline brand CSS — white background, brand palette */
/* Cyan #06b6d4 · Lime #84cc16 · Orange/CTA #f97316 · Graphite #374151 · Silver #e5e7eb */
:root {
  --cyan:   #06b6d4;
  --lime:   #84cc16;
  --cta:    #f97316;
  --dark:   #f5f6fa;   /* page bg */
  --card:   #ffffff;
  --border: #e5e7eb;   /* silver grey */
  --graphite: #374151;
  --muted:  #6b7280;
  --text:   #111827;
}

/* Progress bar */
.progress-bar {
  transition: width 0.4s ease;
  background: var(--cyan);
}

/* Log feed — intentionally dark (terminal) */
.log-feed {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.78rem;
  line-height: 1.6;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  height: 220px;
  overflow-y: auto;
  color: #94a3b8;
}
.log-feed .log-ok   { color: #4ade80; }
.log-feed .log-err  { color: #f87171; }
.log-feed .log-info { color: var(--cyan); }

/* Quality badge */
.badge-green  { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.badge-amber  { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.badge-red    { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.badge-grey   { background: #f3f4f6; color: #6b7280; border: 1px solid #e5e7eb; }

/* Drag-drop zone */
.drop-zone {
  border: 2px dashed #d1d5db;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
}
.drop-zone.drag-over {
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.04);
}

/* Stat cards */
.stat-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.modal-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  z-index: 100;
  animation: fadeIn 0.2s ease;
}
.toast-ok  { background: #f0fdf4; color: #166534; border: 1px solid #86efac; }
.toast-err { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* CTA — solid orange */
a.bg-cta, button.bg-cta {
  background: var(--cta) !important;
  color: #fff !important;
  font-weight: 600;
  transition: opacity 0.15s, box-shadow 0.15s;
}
a.bg-cta:hover, button.bg-cta:hover {
  opacity: 0.88 !important;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
}

/* Lime secondary button */
a.bg-lime, button.bg-lime {
  color: #fff !important;
  transition: opacity 0.15s, box-shadow 0.15s;
}
a.bg-lime:hover, button.bg-lime:hover {
  opacity: 0.88;
  box-shadow: 0 4px 14px rgba(132, 204, 22, 0.35);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f3f4f6; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
