[x-cloak] { display: none !important; }

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* --- Nawigacja boczna --- */
.nav-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 0.75rem; border-radius: 0.6rem;
  font-size: 0.875rem; font-weight: 500;
  color: #cbd5e1; transition: background-color .15s, color .15s;
}
.nav-link:hover { background: #1e293b; color: #fff; }
.nav-link-active { background: #4f46e5; color: #fff; }
.nav-link-active:hover { background: #4338ca; }

/* --- Karty --- */
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; }
.card-hover { transition: box-shadow .15s, border-color .15s; }
.card-hover:hover { box-shadow: 0 4px 16px -4px rgb(0 0 0 / 0.08); border-color: #cbd5e1; }

/* --- Odznaki statusu --- */
.badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; flex-shrink: 0; }
.badge-verified, .badge-approved { background: #d1fae5; color: #047857; }
.badge-needs_review { background: #fef3c7; color: #b45309; }
.badge-in_progress { background: #dbeafe; color: #1d4ed8; }
.badge-rejected { background: #fee2e2; color: #b91c1c; }
.badge-exported { background: #ede9fe; color: #6d28d9; }
.badge-lg { padding: 0.35rem 0.9rem; font-size: 0.8rem; }

/* --- Odznaki statusu kandydata (Discovery) --- */
.badge-pending { background: #e2e8f0; color: #475569; }
.badge-qualified { background: #d1fae5; color: #047857; }
.badge-processed { background: #dbeafe; color: #1d4ed8; }
.badge-skipped { background: #fee2e2; color: #b91c1c; }

/* --- Przyciski --- */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.875rem; padding: 0.55rem 1.1rem; border-radius: 0.65rem; transition: all .15s; white-space: nowrap; }
.btn-primary { background: #4f46e5; color: #fff; }
.btn-primary:hover { background: #4338ca; }
.btn-secondary { background: #fff; color: #334155; border: 1px solid #cbd5e1; }
.btn-secondary:hover { background: #f8fafc; border-color: #94a3b8; }
.btn-success { background: #059669; color: #fff; }
.btn-success:hover { background: #047857; }
.btn-warning { background: #d97706; color: #fff; }
.btn-warning:hover { background: #b45309; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-ghost { color: #64748b; }
.btn-ghost:hover { color: #1e293b; background: #f1f5f9; }
.btn[disabled], .btn-outline-active { opacity: 1; }

/* --- Pola formularzy --- */
.field-input, .field-select, .field-textarea {
  width: 100%; border: 1px solid #cbd5e1; border-radius: 0.6rem;
  padding: 0.6rem 0.8rem; font-size: 0.9rem; background: #fff; color: #0f172a;
  transition: border-color .15s, box-shadow .15s;
}
.field-input:focus, .field-select:focus, .field-textarea:focus {
  outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgb(99 102 241 / 0.15);
}
.field-label { display: block; font-size: 0.8rem; font-weight: 600; color: #334155; margin-bottom: 0.35rem; }

/* --- Fakty (panel firmy) --- */
.fact-value { color: #0f172a; font-size: 0.9rem; line-height: 1.5; }
.fact-missing { color: #94a3b8; font-style: italic; font-size: 0.875rem; }

/* --- Pasek kompletności --- */
.progress-track { width: 100%; height: 6px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6366f1, #4338ca); transition: width .4s ease; }

/* --- Log researchu na żywo --- */
.log-line { padding: 0.45rem 0.75rem; border-radius: 0.5rem; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.8rem; line-height: 1.4; display: flex; align-items: flex-start; gap: 0.5rem; animation: log-in .25s ease; }
.log-line .dot { width: 6px; height: 6px; border-radius: 999px; margin-top: 0.4rem; flex-shrink: 0; }
.log-info { color: #94a3b8; }
.log-info .dot { background: #475569; }
.log-success { color: #6ee7b7; background: rgb(16 185 129 / 0.08); }
.log-success .dot { background: #34d399; }
.log-warning { color: #fcd34d; background: rgb(217 119 6 / 0.1); }
.log-warning .dot { background: #fbbf24; }
.log-error { color: #fca5a5; background: rgb(220 38 38 / 0.1); }
.log-error .dot { background: #f87171; }
.log-thinking { color: #c4b5fd; font-style: italic; }
.log-thinking .dot { background: #a78bfa; }

@keyframes log-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.pulse-dot { animation: pulse-dot 1.4s ease-in-out infinite; }

/* --- Tabele --- */
.table-modern thead th { text-transform: uppercase; letter-spacing: .04em; font-size: 0.7rem; font-weight: 700; color: #94a3b8; padding: 0.75rem 1rem; text-align: left; background: #f8fafc; }
.table-modern tbody td { padding: 0.85rem 1rem; font-size: 0.875rem; border-top: 1px solid #f1f5f9; }
.table-modern tbody tr { transition: background-color .1s; cursor: pointer; }
.table-modern tbody tr:hover { background: #f8fafc; }

/* --- Avatar inicjałów --- */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 0.6rem; font-weight: 700; flex-shrink: 0;
  background: linear-gradient(135deg, #818cf8, #4f46e5); color: #fff;
}
