@import url('tokens.css');

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-900);
  /* Flat warm-cream background, same as the customer portal. Two faint
     navy-tinted radial highlights add a little depth. */
  background-image:
    radial-gradient(ellipse 1100px 800px at 10% -5%, rgba(30, 42, 94, 0.035), transparent 65%),
    radial-gradient(ellipse 900px 900px at 100% 15%, rgba(30, 42, 94, 0.025), transparent 65%);
  background-attachment: fixed;
  background-color: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Dark theme: swap the navy-tinted-on-cream highlights for a white-tinted
   glow instead — same positions/sizes, same approach as the customer
   portal's dark-theme override. */
:root[data-theme="dark"] body {
  background-image:
    radial-gradient(ellipse 1100px 800px at 10% -5%, rgba(255, 255, 255, 0.05), transparent 65%),
    radial-gradient(ellipse 900px 900px at 100% 15%, rgba(255, 255, 255, 0.035), transparent 65%);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; color: var(--ink-950); }
h1 { font-size: 28px; line-height: 1.15; }
h2 { font-size: 20px; line-height: 1.25; }
h3 { font-size: 16px; line-height: 1.3; }

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Buttons — subtle depth instead of flat fills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 13px; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(30,42,94,0.25);
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px); box-shadow: 0 6px 18px rgba(30,42,94,0.32);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: var(--card); border-color: var(--line-strong); color: var(--ink-900); }
.btn-secondary:hover { background: var(--surface); border-color: var(--ink-600); }
.btn-danger { background: var(--signal-red); color: #fff; }
.btn-danger:hover { background: #a8362e; }
.btn-ghost { background: transparent; color: var(--ink-600); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: 6px 11px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 600; color: var(--ink-600); }
.field input, .field select, .field textarea {
  padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--card); transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.field .hint { font-size: 11px; color: var(--ink-400); }
.field .error { font-size: 11px; color: var(--signal-red); }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }

/* Cards — a soft glossy sheen (white highlight fading from the top
   edge) layered over the dark gradient, like light catching glass. */
.card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0) 45%),
    linear-gradient(180deg, var(--card-alt), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.card-pad { padding: 20px 22px; }

/*
  Signature element: the plate chip. Renders a vehicle plate number as an
  actual Ghana number-plate artifact — cream chip, black rule, bold
  tabular-mono text — instead of plain text, everywhere a plate appears
  across both portals.
*/
.plate {
  display: inline-flex; align-items: center; gap: 0;
  font-family: var(--font-mono); font-weight: 700; font-size: 12.5px; letter-spacing: 0.04em;
  background: #f2edda; color: #14140f; border: 1.5px solid #14140f; border-radius: 4px;
  padding: 3px 8px 3px 7px; line-height: 1;
}
.plate::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--route); margin-right: 6px; flex-shrink: 0; }

/* Utility */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-muted { color: var(--ink-600); }
.text-sm { font-size: 12px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.hidden { display: none !important; }
