/* HR Resume Screening — dashboard styles (RTL-aware, no build step) */

:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --ink: #1a2233;
  --muted: #5b6b82;
  --line: #e2e8f0;
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --secondary: #0e7490;
  --amber-bg: #fef3c7;
  --amber-border: #f59e0b;
  --amber-ink: #92400e;
  --green: #15803d;
  --red: #b91c1c;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}

a { color: var(--primary); }

/* ---------- Header ---------- */
.app-header {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  color: #fff;
  padding: 1.25rem 1rem 0;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-icon {
  font-size: 1.8rem;
}
.brand-badge {
  background: #38bdf8;
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.5px;
}
.app-header h1 { margin: 0; font-size: 1.6rem; letter-spacing: -0.5px; }
.subtitle { margin: 0.2rem 0 0.5rem; opacity: 0.85; font-size: 0.9rem; }
.course-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 0.15rem 0.8rem;
  font-size: 0.8rem;
}

.header-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}
.status-block { display: flex; gap: 0.5rem; align-items: center; }
.status-pill {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  font-size: 0.85rem;
  white-space: nowrap;
}
.status-pill.status-ok { color: #bbf7d0; }
.status-pill.status-down { color: #fecaca; }
.status-pill.status-unknown { color: #e2e8f0; }
.model-badge {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  direction: ltr;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
}

/* Auth & Wallet Bar in Header */
.auth-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}
.avatar { font-size: 1.1rem; }
.user-details { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.user-name { font-weight: 600; font-size: 0.82rem; }
.user-org { font-size: 0.7rem; opacity: 0.8; }
.wallet-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: #fbbf24;
  color: #78350f;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  margin-right: 0.2rem;
}
.btn-topup {
  background: #10b981;
  color: white;
  border: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}
.btn-topup:hover { background: #059669; }
.btn-xs { font-size: 0.75rem; padding: 0.2rem 0.5rem; }
.btn-warning { background: #f59e0b; color: #1e293b; font-weight: bold; }
.btn-warning:hover { background: #d97706; color: white; }
.guest-actions { display: flex; gap: 0.5rem; }

/* Navigation Tabs */
.app-nav {
  background: rgba(15, 23, 42, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.4rem 1rem;
}
.tab-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}
.tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.tab-btn.active {
  background: #ffffff;
  color: #1e3a8a;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Layout container */
.container { max-width: 1100px; margin: 0 auto; padding: 1.25rem 1rem 2rem; }
.tab-pane { display: block; }
.tab-pane[hidden] { display: none !important; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.card h2 { margin-top: 0; font-size: 1.15rem; }
#resultsSection h2 { margin-bottom: 0.5rem; }

/* ---------- Forms & buttons ---------- */
textarea, input[type="password"], input[type="number"] {
  width: 100%;
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
textarea:focus, input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }

.btn {
  font: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.55rem 1.1rem;
  transition: background 0.15s ease;
}
.btn:disabled { opacity: 0.55; cursor: wait; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-large { font-size: 1.05rem; padding: 0.7rem 1.6rem; }

.api-key-row { display: flex; gap: 0.5rem; }
.api-key-row input { flex: 1; direction: ltr; text-align: left; }

.warning-text {
  color: var(--amber-ink);
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  margin-bottom: 0;
}
.error-text {
  color: var(--red);
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}
.info-text { color: var(--secondary); font-size: 0.95rem; }

/* ---------- Corpus ---------- */
.corpus-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.corpus-count { display: flex; align-items: baseline; gap: 0.5rem; }
.count-number { font-size: 2rem; font-weight: 700; color: var(--primary); }
.count-label { color: var(--muted); }
.corpus-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.dropzone {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  color: var(--muted);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover, .dropzone.drag-over {
  border-color: var(--primary);
  background: #eff6ff;
}
.dropzone p { margin: 0.15rem 0; }
.dropzone-hint { font-size: 0.85rem; }

/* ---------- Search ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0; }
.chip {
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}
.chip:hover { background: #dbeafe; }
.strategy-toggle {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.strategy-toggle legend { padding: 0 0.4rem; font-weight: 600; }
.strategy-toggle label { cursor: pointer; display: flex; align-items: center; gap: 0.35rem; }
.search-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.topk-label { display: flex; align-items: center; gap: 0.5rem; }
.topk-label input { width: 5rem; }

/* ---------- Telemetry ---------- */
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
}
.metric {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  display: flex;
  flex-direction: column;
}
.metric-label { font-size: 0.8rem; color: var(--muted); }
.metric-value { font-weight: 700; font-size: 1.05rem; direction: ltr; text-align: right; }
.metric-value.fallback-on { color: var(--amber-ink); }
.metric-value.fallback-off { color: var(--green); }

.fallback-banner {
  margin-top: 1rem;
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  color: var(--amber-ink);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

/* ---------- Results ---------- */
.empty-state {
  color: var(--muted);
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.result-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.result-card.top-1 { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.result-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.rank-badge {
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  min-width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 0 0.5rem;
}
.result-card h3 { margin: 0.4rem 0 0.2rem; font-size: 1.1rem; }
.years-badge {
  display: inline-block;
  background: #ecfdf5;
  color: var(--green);
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 0.05rem 0.7rem;
  font-size: 0.85rem;
}
.score-row { margin: 0.55rem 0; }
.score-row label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}
.score-row label b { color: var(--ink); direction: ltr; }
.score-bar {
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.2rem;
}
.score-bar > span { display: block; height: 100%; border-radius: 999px; }
.bar-lexical { background: var(--secondary); }
.bar-semantic { background: #7c3aed; }
.bar-final { background: var(--primary); }
.score-na { color: var(--muted); font-size: 0.85rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.6rem 0; }
.skill-tag {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0.05rem 0.6rem;
  font-size: 0.8rem;
  direction: ltr;
}
.explanation {
  background: #f8fafc;
  border-inline-start: 3px solid var(--primary);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: #334155;
  margin: 0.5rem 0 0;
}

/* ---------- Footer ---------- */
.app-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .app-header h1 { font-size: 1.3rem; }
  .status-block { align-items: flex-start; }
  .api-key-row { flex-direction: column; }
  .results-grid { grid-template-columns: 1fr; }
}

/* ---------- Modal & Badges ---------- */
.results-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.badge-univ {
  background: #f0fdf4;
  color: #166534;
  border-color: #bbf7d0;
}

.badge-degree {
  background: #fdf4ff;
  color: #86198f;
  border-color: #f5d0fe;
}

.candidate-card {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.candidate-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.4rem;
  text-align: left;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
}

.modal-content {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius);
  max-width: 750px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--primary-dark);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--red);
}

.modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-box {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--line);
}

.modal-box h4 {
  margin: 0 0 0.5rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.modal-pre {
  background: #0f172a;
  color: #f8fafc;
  padding: 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 300px;
  overflow-y: auto;
  font-family: inherit;
  direction: ltr;
  text-align: left;
}

/* ==================== SAAS STYLES ==================== */

/* Collapsible card */
.collapsed-card { cursor: pointer; }
.card-summary { display: flex; justify-content: space-between; align-items: center; }
.card-summary h3 { margin: 0; font-size: 0.95rem; color: var(--muted); }
.cost-pill {
  font-size: 0.75rem;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid #bfdbfe;
}
.badge-cost {
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}
.badge-free {
  background: #f0fdf4;
  color: #166534;
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

/* Wallet Overview Card */
.wallet-overview-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1px solid #a7f3d0;
}
.wallet-balance-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.wallet-icon { font-size: 2.8rem; }
.balance-display { font-size: 2.4rem; font-weight: 800; color: #065f46; line-height: 1; margin: 0.3rem 0; }
.balance-display small { font-size: 1rem; font-weight: normal; color: #047857; }
.balance-hint { margin: 0; color: #047857; font-size: 0.85rem; }

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.pricing-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}
.pricing-card.featured {
  border: 2px solid #2563eb;
  background: #fafcff;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.12);
}
.pricing-card.academic {
  border: 2px dashed #f59e0b;
  background: #fffdfa;
}
.plan-badge {
  display: inline-block;
  align-self: center;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.plan-badge.hot { background: #ef4444; color: white; }
.plan-badge.academic { background: #f59e0b; color: white; }
.plan-price { font-size: 1.6rem; font-weight: 800; color: var(--ink); margin: 0.6rem 0; }
.plan-price span { font-size: 0.85rem; font-weight: normal; color: var(--muted); }
.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  text-align: right;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.9;
}

/* Transaction Table */
.tx-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}
.tx-table th, .tx-table td {
  padding: 0.65rem 0.75rem;
  text-align: right;
  border-bottom: 1px solid var(--line);
}
.tx-table th { background: #f8fafc; font-weight: 600; color: var(--muted); }
.tx-empty { text-align: center; color: var(--muted); padding: 1.5rem; }
.tx-pos { color: #16a34a; font-weight: bold; }
.tx-neg { color: #dc2626; font-weight: bold; }

/* Engineering Team & ADRs */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}
.team-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem;
}
.team-avatar { font-size: 2.2rem; margin-bottom: 0.4rem; }
.team-card h3 { margin: 0; font-size: 1.05rem; }
.team-role { font-weight: 600; color: var(--primary); font-size: 0.82rem; margin: 0.2rem 0 0.5rem; }
.team-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin: 0; }

.patterns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}
.pattern-item {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem;
}
.pattern-item h4 { margin: 0 0 0.4rem; color: var(--primary-dark); font-size: 0.95rem; }
.pattern-item p { margin: 0; font-size: 0.85rem; color: var(--muted); }
.adr-list { line-height: 2; font-size: 0.9rem; padding-right: 1.2rem; margin: 0; }

/* Auth Modal Styles */
.auth-modal-content { max-width: 440px; }
.auth-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}
.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
}
.auth-tab-btn.active { background: #eff6ff; color: var(--primary); }
.form-label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: right;
}
.btn-block { width: 100%; justify-content: center; margin-top: 0.5rem; }
.otp-hint { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.75rem; text-align: right; }
.otp-input-row { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; }
.demo-evaluator-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.demo-evaluator-divider::before, .demo-evaluator-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--line);
}
.demo-evaluator-divider span { padding: 0 0.5rem; }

/* Payment Modal (Shaparak) */
.payment-modal-content { max-width: 480px; }
.payment-header {
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}
.shaparak-logo { display: flex; align-items: center; gap: 0.75rem; }
.shaparak-icon { font-size: 2.2rem; }
.shaparak-logo h4 { margin: 0; font-size: 1rem; color: #1e293b; }
.shaparak-logo small { color: var(--muted); font-size: 0.75rem; }
.payment-amount-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: #166534;
}
.payment-amount-box b { font-size: 1.25rem; }
.payment-fields { margin: 1rem 0; }
.card-pan-input {
  letter-spacing: 2px;
  font-weight: bold;
  font-family: monospace;
  background: #f8fafc;
}
.payment-row-half { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.btn-pay {
  background: #16a34a;
  font-size: 1rem;
  padding: 0.75rem;
  font-weight: bold;
}
.btn-pay:hover { background: #15803d; }
.payment-note { font-size: 0.75rem; color: var(--muted); text-align: center; margin-top: 1rem; }

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  background: #0f172a;
  color: #f8fafc;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  font-size: 0.85rem;
  pointer-events: auto;
  transition: opacity 0.3s;
}
.toast-success { background: #059669; }
.toast-error { background: #dc2626; }

/* Batch Progress Bar */
.batch-progress-box {
  margin-top: 1rem;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}
.progress-bar-bg {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  transition: width 0.3s ease;
}
.progress-text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* Metrics Callout */
.metrics-callout {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #1e40af;
}
.rrf-rank-tag {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* Student Project Footer */
.app-footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-team {
  margin: 0.35rem 0;
  color: #334155;
  font-size: 0.82rem;
}
.footer-links a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.footer-links a:hover {
  text-decoration: underline;
}


