/* ==========================================================================
   Rent Portal — Corporate Design System
   Palette: deep navy/steel blue on white, with a muted brass "seal" accent
   used only for the official status stamp.
   ========================================================================== */

:root {
  --corp-950: #0a1a2e;
  --corp-900: #102541;
  --corp-800: #17304f;
  --corp-700: #1f3d68;
  --corp-600: #2b4e82;
  --corp-500: #3a639f;
  --seal: #9c7a1e;
  --seal-light: #f5eedc;
  --paper: #f6f7f9;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--paper);
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* Headings use the serif display face; body stays on Inter (set via Tailwind config). */
h1, h2, h3, .font-display {
  font-family: "Source Serif 4", Georgia, serif;
}

.font-tabular {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  font-variant-numeric: tabular-nums;
}

/* Visible keyboard focus everywhere, incl. inside dark nav */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* --------------------------------------------------------------------
   Signature element: the official ledger stamp
   Used for invoice/payment status across dashboards and receipts —
   styled like a formal document seal rather than a generic pill badge.
   -------------------------------------------------------------------- */
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
  white-space: nowrap;
}
.stamp::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.stamp-paid      { color: #1e7b45; background: #eef8f1; }
.stamp-pending   { color: #b45309; background: #fdf5e9; }
.stamp-overdue   { color: #b3261e; background: #fcecec; }
.stamp-cancelled { color: #55606e; background: #f1f3f5; }

/* --------------------------------------------------------------------
   Layout chrome
   -------------------------------------------------------------------- */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: linear-gradient(180deg, var(--corp-900), var(--corp-800));
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 6px 16px -8px rgba(10,26,46,0.5);
}

.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 6px;
  background: var(--seal-light);
  color: var(--corp-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  border: 1px solid rgba(156,122,30,0.4);
}

.nav-link {
  color: rgba(255,255,255,0.75);
  transition: color 120ms ease, background-color 120ms ease;
}
.nav-link:hover { color: #fff; background-color: rgba(255,255,255,0.06); }
.nav-link.active {
  color: #fff;
  background-color: rgba(255,255,255,0.1);
  box-shadow: inset 0 -2px 0 var(--seal);
}

.card {
  background: #fff;
  border: 1px solid #e6e9ee;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(16,37,65,0.04);
}

.tab-link {
  border-bottom: 2px solid transparent;
  color: #5b6472;
}
.tab-link.active {
  border-color: var(--corp-700);
  color: var(--corp-800);
  font-weight: 700;
  background: var(--corp-50, #eef3f9);
}

table thead th {
  font-family: "Inter", ui-sans-serif, system-ui;
  letter-spacing: 0.04em;
}

.badge-count {
  background: #b3261e;
  color: #fff;
  border-radius: 999px;
  font-size: 0.65rem;
  line-height: 1;
  min-width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.3rem;
}

/* Mobile nav */
#mobileMenu { display: none; }
#mobileMenu.open { display: block; }

@media print {
  .topbar, .print\:hidden, #mobileMenu { display: none !important; }
}
