/* AFRIGRC DEV — shared visual polish.  Layout and behavior stay unchanged. */
:root {
  --cg-navy: #071f3d;
  --cg-navy-2: #0b477e;
  --cg-blue: #0878f9;
  --cg-cyan: #19a9e5;
  --cg-ink: #18344f;
  --cg-muted: #6b7e90;
  --cg-line: #dce7ed;
  --cg-soft: #f4f8fb;
  --cg-shadow: 0 14px 38px rgba(7, 31, 61, .09);
  --cg-radius: 16px;
}

html { scroll-behavior: smooth; }
body { text-rendering: optimizeLegibility; }

/* Consistent interaction language. */
button, .button, a.button, select, input, textarea { border-radius: 10px; }
button, .button, a.button {
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease,
    border-color .16s ease;
}
button:hover:not(:disabled), .button:hover, a.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(8, 120, 249, .16);
}
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(8, 120, 249, .28);
  outline-offset: 2px;
}

/* Audit, ISO and tenant pages use the same card rhythm. */
.intro { margin-bottom: 28px; }
.intro h1, .welcome h1 { letter-spacing: -.025em; }
.card {
  border-color: rgba(220, 231, 237, .95);
  border-radius: var(--cg-radius);
  box-shadow: var(--cg-shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  border-color: rgba(8, 120, 249, .22);
  box-shadow: 0 18px 44px rgba(7, 31, 61, .12);
}
.card-head { gap: 14px; }
.card-head h2, .card-head h3 { letter-spacing: -.01em; }
.eyebrow { color: var(--cg-blue); }
.muted, .help { color: var(--cg-muted); }

/* Readable controls and calmer empty/error states. */
input, select, textarea {
  border: 1px solid #bdcfdd;
  background: #fff;
  color: var(--cg-ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}
input:hover, select:hover, textarea:hover { border-color: #8eabc0; }
input:focus, select:focus, textarea:focus {
  border-color: var(--cg-blue);
  box-shadow: 0 0 0 4px rgba(8, 120, 249, .10);
}
.empty {
  padding: 20px;
  border: 1px dashed #cddce6;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff, #f5f9fc);
  color: var(--cg-muted);
}
.error {
  border-radius: 10px;
  padding: 11px 14px;
  background: #fff3f2;
  border: 1px solid #f1c7c4;
}

/* Audit tables and evidence lists. */
table { border-spacing: 0; }
th { white-space: nowrap; }
tbody tr { transition: background .14s ease; }
tbody tr:hover { background: #f7fbfe; }
td a { color: var(--cg-navy-2); }
.entry {
  border-color: #e5edf2;
  transition: background .14s ease, border-color .14s ease;
}
.entry:hover { background: #fbfdff; border-color: #cfe1ec; }
.actions { gap: 9px; }

/* Dialogs and mission actions. */
dialog {
  box-shadow: 0 24px 70px rgba(3, 18, 32, .28);
  border: 1px solid rgba(220, 231, 237, .95);
}
dialog::backdrop { background: rgba(3, 18, 32, .56); backdrop-filter: blur(2px); }
.cybergov-lifecycle-actions { align-items: center; }

/* Navigation and dashboard surfaces. */
.sidebar { box-shadow: 8px 0 26px rgba(3, 18, 32, .08); }
.sidebar nav a, nav a { transition: background .16s ease, color .16s ease, transform .16s ease; }
.sidebar nav a:hover, .sidebar nav a.active { transform: translateX(2px); }
.topbar { box-shadow: 0 2px 16px rgba(7, 31, 61, .04); }
.kpi { transition: transform .18s ease, box-shadow .18s ease; }
.kpi:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(7, 31, 61, .12); }
.live { box-shadow: 0 4px 16px rgba(46, 139, 109, .12); }

/* Keep the experience comfortable on tablets and phones. */
@media (max-width: 850px) {
  .content, main { padding-left: 18px; padding-right: 18px; }
  .card { border-radius: 14px; }
  .card-head { align-items: flex-start; }
  .cybergov-lifecycle-actions { width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
  }
}
