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

:root {
  --brand: #006a35;
  --brand-dark: #004a24;
  --brand-light: #51fa91;
  --brand-tint: #e6f5ec;
  --bg: #f5f6f7;
  --panel: #ffffff;
  --panel-2: #fafbfc;
  --surface: #e6e8ea;
  --outline: #abadae;
  --border: #e6e8ea;
  --text: #2c2f30;
  --muted: #5a6065;
  --green: #006a35;
  --danger: #c0392b;
  --amber: #d4a030;
  --shadow-sm: 0 2px 8px rgba(0, 70, 33, 0.05);
  --shadow-md: 0 12px 36px -8px rgba(0, 70, 33, 0.08);
  --shadow-lg: 0 24px 48px -12px rgba(0, 70, 33, 0.06);
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Manrope', -apple-system, Segoe UI, Roboto, sans-serif;
  margin: 0; background: var(--bg); color: var(--text); line-height: 1.55;
  font-size: 15px; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; font-weight: 700; margin: 0; }
h1 { font-size: 28px; margin: 0 0 4px; line-height: 1.1; }
.sub { color: var(--muted); margin: 0 0 24px; font-size: 14px; }

/* ── TOP NAV ─────────────────────────────────────── */
.topnav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(171, 173, 174, 0.2);
  padding: 16px 28px; display: flex; align-items: center; gap: 26px;
  position: sticky; top: 0; z-index: 50;
}
.topnav .brand {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  letter-spacing: -0.02em; font-size: 19px; color: var(--text);
}
.topnav .brand span { color: var(--brand); }
.topnav a {
  color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color 0.15s;
}
.topnav a:hover { color: var(--brand); }
.topnav a.active { color: var(--brand); font-weight: 600; }
.topnav .spacer { flex: 1; }
.topnav .bell { position: relative; cursor: pointer; font-size: 18px; }
.topnav .bell .badge {
  position: absolute; top: -6px; right: -10px; background: var(--danger);
  color: white; border-radius: 10px; font-size: 10px; padding: 2px 6px;
  min-width: 18px; text-align: center; font-weight: 700;
}
.topnav button {
  background: var(--white); border: 1px solid var(--outline); color: var(--text);
  padding: 8px 16px; border-radius: 100px; font-family: 'Manrope', sans-serif;
  font-size: 13px; font-weight: 500; cursor: pointer; transition: background 0.15s;
}
.topnav button:hover { background: var(--surface); }

/* ── CONTAINER ────────────────────────────────────── */
.container { padding: 36px 28px; max-width: 1280px; margin: 0 auto; }

/* ── GRIDS ────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

/* ── PANELS ───────────────────────────────────────── */
.panel {
  background: var(--panel); border: 1px solid var(--surface);
  border-radius: var(--radius-md); padding: 24px 28px; box-shadow: var(--shadow-sm);
}
.panel h2 {
  font-family: 'Manrope', sans-serif; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted); margin: 0 0 14px; font-weight: 600;
}
.panel .big {
  font-family: 'Space Grotesk', sans-serif; font-size: 42px; font-weight: 700;
  color: var(--brand); line-height: 1; letter-spacing: -0.02em;
}

/* ── LIST ITEMS ───────────────────────────────────── */
.list-item { padding: 14px 0; border-bottom: 1px solid var(--surface); font-size: 14px; }
.list-item:last-child { border-bottom: none; }
.list-item .meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.list-item.overdue { border-left: 3px solid var(--danger); padding-left: 12px; }

/* ── TABLES ───────────────────────────────────────── */
table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--panel); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
th, td { padding: 14px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--surface); }
th {
  background: var(--bg); font-family: 'Manrope', sans-serif;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 600;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--panel-2); cursor: pointer; }

/* ── BUTTONS ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: var(--white);
  border: none; padding: 11px 22px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 13px; font-weight: 600;
  font-family: 'Manrope', sans-serif; text-decoration: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 6px 16px -4px rgba(0, 70, 33, 0.25); color: var(--white); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-amber { background: var(--amber); color: var(--text); }
.btn-amber:hover { background: #b8860b; }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #a92f25; }
.btn-ghost { background: var(--white); color: var(--text); border: 1px solid var(--outline); }
.btn-ghost:hover { background: var(--surface); color: var(--text); box-shadow: none; transform: none; }

/* ── BADGES ───────────────────────────────────────── */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
}
.badge-green { background: var(--brand-tint); color: var(--brand); }
.badge-muted { background: var(--surface); color: var(--muted); }
.badge-danger { background: #fde7e7; color: var(--danger); }
.badge-amber { background: #fff4dc; color: #8a6a00; }

/* ── LINKS ────────────────────────────────────────── */
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

/* ── FORMS ────────────────────────────────────────── */
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="url"], input[type="search"], input[type="date"], input[type="tel"],
select, textarea {
  background: var(--white); border: 1px solid var(--surface); color: var(--text);
  padding: 12px 16px; border-radius: var(--radius-sm); font-family: 'Manrope', sans-serif;
  font-size: 14px; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none; appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 106, 53, 0.08);
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 768px) {
  .topnav { padding: 12px 16px; gap: 14px; flex-wrap: wrap; }
  .topnav a { font-size: 13px; }
  .container { padding: 24px 18px; }
  .panel { padding: 20px 22px; }
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: 24px; }
}
