:root {
  --navy: #182847;
  --navy-deep: #0d1930;
  --red: #9b211a;
  --red-bright: #c6453c;
  --cream: #f7f5f1;
  --white: #ffffff;
  --ink: #17233a;
  --muted: #687289;
  --line: #dfe3ea;
  --green: #167a50;
  --amber: #a05b00;
  --shadow: 0 16px 50px rgba(16, 32, 61, .11);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--cream); }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; background: linear-gradient(135deg, #fff 0%, var(--cream) 100%); }
a { color: inherit; }
.hidden { display: none !important; }
.shell { min-height: 100vh; }
.topbar { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px clamp(20px, 4vw, 64px); background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.brand img { display: block; width: 160px; height: auto; }
.nav-user { display: flex; align-items: center; gap: 16px; }
.nav-user small { display: block; color: var(--muted); }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; padding: 10px 14px; border-radius: 999px; font-weight: 650; color: var(--navy); }
.nav-links a:hover, .nav-links a.active { background: #edf1f7; }
.logout { color: var(--red) !important; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 72px; }
.hero-row { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 28px; }
.eyebrow { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 800; color: var(--red-bright); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1; color: var(--navy); margin-bottom: 10px; }
h2 { color: var(--navy); font-size: 25px; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.stat { min-height: 138px; position: relative; overflow: hidden; }
.stat::after { content: ""; position: absolute; width: 110px; height: 110px; border: 18px solid rgba(155, 33, 26, .06); border-radius: 50%; right: -30px; bottom: -44px; }
.stat strong { display: block; font-size: 38px; color: var(--navy); }
.stat span { color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 38px 0 16px; }
.section-head.compact { margin: 0 0 16px; align-items: flex-start; }
.employee-grid { margin-top: 20px; }
.document-card { border-top: 4px solid var(--navy); }
.expiry { padding: 10px 12px; border-radius: 9px; background: #edf1f7; }
.expiry.warning { color: #8a1e19; background: #fdebea; font-weight: 750; }
small.muted { display: block; }
.button, button { appearance: none; border: 0; border-radius: 10px; background: var(--red); color: #fff; padding: 12px 18px; font: inherit; font-weight: 750; cursor: pointer; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.button:hover, button:hover { background: #7e1813; }
.button.secondary { color: var(--navy); background: #edf1f7; }
.button.success { background: var(--green); }
.button.danger { background: #b3261e; }
.button.small, button.small { padding: 8px 11px; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { color: var(--navy); font-size: 14px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #cbd2df; border-radius: 10px; padding: 12px 13px; background: #fff; color: var(--ink); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(155, 33, 26, .12); border-color: var(--red); }
textarea { min-height: 100px; resize: vertical; }
.alert { border-radius: 12px; padding: 13px 16px; margin-bottom: 20px; background: #edf1f7; }
.alert.success { color: #0f5b3a; background: #e6f6ef; }
.alert.error { color: #8a1e19; background: #fdebea; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 14px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f0f3f8; color: var(--navy); font-size: 13px; }
tbody tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 800; }
.status.pending { color: var(--amber); background: #fff2dc; }
.status.approved { color: var(--green); background: #e6f6ef; }
.status.rejected { color: #a5211a; background: #fdebea; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: var(--navy-deep); }
.login-art { min-height: 100vh; padding: clamp(48px, 7vw, 100px); display: flex; flex-direction: column; justify-content: space-between; color: white; background: radial-gradient(circle at 70% 70%, rgba(198,69,60,.38), transparent 32%), linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 75%); position: relative; overflow: hidden; }
.login-art::after { content: "✈"; position: absolute; right: 12%; bottom: 18%; font-size: clamp(80px, 14vw, 190px); color: rgba(255,255,255,.9); transform: rotate(-12deg); text-shadow: 0 0 42px rgba(198,69,60,.8); }
.login-art img { width: 190px; filter: brightness(0) invert(1); position: relative; z-index: 2; }
.login-copy { max-width: 560px; position: relative; z-index: 2; }
.login-copy h1 { color: #fff; font-size: clamp(48px, 7vw, 92px); }
.login-copy em { color: #ef6258; font-weight: 400; }
.login-panel { background: #fff; padding: clamp(32px, 7vw, 100px); display: flex; align-items: center; }
.login-box { width: min(440px, 100%); margin: auto; }
.login-box h2 { font-size: 34px; margin-bottom: 8px; }
.login-box form { display: grid; gap: 18px; margin-top: 30px; }
.review-card { border-left: 5px solid var(--red); }
.review-card header { display: flex; justify-content: space-between; gap: 18px; }
.review-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; margin: 14px 0; }
.inline-form { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: end; }
.footer-note { margin-top: 40px; text-align: center; color: var(--muted); font-size: 13px; }

@media (max-width: 820px) {
  .login-page { grid-template-columns: 1fr; }
  .login-art { min-height: 320px; padding: 38px 28px; }
  .login-art img { width: 150px; }
  .login-copy h1 { font-size: 48px; }
  .login-art::after { right: 7%; bottom: 4%; font-size: 110px; }
  .login-panel { padding: 46px 24px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .nav-user { width: 100%; justify-content: space-between; }
  .hero-row { align-items: flex-start; flex-direction: column; }
  .grid.two, .grid.three, .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .inline-form { grid-template-columns: 1fr; }
}
