/* Zeatrace — navy / slate / white corporate identity, self-contained (no framework, no CDN,
   no build step). Matches the brand the original React app used. */
:root {
  --navy: #1a365d; --navy-700: #2c5282; --navy-50: #ebf2fb;
  --slate: #475569; --slate-400: #94a3b8; --slate-100: #f1f5f9; --slate-50: #f8fafc;
  --line: #e2e8f0; --white: #ffffff;
  --green: #16a34a; --green-bg: #dcfce7; --amber: #d97706; --amber-bg: #fef3c7;
  --red: #dc2626; --red-bg: #fee2e2; --blue: #2563eb; --blue-bg: #dbeafe;
  --radius: 12px; --shadow: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.06);
  --shadow-lg: 0 10px 25px rgba(15,23,42,.10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #0f172a; background: var(--slate-50); line-height: 1.55; }
h1,h2,h3,h4 { font-weight: 700; color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--slate); }
.small { font-size: 13px; }

/* Nav */
.nav { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); font-size: 20px; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-size: 15px; font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--slate); font-weight: 500; font-size: 15px; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px;
  font-weight: 600; font-size: 14px; border: 1px solid transparent; cursor: pointer; transition: .15s; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); text-decoration: none; }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy); text-decoration: none; }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* Cards & layout */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); }
.stat { display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.stat-label { font-size: 13px; color: var(--slate); }
.stat-value { font-size: 22px; font-weight: 700; color: #0f172a; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #234876 100%); color: #fff; padding: 80px 0; }
.hero h1 { color: #fff; font-size: 44px; max-width: 720px; }
.hero p { color: #cbd5e1; font-size: 19px; max-width: 620px; margin-top: 8px; }
.hero .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--slate); font-weight: 600; font-size: 12px; text-transform: uppercase;
  letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 12px; border-bottom: 1px solid var(--line); }
tbody tr:hover { background: var(--slate-50); }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-blue { background: var(--blue-bg); color: var(--blue); }
.badge-grey { background: var(--slate-100); color: var(--slate); }

/* Forms */
label { display: block; font-size: 13px; font-weight: 600; color: var(--slate); margin-bottom: 6px; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 14px; font-family: inherit; background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-700);
  box-shadow: 0 0 0 3px var(--navy-50); }
.field { margin-bottom: 16px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 180px; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.alert-error { background: var(--red-bg); color: #991b1b; }
.alert-success { background: var(--green-bg); color: #166534; }
.alert-warn { background: var(--amber-bg); color: #92400e; }

/* Footer */
.footer { background: var(--navy); color: #cbd5e1; padding: 40px 0; margin-top: 64px; font-size: 14px; }
.footer a { color: #e2e8f0; }
.footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }

.section { padding: 64px 0; }
.center { text-align: center; }
.mt { margin-top: 24px; } .mb { margin-bottom: 24px; }
.page-head { margin: 32px 0 24px; }
.page-head h1 { font-size: 30px; }
