/* GHS Study Leave Platform — navy house style (matches UCP / HRD Nexus).
   Plain CSS, no build step, cPanel-friendly. */
:root {
  /* Ghana green house style — matches the Upgrading & Conversion portal. */
  --navy:        #0b3d24;  /* primary dark green (name kept for compatibility) */
  --navy-700:    #0f4a2c;
  --navy-600:    #124a2e;
  --accent:      #046a38;
  --accent-dark: #03502a;
  --gold:        #fcd116;
  --ink:         #1b2430;
  --muted:       #64748b;
  --line:        #e6e9ef;
  --bg:          #eef1f6;
  --card:        #ffffff;
  --ok:          #1b5e20;
  --ok-bg:       #e8f5e9;
  --warn:        #8a5200;
  --warn-bg:     #fff4e0;
  --danger:      #ce1126;
  --danger-bg:   #fbe7e9;
  --radius:      12px;
  --grad-sidebar: linear-gradient(180deg, #0f4a2c 0%, #0b3d24 55%, #071f13 100%);
  --grad-guest:   linear-gradient(135deg, #0f4a2c 0%, #0b3d24 55%, #071f13 100%);
  --ring:        0 0 0 3px rgba(4,106,56,.16);
  --font: 'Libre Franklin', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Guest / auth pages ─────────────────────────────────────────────────── */
.guest-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem 1rem; position: relative;
  background: var(--grad-guest);
}
.guest-card {
  width: 100%; max-width: 420px; background: var(--card);
  border-radius: 16px; box-shadow: 0 20px 50px -20px rgba(8, 20, 40, .55);
  padding: 2.4rem 2.1rem;
}
.guest-card--wide { max-width: 560px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.readonly-fill { background: #f1f5f9; color: #334155; }
.hint { font-size: .78rem; color: var(--muted); margin: .3rem 0 0; }
.brand { text-align: center; margin-bottom: 1.6rem; }
.brand .agency { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.brand .sub { text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; color: var(--muted); margin-top: 2px; }
.brand .logo {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto .7rem;
  background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem;
}

/* ── Forms ──────────────────────────────────────────────────────────────── */
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-size: .8rem; font-weight: 600; color: #24303f; margin-bottom: .35rem; }
.input {
  width: 100%; padding: .68rem .8rem; border: 1px solid #cbd5e1; border-radius: 9px;
  font-size: .95rem; font-family: inherit; background: #fff; color: var(--ink);
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
select.input { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%2364748b' d='M3 4.5L6 8l3-3.5z'/></svg>"); background-repeat: no-repeat; background-position: right .7rem center; padding-right: 2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1.1rem; border: none; border-radius: 9px; font-size: .92rem; font-weight: 600;
  cursor: pointer; font-family: inherit; background: var(--accent); color: #fff; transition: background .15s;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { background: #f1f5f9; }
.btn-sm { padding: .45rem .7rem; font-size: .82rem; }

/* ── Alerts ─────────────────────────────────────────────────────────────── */
.alert { border-radius: 9px; padding: .7rem .9rem; font-size: .85rem; margin-bottom: 1rem; border: 1px solid; }
.alert-error   { background: var(--danger-bg); border-color: #f3c2bd; color: var(--danger); }
.alert-success { background: var(--ok-bg); border-color: #b7dfc6; color: var(--ok); }
.alert-warn    { background: var(--warn-bg); border-color: #f0d199; color: var(--warn); }

/* ── App shell ──────────────────────────────────────────────────────────── */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 250px; flex-shrink: 0; background: var(--grad-sidebar); color: #cfe3d6;
  display: flex; flex-direction: column; padding: 1.1rem 0;
}
.sidebar .side-brand { padding: 0 1.3rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: .8rem; }
.sidebar .side-brand .agency { color: #fff; font-weight: 700; font-size: .98rem; }
.sidebar .side-brand .sub { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: #9db8a8; margin-top: 2px; }
.side-brand-row { display: flex; align-items: center; gap: .6rem; }
.side-logo { width: 34px; height: 34px; border-radius: 6px; background: #fff; padding: 3px; flex-shrink: 0; }
.logo-img { width: 62px; height: 62px; object-fit: contain; display: block; margin: 0 auto .7rem; }
.nav-link {
  display: flex; align-items: center; gap: .6rem; padding: .62rem 1.3rem; color: #cfe3d6;
  font-size: .9rem; border-left: 3px solid transparent;
}
.nav-link:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.nav-link.active { background: rgba(255,255,255,.10); border-left-color: var(--gold); color: #fff; }
.nav-link .icon { width: 18px; text-align: center; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 60px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem;
}
.topbar .page-title { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.topbar .user { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.content { padding: 1.5rem; flex: 1; }

/* ── Cards / tables / badges ────────────────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.card-body { padding: 1.3rem 1.5rem; }
.card + .card { margin-top: 1.1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.stat .num { font-size: 1.8rem; font-weight: 800; color: var(--navy); }
.stat .lbl { font-size: .8rem; color: var(--muted); margin-top: .1rem; }

table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.tbl th { text-align: left; padding: .6rem .7rem; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--line); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
table.tbl td { padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
.badge { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-muted { background: #eef2f7; color: var(--muted); }

.text-muted { color: var(--muted); }
.mb-0 { margin-bottom: 0; } .mt-0 { margin-top: 0; }

@media (max-width: 768px) {
  .sidebar { width: 64px; }
  .sidebar .side-brand .agency, .sidebar .side-brand .sub, .nav-link span:not(.icon) { display: none; }
}

/* Pagination (plain-CSS paginator; see resources/views/vendor/pagination) */
.pagination { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; list-style: none; padding: 0; margin: 0; }
.pg-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2rem; height: 2rem; padding: 0 .55rem;
  border: 1px solid var(--line); border-radius: 8px;
  font-size: .85rem; color: var(--navy); background: #fff; text-decoration: none;
}
.pg-link:hover { background: #f1f5f9; text-decoration: none; }
.pg-active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.pg-disabled { color: #9aa6b2; background: #f8fafc; cursor: default; }
