/* ICF Project Management Module — shared.css
   Design system mirrors the ICF Intelligence Platform (navy / gold, Outfit).
   Internal Use Only. */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --navy:        #0B1623;
  --navy-mid:    #112035;
  --navy-light:  #1A3050;
  --navy-border: #243d5c;
  --gold:        #C8993A;
  --gold-light:  #e0b254;
  --gold-dim:    #8a6a26;

  --green:  #2ecc71;
  --amber:  #f39c12;
  --red:    #e74c3c;
  --blue:   #3498db;

  --text-primary:   #e8edf3;
  --text-secondary: #8fa3bc;
  --text-muted:     #4d6680;

  --surface-0: #070e18;   /* page bg */
  --surface-1: #0d1c2e;   /* card bg */
  --surface-2: #112035;   /* elevated / hover */
  --surface-3: #1a3050;   /* input bg */

  --font-sans: 'Outfit', sans-serif;
  --radius: 6px;
  --radius-lg: 10px;
  --t: 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
  font-family: var(--font-sans);
  background: var(--surface-0);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

/* ── Brand lockup ─────────────────────────────────────────── */
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .platform {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--gold);
}
.brand-text .module {
  font-size: 10px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  border: 1px solid var(--navy-border); border-radius: var(--radius);
  background: var(--surface-2); color: var(--text-primary);
  padding: 10px 16px; cursor: pointer; transition: var(--t);
}
.btn:hover { background: var(--navy-light); }
.btn-primary {
  background: var(--gold); border-color: var(--gold); color: #1a1206;
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ── Inputs ───────────────────────────────────────────────── */
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: .03em;
  text-transform: uppercase; color: var(--text-secondary); margin-bottom: 6px;
}
.field input {
  width: 100%; font-family: var(--font-sans); font-size: 14px;
  color: var(--text-primary); background: var(--surface-3);
  border: 1px solid var(--navy-border); border-radius: var(--radius);
  padding: 10px 12px; transition: var(--t);
}
.field input:focus { outline: none; border-color: var(--gold); }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--surface-1); border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg); padding: 24px;
}

/* ── Alerts ───────────────────────────────────────────────── */
.alert { border-radius: var(--radius); padding: 10px 12px; font-size: 13px; margin-bottom: 14px; }
.alert-error { background: rgba(231,76,60,.12); color: #f2a79f; border: 1px solid rgba(231,76,60,.35); }
.alert-info  { background: rgba(52,152,219,.12); color: #a9d4f2; border: 1px solid rgba(52,152,219,.35); }

/* ── Pills ────────────────────────────────────────────────── */
.pill {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .03em;
  padding: 2px 10px; border-radius: 999px;
  background: rgba(200,153,58,.14); color: var(--gold-light);
}

/* ── Login layout ─────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(26,48,80,.6), transparent 60%),
    var(--surface-0);
}
.login-card { width: 100%; max-width: 380px; }
.login-card .brand { justify-content: center; margin-bottom: 22px; }
.login-title { text-align: center; font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.login-sub { text-align: center; font-size: 13px; color: var(--text-muted); margin-bottom: 22px; }
.login-foot { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 18px; }

/* ── Topbar (authenticated pages) ─────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: var(--surface-1);
  border-bottom: 1px solid var(--navy-border);
}
.topbar-right { display: flex; align-items: center; gap: 14px; }
.userchip { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.userchip .u-name { font-size: 13px; font-weight: 600; }
.userchip .u-role { font-size: 11px; color: var(--text-muted); }

/* ── Content shell ────────────────────────────────────────── */
.content { max-width: 1100px; margin: 0 auto; padding: 28px 24px; }
.page-title { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.page-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 22px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tile { background: var(--surface-1); border: 1px solid var(--navy-border); border-radius: var(--radius-lg); padding: 18px; }
.tile h3 { font-size: 14px; margin-bottom: 6px; }
.tile p { font-size: 12px; color: var(--text-muted); }
.muted { color: var(--text-muted); }
