/* iJen shared styles: landing, dashboard, report, login, admin. */
:root {
  --blue: #0064D4; --blue-deep: #004FA8; --blue-soft: #EEF5FF; --navy: #0B1B33;
  --ink: #1E293B; --muted: #64748B; --line: #E2E8F0; --bg: #F7F9FC; --card: #FFFFFF;
  --good: #0F8A5F; --warn: #B45309; --bad: #B91C1C;
  --radius: 16px; --shadow: 0 1px 2px rgba(11,27,51,.05), 0 10px 30px rgba(11,27,51,.07);
  --ease: cubic-bezier(.22,.9,.3,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Inter, -apple-system, Segoe UI, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
h1, h2, h3, h4, .brand { font-family: "Space Grotesk", Inter, sans-serif; color: var(--navy); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -.02em; }
h2 { font-size: clamp(24px, 3.2vw, 34px); letter-spacing: -.01em; }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
a { color: var(--blue); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.center { text-align: center; }
.hidden { display: none !important; }

.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.brand { font-weight: 700; font-size: 22px; text-decoration: none; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.brand .i { color: var(--blue); }
.logo-dot { width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(135deg, var(--blue), #3B8BEB); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.nav { display: flex; gap: 18px; align-items: center; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 13px 22px;
  font: 600 15.5px Inter, sans-serif; cursor: pointer; text-decoration: none; transition: transform .15s var(--ease), background .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(0,100,212,.25); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pill { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-deep); }
.pill.good { background: #E7F7EF; color: var(--good); } .pill.warn { background: #FFF4E5; color: var(--warn); } .pill.bad { background: #FDECEC; color: var(--bad); }

label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin: 0 0 6px; }
input[type=text], input[type=email], input[type=number], input[type=password], select, textarea {
  width: 100%; font: 15.5px Inter, sans-serif; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,100,212,.12); }
.field { margin-bottom: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); }
.err { color: var(--bad); font-size: 14px; min-height: 1.2em; margin-top: 8px; }
.ok { color: var(--good); font-size: 14px; }

.bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), #3B8BEB); border-radius: 999px; transition: width .6s var(--ease); }

footer.site { padding: 40px 0; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 60px; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(0,100,212,.2); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 14.5px; z-index: 100; opacity: 0; transition: opacity .25s; pointer-events: none; }
.toast.show { opacity: 1; }
