/* FGDPP prototype — small custom layer on top of Tailwind CDN.
   The prototype is intentionally lightweight: Tailwind classes carry
   most styling; this file holds only what CDN Tailwind cannot express. */

:root {
  --fj-blue: #002B7F;         /* Fiji flag blue */
  --fj-red: #CE1126;          /* Fiji flag red */
  --fj-white: #FFFFFF;
  --fj-ink: #0f172a;
  --fj-panel: #f8fafc;
  --fj-line: #e5e7eb;
}

/* Government portal header treatment — Fiji-blue bar with coat-of-arms icon. */
.fj-header {
  background: linear-gradient(90deg, var(--fj-blue) 0%, #003a9e 100%);
  color: #fff;
}
.fj-header a { color: #fff; }

.fj-crest {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--fj-white); color: var(--fj-blue);
  font-weight: 800; font-family: Georgia, serif; font-size: 20px;
}

/* Chip / badge for status */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
}
.chip-draft      { background: #f1f5f9; color: #475569; }
.chip-submitted  { background: #dbeafe; color: #1e40af; }
.chip-review     { background: #fef3c7; color: #92400e; }
.chip-waiting    { background: #fde68a; color: #78350f; }
.chip-approved   { background: #d1fae5; color: #065f46; }
.chip-rejected   { background: #fee2e2; color: #991b1b; }
.chip-completed  { background: #cffafe; color: #155e75; }

/* Sidebar navigation used across portals */
.side-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 8px;
  color: #334155; text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
}
.side-nav a:hover { background: #f1f5f9; color: var(--fj-blue); }
.side-nav a.on {
  background: rgba(0, 43, 127, 0.08); color: var(--fj-blue);
  font-weight: 600;
}
.side-nav .lbl {
  padding: 12px 12px 4px 12px;
  font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: #64748b; font-weight: 600;
}

/* Small "official" note treatment for the mock disclaimer */
.demo-strip {
  background: #fef3c7; color: #78350f;
  padding: 6px 12px; text-align: center;
  font-size: 0.78rem; font-weight: 600;
}

/* Timeline for application progression */
.timeline {
  position: relative; padding-left: 28px;
}
.timeline::before {
  content: ""; position: absolute; left: 10px; top: 4px; bottom: 4px;
  width: 2px; background: var(--fj-line);
}
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item::before {
  content: ""; position: absolute; left: -22px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #cbd5e1; border: 2px solid #fff;
}
.timeline-item.done::before { background: #10b981; }
.timeline-item.current::before { background: var(--fj-red); box-shadow: 0 0 0 4px rgba(206,17,38,0.15); }

/* Table hover polish */
tbody tr.cursor-row:hover { background: #f8fafc; cursor: pointer; }

/* Print polish for report exports */
@media print {
  .fj-header, .demo-strip, .side-nav, .no-print { display: none !important; }
  body { background: #fff !important; }
}
