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

:root{
  --ink:#10241d; --muted:#6f7f78; --paper:#f5f8f6; --card:#fff;
  --brand:#0f7a53; --brand-dark:#07583b; --lime:#c8f04d; --line:#e4ebe7;
  --sidebar:#0d221b; --radius:24px;
}
*{box-sizing:border-box}
body{font-family:"DM Sans",sans-serif;background:var(--paper);color:var(--ink)}
h1,h2,h3,h4,.brand b{font-family:"Manrope",sans-serif;letter-spacing:-.04em}
.app-shell{min-height:100vh;display:flex}
.sidebar{position:fixed;inset:0 auto 0 0;width:272px;padding:28px 22px;background:var(--sidebar);color:#fff}
.main-content{margin-left:272px;width:calc(100% - 272px);min-height:100vh}
.content-wrap{max-width:1480px;margin:0 auto;padding:42px}
.brand{display:flex;align-items:center;gap:12px;color:inherit}
.brand-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--lime);color:var(--sidebar);box-shadow:0 12px 30px rgba(200,240,77,.18)}
.brand b{font-size:1.15rem;display:block}.brand small{display:block;font-size:.74rem;color:#93a69e;font-weight:500}
.sidebar .nav-link{display:flex;align-items:center;gap:12px;color:#adbbb5;border-radius:14px;padding:12px 14px;font-weight:600}
.sidebar .nav-link:hover{background:rgba(255,255,255,.07);color:#fff}
.sidebar .nav-link i{font-size:1.1rem}
.nav-label{font-size:.65rem;letter-spacing:.18em;color:#6f827a;margin:24px 14px 8px}
.user-mini{display:flex;align-items:center;gap:10px;border-top:1px solid rgba(255,255,255,.08);padding-top:20px}
.user-mini small{color:#7f9189}.avatar{width:40px;height:40px;border-radius:13px;background:#1b3b30;display:grid;place-items:center;font-weight:700}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:28px}
.page-head h1{font-size:clamp(2rem,4vw,3.25rem);font-weight:800;margin:0}
.page-head p{margin:4px 0 0;color:var(--muted)}
.eyebrow{font-size:.72rem!important;letter-spacing:.16em;font-weight:800;color:var(--brand)!important;margin-bottom:8px!important}
.btn-brand{background:var(--brand);border-color:var(--brand);color:#fff;border-radius:14px;font-weight:700}
.btn-brand:hover{background:var(--brand-dark);border-color:var(--brand-dark);color:#fff}
.btn{border-radius:14px;font-weight:700}
.form-control,.form-select{border:1px solid var(--line);border-radius:14px;min-height:48px;padding:.75rem 1rem}
.form-control:focus,.form-select:focus{border-color:#90bfa9;box-shadow:0 0 0 .2rem rgba(15,122,83,.08)}
.hero-card{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;min-height:255px;background:linear-gradient(120deg,#0c2d22,#0f6347);color:#fff;border-radius:32px;padding:36px;box-shadow:0 24px 60px rgba(13,34,27,.14)}
.hero-card h2{max-width:650px;font-size:2rem;margin:18px 0 8px}.hero-card p{color:#c7d7d1;margin:0}
.hero-orbit{width:160px;height:160px;border-radius:50%;border:1px solid rgba(255,255,255,.18);display:grid;place-items:center;font-size:3.4rem;color:var(--lime);box-shadow:0 0 0 28px rgba(255,255,255,.04),0 0 0 56px rgba(255,255,255,.025)}
.status-pill{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:7px 11px;font-size:.78rem;font-weight:800;white-space:nowrap}
.status-pill.success{background:#e6f7ef;color:#08734c}.status-pill.warning{background:#fff5d8;color:#9c6c00}.status-pill.neutral{background:#edf2ef;color:#53655e}
.hero-card .status-pill.success,.hero-card .status-pill.warning{background:rgba(255,255,255,.12);color:#fff}
.stat-card,.section-card,.profile-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px}
.stat-card{min-height:190px;display:flex;flex-direction:column;justify-content:flex-end;position:relative}
.stat-card span{color:var(--muted);font-weight:600}.stat-card strong{font-family:"Manrope";font-size:3.4rem;line-height:1;margin-top:8px}.stat-card small{color:#91a099;margin-top:6px}
.stat-icon{position:absolute;right:22px;top:22px;width:45px;height:45px;border-radius:14px;background:#eff7f3;display:grid;place-items:center;color:var(--brand);font-size:1.2rem}
.stat-card.accent{background:var(--lime);border-color:var(--lime)}
.section-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.section-card-head h3{margin:0}
.steps-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.steps-grid>div{position:relative;padding:25px;border-radius:20px;background:#f7faf8;border:1px solid var(--line)}
.steps-grid>div>span{position:absolute;right:16px;top:14px;font-size:.7rem;font-weight:800;color:#a6b2ad}.steps-grid i{font-size:1.5rem;color:var(--brand)}.steps-grid h4{font-size:1rem;margin:16px 0 6px}.steps-grid p{font-size:.9rem;color:var(--muted);margin:0}
.map-card{position:relative;background:#dfe9e4;border:1px solid var(--line);padding:8px;border-radius:28px;overflow:hidden;min-height:520px}
#attendanceMap,#adminMap{height:504px;border-radius:22px}
.map-overlay{position:absolute;z-index:500;left:24px;bottom:24px;background:rgba(13,34,27,.92);color:#fff;border-radius:16px;padding:12px 15px;display:flex;gap:10px;align-items:center;box-shadow:0 12px 28px rgba(0,0,0,.18)}
.map-overlay small,.map-overlay strong{display:block}.map-overlay small{color:#a9bbb4}.map-dot{width:10px;height:10px;border-radius:50%;background:var(--lime);box-shadow:0 0 0 6px rgba(200,240,77,.14)}
.device-checks{display:flex;flex-direction:column;gap:12px;margin:22px 0}
.device-checks>div{display:flex;gap:12px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:16px}.device-checks i{width:38px;height:38px;border-radius:12px;background:#edf6f2;display:grid;place-items:center;color:var(--brand)}.device-checks b,.device-checks small{display:block}.device-checks small{color:var(--muted)}
.privacy-note{font-size:.78rem;color:var(--muted);margin:18px 0 0;display:flex;gap:7px}
.modern-table{margin:0}.modern-table>:not(caption)>*>*{padding:16px 12px;border-bottom-color:#edf1ef}.modern-table th{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:#8c9b95;font-weight:800}
.profile-card{text-align:center}.avatar-xl{width:104px;height:104px;border-radius:34px;background:var(--sidebar);color:var(--lime);font-family:"Manrope";font-size:2.7rem;display:grid;place-items:center;margin:8px auto 22px}.profile-card p{color:var(--muted)}
.history-row{display:flex;justify-content:space-between;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.history-row small{display:block;color:var(--muted);margin-top:3px}
.login-body{background:#0d221b;min-height:100vh}
.login-grid{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr}
.login-visual{position:relative;overflow:hidden;padding:64px;display:flex;flex-direction:column;justify-content:space-between;background:radial-gradient(circle at 80% 20%,rgba(200,240,77,.18),transparent 28%),linear-gradient(145deg,#0d221b,#0e4b38);color:#fff}
.login-visual:after{content:"";position:absolute;width:480px;height:480px;border:1px solid rgba(255,255,255,.08);border-radius:50%;right:-180px;bottom:-120px;box-shadow:0 0 0 70px rgba(255,255,255,.025),0 0 0 140px rgba(255,255,255,.015)}
.visual-badge{align-self:flex-start;border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:10px 14px;color:#cfe0d9}
.login-visual h1{font-size:clamp(3rem,5vw,5.8rem);line-height:.94;max-width:850px}.login-visual .lead{max-width:620px;color:#b9cec5;margin-top:24px}
.visual-cards{display:flex;gap:14px;position:relative;z-index:2}.visual-cards>div{display:flex;gap:12px;align-items:center;min-width:220px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:15px}.visual-cards i{color:var(--lime);font-size:1.3rem}.visual-cards b,.visual-cards small{display:block}.visual-cards small{color:#9fb4ac}
.login-panel{background:#f6f8f7;display:grid;place-items:center;padding:40px}.login-card{width:min(440px,100%)}.login-card h2{font-size:2.35rem;font-weight:800}.input-icon{position:relative}.input-icon i{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:#80908a}.input-icon .form-control{padding-left:46px}.login-note{font-size:.8rem;color:#7a8983;text-align:center;margin-top:24px}
.mobile-head{height:70px;padding:12px 18px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}
.mobile-head .brand-mark{width:38px;height:38px}.mobile-head .brand.compact{color:var(--ink)}
@media(max-width:991px){.main-content{margin-left:0;width:100%}.content-wrap{padding:26px 18px}.page-head{align-items:flex-start;flex-direction:column}.login-grid{grid-template-columns:1fr}.login-visual{display:none}.login-panel{min-height:100vh}.steps-grid{grid-template-columns:1fr}.hero-orbit{display:none}}
@media(max-width:576px){.hero-card{padding:26px;min-height:230px}.hero-card h2{font-size:1.6rem}.section-card,.stat-card{border-radius:20px}.content-wrap{padding:22px 14px}}

/* ===== Logout patch ===== */
.btn-logout{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  background:rgba(255,255,255,.06);
  color:#d7e2dd;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:12px 14px;
  font-weight:700;
  transition:background .2s ease,border-color .2s ease,color .2s ease,transform .2s ease;
}
.btn-logout:hover{
  background:rgba(255,90,90,.12);
  border-color:rgba(255,90,90,.22);
  color:#ffb4b4;
  transform:translateY(-1px);
}
.btn-logout:focus{
  color:#fff;
  box-shadow:0 0 0 .2rem rgba(255,90,90,.12);
}
.btn-mobile-logout{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid var(--line);
  background:#fff;
  color:var(--ink);
  border-radius:14px;
}
.btn-mobile-logout:hover{
  background:#fff1f1;
  border-color:#ffd2d2;
  color:#a82424;
}
