/* Amline Workforce — worker portal shell (minimalist) */
:root{
  --ink:#152033;
  --muted:#64748b;
  --line:#e8ecf2;
  --bg:#f5f7fb;
  --card:#ffffff;
  --radius:14px;
  --radius-sm:10px;
  --shadow:0 10px 30px rgba(21,32,51,.08);
  --shadow-sm:0 2px 10px rgba(21,32,51,.06);
  --shell:540px;
  --shell-pad:16px;
}

.app-shell{
  max-width:var(--shell);
  margin:0 auto;
  min-height:100vh;
  background:var(--bg);
  position:relative;
  padding-bottom:78px;
}
.app-main{padding:14px 16px 24px}

/* Header */
.app-header{
  position:sticky;top:0;z-index:30;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(160%) blur(12px);
  border-bottom:1px solid var(--line);
}
.app-header__inner{
  display:flex;align-items:center;flex-wrap:wrap;gap:10px 12px;
  max-width:var(--shell);margin:0 auto;
  padding:12px var(--shell-pad) 10px;
}
.brand{display:flex;align-items:center;gap:9px;font-weight:800;font-size:18px;letter-spacing:-.02em;flex:none}
.brand .brand__logo{
  width:34px;height:34px;border-radius:10px;
  display:grid;place-items:center;overflow:hidden;background:#fff;box-shadow:var(--shadow-sm);
}
.brand .brand__logo img{width:100%;height:100%;object-fit:cover}
.brand small{display:block;font-size:10.5px;font-weight:600;color:var(--muted);letter-spacing:0}
.desktop-nav{display:none}
.header-actions{margin-left:auto;display:flex;align-items:center;gap:6px;flex:none}
.icon-btn{
  position:relative;width:40px;height:40px;border-radius:11px;border:1px solid var(--line);
  background:#fff;display:grid;place-items:center;font-size:18px;color:var(--ink);cursor:pointer;
}
.icon-btn:active{transform:scale(.95)}
.notif-badge,.cart-badge{
  position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 5px;
  background:var(--accent);color:#fff;border-radius:9px;font-size:10.5px;font-weight:700;
  display:grid;place-items:center;border:2px solid #fff;
}
.notif-badge:empty,.cart-badge:empty{display:none}

/* Bottom nav */
.bottom-nav{
  position:fixed;bottom:0;left:50%;transform:translateX(-50%);
  width:100%;max-width:var(--shell);z-index:40;
  background:rgba(255,255,255,.96);
  backdrop-filter:saturate(160%) blur(12px);
  border-top:1px solid var(--line);
  display:flex;justify-content:space-around;
  padding:8px 4px calc(8px + env(safe-area-inset-bottom));
}
.bottom-nav a{
  flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;
  font-size:10.5px;font-weight:650;color:var(--muted);padding:2px 0;position:relative;
}
.bottom-nav a i{font-size:20px}
.bottom-nav a.active{color:var(--brand)}
.bottom-nav a .nav-dot{
  position:absolute;top:-2px;right:calc(50% - 16px);min-width:16px;height:16px;padding:0 4px;
  background:var(--accent);color:#fff;border-radius:8px;font-size:9.5px;font-weight:700;display:grid;place-items:center;
}
.bottom-nav a .nav-dot:empty{display:none}

/* Sections / panels */
.section{margin-top:18px}
.section__head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:12px}
.section__head h2{font-size:16px;font-weight:800;margin:0;letter-spacing:-.02em}
.section__head a{font-size:12.5px;font-weight:700;color:var(--brand)}
.panel{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:16px;margin-bottom:14px;border:1px solid rgba(232,236,242,.8)}
.panel h3{margin:0 0 12px;font-size:15px;font-weight:800}
.divider{height:1px;background:var(--line);margin:14px 0;border:0}
.chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{
  flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;
  background:#fff;border:1px solid var(--line);border-radius:999px;
  padding:8px 14px;font-size:12.5px;font-weight:650;white-space:nowrap;color:var(--ink);
}
.chip.is-active{background:var(--brand);border-color:var(--brand);color:#fff}
.tag{display:inline-flex;align-items:center;gap:5px;background:var(--brand-light);color:var(--brand);
  font-size:11.5px;font-weight:700;padding:5px 10px;border-radius:8px}
.stat-row{display:flex;gap:10px;margin:14px 0}
.stat{flex:1;background:#fff;border-radius:13px;padding:14px;text-align:center;box-shadow:var(--shadow-sm);border:1px solid var(--line)}
.stat b{font-size:20px;display:block;font-weight:800}
.stat span{font-size:11.5px;color:var(--muted);font-weight:600}
.menu-list{display:flex;flex-direction:column}
.menu-item{display:flex;align-items:center;gap:12px;padding:13px 2px;border-bottom:1px solid var(--line);font-size:14px;font-weight:650}
.menu-item:last-child{border-bottom:none}
.menu-item i:first-child{width:36px;height:36px;border-radius:10px;background:var(--brand-light);color:var(--brand);
  display:grid;place-items:center;font-size:17px;flex:none}
.menu-item .bi-chevron-right{margin-left:auto;color:var(--muted);font-size:14px}

/* OTP */
.otp-input{display:flex;gap:8px;justify-content:center}
.otp-input input{
  width:44px;height:52px;text-align:center;font-size:22px;font-weight:800;
  border:1.5px solid var(--line);border-radius:12px;background:#fff;
}
.otp-input input:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-light)}

/* Auth */
.auth-wrap{max-width:var(--shell);margin:0 auto;min-height:100vh;display:flex;flex-direction:column;justify-content:center;padding:24px}
.auth-card{background:#fff;border-radius:20px;box-shadow:var(--shadow);padding:28px 22px;border:1px solid var(--line)}
.auth-card .brand{justify-content:center;margin-bottom:18px;font-size:22px}
.auth-card h1{font-size:21px;text-align:center;margin:0 0 4px;font-weight:800;letter-spacing:-.02em}
.auth-card p.sub{text-align:center;color:var(--muted);font-size:13.5px;margin:0 0 22px}

@media(min-width:760px){
  .desktop-nav{display:flex;gap:2px;margin-left:8px}
  .desktop-nav a{padding:7px 11px;border-radius:9px;font-size:13px;font-weight:650;color:var(--muted)}
  .desktop-nav a.active,.desktop-nav a:hover{background:var(--brand-light);color:var(--brand)}
}
@media(display-mode:standalone){
  body{overscroll-behavior-y:none}
  .app-header__inner{padding-top:calc(12px + env(safe-area-inset-top))}
}
