:root {
  --navy: #173f5f;
  --navy-2: #0e2c45;
  --teal: #148c8c;
  --teal-bright: #1ba8a8;
  --blue: #2b78c5;
  --ink: #172433;
  --muted: #6d7a87;
  --line: #dce4ea;
  --surface: #ffffff;
  --canvas: #f4f7f9;
  --soft-blue: #eaf2f8;
  --soft-teal: #e4f5f3;
  --soft-amber: #fff5df;
  --soft-red: #fdecec;
  --green: #1d865a;
  --amber: #a8670d;
  --red: #b23b3b;
  --shadow: 0 18px 50px rgba(24, 54, 78, .11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--canvas); font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 5px; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow.light { color: #75d7d3; }
.brand-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(145deg, #fff, #d9f1f0); color: var(--navy); font-size: 17px; font-weight: 900; letter-spacing: -.08em; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.brand-mark span { color: var(--teal); }
.brand-mark-large { width: 74px; height: 74px; border-radius: 20px; font-size: 27px; }
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(420px, .95fr); background: #fff; }
.login-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 62px 8vw 55px; color: #fff; background: linear-gradient(145deg, rgba(9, 40, 62, .96), rgba(23, 80, 106, .94)), radial-gradient(circle at 80% 15%, #1cc1b7, transparent 40%); }
.login-brand::before, .login-brand::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); }
.login-brand::before { width: 620px; height: 620px; right: -290px; top: -150px; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.018); }
.login-brand::after { width: 260px; height: 260px; left: -100px; bottom: -100px; background: rgba(25,168,168,.12); }
.login-brand > * { position: relative; z-index: 1; }
.login-brand h1 { max-width: 650px; margin: 9px 0 20px; font-size: clamp(42px, 5vw, 70px); line-height: 1.02; letter-spacing: -.045em; }
.login-lead { max-width: 580px; margin: 0; color: #d1e0e8; font-size: 17px; line-height: 1.7; }
.login-features { display: flex; flex-wrap: wrap; gap: 10px; }
.login-features span { padding: 9px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #e8f6f5; background: rgba(255,255,255,.06); }
.login-panel { display: grid; place-items: center; padding: 45px; background: linear-gradient(135deg, #fff, #f7fafb); }
.login-card { width: min(420px, 100%); }
.login-card h2 { margin: 6px 0 7px; font-size: 32px; letter-spacing: -.03em; }
.login-card > .muted { margin: 0 0 28px; }
.login-card label, .form-grid label { display: grid; gap: 7px; margin-bottom: 17px; color: #344251; font-size: 12px; font-weight: 750; }
input, select, textarea { width: 100%; border: 1px solid #cfd9e0; border-radius: 10px; padding: 11px 12px; color: var(--ink); background: #fff; outline: none; transition: .18s ease; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,140,140,.12); }
textarea { min-height: 92px; resize: vertical; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; border: 0; border-radius: 9px; padding: 9px 15px; font-weight: 780; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--teal), #0a6e75); box-shadow: 0 8px 20px rgba(20,140,140,.22); }
.btn-secondary { color: var(--navy); background: var(--soft-blue); }
.btn-outline { color: var(--navy); border: 1px solid #c7d4de; background: #fff; }
.btn-danger { color: var(--red); background: var(--soft-red); }
.btn-small { min-height: 32px; padding: 6px 10px; font-size: 12px; }
.btn-full { width: 100%; justify-content: space-between; padding-inline: 18px; }
.form-error { min-height: 18px; color: var(--red); font-size: 12px; }
.demo-box { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; padding: 14px; border: 1px dashed #c8d6df; border-radius: 12px; background: #f7fafb; }
.demo-box b { grid-column: 1/-1; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.demo-login { border: 0; border-radius: 8px; padding: 8px; color: var(--navy); background: var(--soft-blue); font-weight: 700; }
.mobile-logo { display: none; align-items: center; gap: 12px; margin-bottom: 28px; color: var(--navy); }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 254px 1fr; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 254px; display: flex; flex-direction: column; padding: 20px 15px; color: #fff; background: linear-gradient(180deg, var(--navy-2), var(--navy)); }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 25px; border-bottom: 1px solid rgba(255,255,255,.09); }
.sidebar-brand b { display: block; font-size: 16px; letter-spacing: .07em; }
.sidebar-brand small { color: #9eb9c9; font-size: 10px; }
.sidebar nav { display: grid; gap: 5px; padding: 22px 0; }
.nav-button { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; border-radius: 10px; padding: 11px 12px; color: #b9ccd7; background: transparent; text-align: left; font-weight: 680; }
.nav-button:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-button.active { color: #fff; background: linear-gradient(90deg, rgba(27,168,168,.34), rgba(27,168,168,.12)); box-shadow: inset 3px 0 var(--teal-bright); }
.nav-icon { display: grid; place-items: center; width: 21px; font-size: 17px; }
.sidebar-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.05); }
.sidebar-foot b, .sidebar-foot small { display: block; }
.sidebar-foot b { font-size: 11px; }.sidebar-foot small { margin-top: 2px; color: #9eb9c9; font-size: 9px; }
.security-dot { width: 9px; height: 9px; border-radius: 50%; background: #50d7a1; box-shadow: 0 0 0 4px rgba(80,215,161,.14); }
.workspace { grid-column: 2; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; min-height: 76px; display: flex; align-items: center; gap: 16px; padding: 13px 28px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(15px); }
.topbar h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.topbar-actions { position: relative; display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; color: #526473; background: #fff; }
.notification-button { position: relative; }.notification-button i { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: #e45b5b; }
.profile-button { display: flex; align-items: center; gap: 9px; border: 0; padding: 4px 7px 4px 4px; color: var(--ink); background: transparent; }
.avatar { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; color: #fff; background: linear-gradient(145deg, var(--teal), var(--navy)); font-size: 12px; font-weight: 800; }
.profile-copy { min-width: 115px; text-align: left; }.profile-copy b, .profile-copy small { display: block; }.profile-copy b { font-size: 12px; }.profile-copy small { margin-top: 2px; color: var(--muted); font-size: 10px; text-transform: capitalize; }
.profile-menu { position: absolute; right: 0; top: 52px; width: 150px; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.profile-menu button { width: 100%; border: 0; border-radius: 7px; padding: 9px; text-align: left; background: transparent; }.profile-menu button:hover { background: var(--soft-red); color: var(--red); }
.menu-button { display: none; }
.content { width: min(1500px, 100%); margin: auto; padding: 28px; outline: none; }
.page-head { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.page-head h2 { margin: 3px 0 5px; font-size: 25px; letter-spacing: -.025em; }.page-head p { margin: 0; color: var(--muted); }.page-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-left: auto; }
.card-grid { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 14px; }
.stat-card, .panel { border: 1px solid rgba(215,225,232,.95); border-radius: 14px; background: var(--surface); box-shadow: 0 7px 20px rgba(31,65,88,.045); }
.stat-card { position: relative; overflow: hidden; min-height: 132px; padding: 18px; }
.stat-card::after { content: ""; position: absolute; width: 62px; height: 62px; right: -22px; bottom: -22px; border-radius: 50%; background: var(--card-accent, var(--soft-blue)); }
.stat-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: var(--card-accent, var(--soft-blue)); color: var(--card-color, var(--blue)); font-size: 16px; }
.stat-value { margin: 13px 0 3px; font-size: 28px; line-height: 1; font-weight: 850; letter-spacing: -.04em; }.stat-label { color: var(--muted); font-size: 11px; font-weight: 650; }
.two-column { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .7fr); gap: 16px; margin-top: 16px; }
.panel { overflow: hidden; }.panel-header { display: flex; align-items: center; gap: 12px; padding: 17px 19px; border-bottom: 1px solid var(--line); }.panel-header h3 { margin: 0; font-size: 15px; }.panel-header p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }.panel-header .btn, .panel-header .link-button { margin-left: auto; }
.panel-body { padding: 19px; }.panel-body.flush { padding: 0; }
.link-button { border: 0; color: var(--teal); background: transparent; font-weight: 750; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 11px 14px; color: #6b7883; background: #f7f9fa; font-size: 10px; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { padding: 12px 14px; border-top: 1px solid #edf1f4; color: #344251; font-size: 12px; vertical-align: middle; }
tr:hover td { background: #fbfcfd; }.cell-main { display: flex; align-items: center; gap: 10px; }.mini-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 33px; height: 33px; border-radius: 10px; color: var(--navy); background: var(--soft-teal); font-size: 11px; font-weight: 850; }.cell-main b, .cell-main small { display: block; }.cell-main small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 5px 8px; font-size: 10px; font-weight: 780; white-space: nowrap; }.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }.badge.Active, .badge.Approved, .badge.Present { color: var(--green); background: #e8f6ee; }.badge.Pre-joining, .badge.Pending, .badge.Late { color: var(--amber); background: var(--soft-amber); }.badge.Inactive, .badge.Rejected, .badge.Absent { color: var(--red); background: var(--soft-red); }.badge.Completed { color: var(--blue); background: var(--soft-blue); }
.progress { width: 88px; height: 6px; overflow: hidden; border-radius: 999px; background: #e8edf1; }.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--teal-bright)); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 15px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }.search-box { position: relative; min-width: 250px; flex: 1; }.search-box input { padding-left: 38px; }.search-box::before { content: "⌕"; position: absolute; left: 13px; top: 8px; color: var(--muted); font-size: 19px; }.toolbar select { width: auto; min-width: 150px; }
.empty-state { padding: 48px 20px; color: var(--muted); text-align: center; }.empty-state strong { display: block; margin: 7px 0; color: var(--ink); font-size: 15px; }.empty-icon { display: grid; place-items: center; width: 50px; height: 50px; margin: auto; border-radius: 15px; color: var(--teal); background: var(--soft-teal); font-size: 22px; }
.action-menu { display: flex; flex-wrap: wrap; gap: 5px; }.action-menu button, .action-menu a { border: 0; border-radius: 7px; padding: 6px 8px; color: var(--navy); background: var(--soft-blue); font-size: 10px; font-weight: 750; text-decoration: none; }
.list-stack { display: grid; gap: 10px; }.list-item { display: flex; align-items: center; gap: 11px; padding: 11px; border: 1px solid #e7edf1; border-radius: 11px; }.list-item-main { min-width: 0; flex: 1; }.list-item b, .list-item small { display: block; }.list-item small { margin-top: 3px; color: var(--muted); font-size: 10px; }.list-item .badge { margin-left: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }.form-grid .span-2 { grid-column: 1/-1; }.form-section { grid-column: 1/-1; margin: 13px 0 14px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--navy); font-size: 12px; font-weight: 850; }.form-section:first-child { margin-top: 0; padding-top: 0; border: 0; }.form-actions { grid-column: 1/-1; display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.upload-zone { display: grid; place-items: center; min-height: 180px; padding: 24px; border: 2px dashed #bfcfd9; border-radius: 15px; color: var(--muted); background: #f9fbfc; text-align: center; }.upload-zone.dragging { border-color: var(--teal); background: var(--soft-teal); }.upload-zone input { display: none; }.upload-zone strong { display: block; margin: 9px 0 5px; color: var(--ink); }.upload-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; color: var(--teal); background: var(--soft-teal); font-size: 22px; }
.upload-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }.upload-summary div { padding: 13px; border-radius: 10px; background: var(--soft-blue); }.upload-summary b, .upload-summary small { display: block; }.upload-summary b { font-size: 22px; }.upload-summary small { color: var(--muted); }
.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }.report-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }.report-card .stat-icon { margin-bottom: 17px; }.report-card h3 { margin: 0 0 7px; }.report-card p { min-height: 44px; margin: 0 0 16px; color: var(--muted); line-height: 1.5; }
.ess-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 25px; border-radius: 17px; color: #fff; background: linear-gradient(130deg, var(--navy-2), #1d6471); box-shadow: var(--shadow); }.ess-hero::after { content: ""; position: absolute; width: 300px; height: 300px; right: -100px; top: -160px; border-radius: 50%; background: rgba(65,215,200,.12); }.ess-hero > * { position: relative; z-index: 1; }.ess-hero h2 { margin: 4px 0 5px; font-size: 26px; }.ess-hero p { margin: 0; color: #c8dce4; }.ess-profile { display: flex; align-items: center; gap: 12px; }.ess-profile .avatar { width: 50px; height: 50px; background: rgba(255,255,255,.15); }.ess-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin: 16px 0; }.quick-card { min-height: 112px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }.quick-card b { display: block; margin: 14px 0 2px; font-size: 19px; }.quick-card small { color: var(--muted); }.balance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.balance { padding: 15px; border-radius: 12px; background: var(--soft-blue); }.balance b, .balance small { display: block; }.balance b { font-size: 24px; }.balance small { margin-top: 3px; color: var(--muted); }
.calendar-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; }.day-cell { min-height: 72px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }.day-cell b { font-size: 10px; }.day-cell span { display: block; margin-top: 13px; font-size: 10px; }.day-cell.Present { border-color: #bfe3d0; background: #f3fbf6; }.day-cell.Late { border-color: #f0d29e; background: #fffaf0; }.day-cell.Absent { border-color: #efc1c1; background: #fff6f6; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; }.modal-backdrop { position: absolute; inset: 0; background: rgba(6,25,39,.62); backdrop-filter: blur(4px); }.modal-card { position: relative; width: min(720px, 100%); max-height: min(880px, calc(100vh - 36px)); overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.25); }.modal-card > header { display: flex; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }.modal-card h2 { margin: 0; font-size: 20px; }.modal-card > header .icon-button { margin-left: auto; }.modal-body { max-height: calc(100vh - 128px); overflow-y: auto; padding: 20px; }
.toast-region { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: grid; gap: 9px; }.toast { min-width: 280px; max-width: 420px; padding: 13px 15px; border-left: 4px solid var(--teal); border-radius: 10px; color: var(--ink); background: #fff; box-shadow: var(--shadow); animation: toast-in .2s ease-out; }.toast.error { border-color: var(--red); }.toast b { display: block; margin-bottom: 3px; }.toast span { color: var(--muted); font-size: 12px; }
.skeleton { overflow: hidden; position: relative; min-height: 90px; border-radius: 12px; background: #e9eef1; }.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } } @keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }
@media (max-width: 1180px) { .card-grid { grid-template-columns: repeat(3, 1fr); }.report-grid { grid-template-columns: repeat(2, 1fr); }.ess-quick { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .login-page { grid-template-columns: 1fr; }.login-brand { display: none; }.login-panel { min-height: 100vh; }.mobile-logo { display: flex; }.app-shell { grid-template-columns: 1fr; }.workspace { grid-column: 1; }.sidebar { transform: translateX(-105%); transition: transform .22s ease; box-shadow: 20px 0 60px rgba(4,20,31,.3); }.sidebar.open { transform: translateX(0); }.menu-button { display: grid; }.two-column { grid-template-columns: 1fr; }.content { padding: 20px; } }
@media (max-width: 640px) { .login-panel { padding: 25px; }.topbar { padding: 11px 14px; }.topbar .eyebrow, .profile-copy, .notification-button { display: none; }.topbar h1 { font-size: 18px; }.content { padding: 15px; }.page-head { align-items: flex-start; flex-direction: column; }.page-actions { margin-left: 0; width: 100%; }.page-actions .btn { flex: 1; }.card-grid { grid-template-columns: repeat(2, 1fr); }.stat-card { min-height: 117px; padding: 15px; }.stat-value { font-size: 24px; }.toolbar { align-items: stretch; }.search-box { min-width: 100%; }.toolbar select { flex: 1; }.report-grid, .form-grid, .upload-summary, .balance-grid { grid-template-columns: 1fr; }.form-grid .span-2 { grid-column: auto; }.form-section, .form-actions { grid-column: 1; }.ess-hero { grid-template-columns: 1fr; }.ess-quick { grid-template-columns: repeat(2, 1fr); }.calendar-row { grid-template-columns: repeat(4, 1fr); }.modal { padding: 0; align-items: end; }.modal-card { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; }.demo-box { grid-template-columns: 1fr; }.demo-box b { grid-column: 1; } }
