:root{
  --navy: #053270;
  --navy-2: #023670;
  --gold: #FFC60B;
  --white: #FEFEFE;
  --midnight: #021b3d;
  --grey-bg: #F4F6FA;
  --grey-line: #E4E9F1;
  --text-main: #0E1B2E;
  --text-sub: #5B6B84;
  --green: #22C55E;
  --grey-dot: #A6B0C0;
  --orange: #F59E0B;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 10px 30px rgba(5,50,112,0.08);
  --shadow-card: 0 4px 18px rgba(10,30,60,0.06);
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; overflow-x:hidden; }
body{
  font-family: var(--font-body);
  background: var(--grey-bg);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
button, input, textarea{ font-family: inherit; }
button{ cursor:pointer; border:none; background:none; color:inherit; }
h1,h2,h3,h4{ font-family: var(--font-display); margin:0; }
p{ margin:0; }

/* ---------- Ambient Background ---------- */
.ambient-bg{ position:fixed; inset:0; z-index:-1; overflow:hidden; background: var(--grey-bg); }
.blob{ position:absolute; border-radius:50%; filter: blur(60px); opacity:0.35; }
.blob-1{ width:420px; height:420px; background: radial-gradient(circle, #6ea8f5, transparent 70%); top:-140px; left:-120px; }
.blob-2{ width:380px; height:380px; background: radial-gradient(circle, #a78bfa, transparent 70%); bottom:-120px; right:-100px; opacity:0.25;}
.blob-3{ width:260px; height:260px; background: radial-gradient(circle, #FFC60B, transparent 70%); top:40%; right:10%; opacity:0.14;}

/* ---------- App Shell ---------- */
.app-shell{ max-width:480px; margin:0 auto; position:relative; min-height:100vh; }
@media (min-width: 900px){
  .app-shell{ max-width:1100px; display:block; }
}

.screen{ display:none; min-height:100vh; animation: fadeSlide .38s ease; }
.screen-active{ display:block; }
@keyframes fadeSlide{ from{ opacity:0; transform: translateY(14px);} to{opacity:1; transform:translateY(0);} }

.screen-inner{ padding: 28px 20px 40px; }

@media (min-width: 900px){
  #screen-hr .screen-inner{ max-width:460px; margin:0 auto; padding-top:56px; }
}

/* ---------- HR Header ---------- */
.hr-header{ display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:22px; }
.greeting-label{ font-size:14px; color:var(--text-sub); margin-bottom:10px; }
.profile-row{ display:flex; align-items:center; gap:12px; }
.profile-avatar{ width:52px; height:52px; border-radius:16px; object-fit:cover; box-shadow: var(--shadow-card); border:2px solid var(--white); }
.profile-avatar.sm{ width:44px; height:44px; border-radius:14px; }
.profile-avatar.lg{ width:84px; height:84px; border-radius:22px; margin-bottom:12px; }
.profile-name{ font-size:19px; font-weight:700; }
.profile-role{ font-size:13px; color:var(--text-sub); margin-top:2px; }

.icon-btn{ width:44px; height:44px; border-radius:14px; background:var(--white); display:flex; align-items:center; justify-content:center; box-shadow: var(--shadow-card); color: var(--navy); position:relative; transition: transform .15s ease; }
.icon-btn:active{ transform: scale(0.92); }
.icon-btn svg{ width:20px; height:20px; }
.dot-badge{ position:absolute; top:9px; right:9px; width:8px; height:8px; border-radius:50%; background: var(--gold); border:1.5px solid var(--white); }

/* ---------- Clock Card ---------- */
.clock-card{ text-align:center; margin: 18px 0 6px; }
.clock-time{ font-family: var(--font-display); font-size:38px; font-weight:700; letter-spacing:0.5px; color: var(--navy); font-variant-numeric: tabular-nums; }
.clock-date{ font-size:14px; color:var(--text-sub); margin-top:4px; }

.attendance-status{ display:flex; align-items:center; justify-content:center; gap:8px; margin: 18px 0 10px; }
.status-dot{ width:9px; height:9px; border-radius:50%; background: var(--grey-dot); box-shadow: 0 0 0 4px rgba(166,176,192,0.15); }
.status-dot.working{ background: var(--green); box-shadow: 0 0 0 4px rgba(34,197,94,0.18); }
.status-dot.overtime{ background: var(--orange); box-shadow: 0 0 0 4px rgba(245,158,11,0.18); }
.status-text{ font-size:14px; font-weight:600; color: var(--text-sub); }

/* ---------- Clock In Button ---------- */
.clockin-wrap{ display:flex; justify-content:center; padding: 26px 0 10px; }
.ambient-ring{ position:relative; width:240px; height:240px; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.ambient-ring::before{
  content:''; position:absolute; inset:-14px; border-radius:50%;
  background: conic-gradient(from 0deg, var(--gold), transparent 30%, var(--navy) 55%, transparent 80%, var(--gold));
  animation: rotateRing 7s linear infinite; opacity:0.55; filter: blur(1px);
}
.ambient-ring::after{
  content:''; position:absolute; inset:6px; border-radius:50%; background: var(--grey-bg);
}
@keyframes rotateRing{ to{ transform: rotate(360deg); } }

.clockin-btn{
  position:relative; z-index:2; width:200px; height:200px; border-radius:50%;
  background: linear-gradient(160deg, var(--navy), var(--midnight));
  color: var(--white); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;
  box-shadow: 0 18px 40px rgba(5,50,112,0.35), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.clockin-btn:active{ transform: scale(0.96); }
.clockin-btn.clocked-in{ background: linear-gradient(160deg, #142a45, var(--midnight)); }
.clockin-icon svg{ width:30px; height:30px; }
.clockin-icon{ animation: pulseIcon 3s ease-in-out infinite; }
@keyframes pulseIcon{ 0%,100%{ opacity:1;} 50%{ opacity:0.6; } }
.clockin-label{ font-family: var(--font-display); font-weight:700; font-size:15px; letter-spacing:0.5px; line-height:1.35; text-align:center; }

.workday-summary{ background: var(--white); border-radius: var(--radius-md); padding:18px 20px; margin: 20px 0; box-shadow: var(--shadow-card); }
.ws-title{ font-family: var(--font-display); font-weight:700; font-size:15px; margin-bottom:10px; }
.ws-row{ display:flex; justify-content:space-between; font-size:13.5px; color:var(--text-sub); padding:5px 0; }
.ws-row.total{ border-top:1px solid var(--grey-line); margin-top:4px; padding-top:8px; color:var(--text-main); font-weight:700; }

.dashboard-cta{
  width:100%; margin-top:22px; padding:18px 20px; border-radius: var(--radius-md);
  background: linear-gradient(120deg, var(--navy), var(--navy-2));
  color:var(--white); display:flex; align-items:center; justify-content:space-between;
  box-shadow: var(--shadow-soft); transition: transform .15s ease;
}
.dashboard-cta:active{ transform: scale(0.98); }
.dashboard-cta strong{ font-family: var(--font-display); font-size:15.5px; display:block; }
.dashboard-cta small{ font-size:12px; opacity:0.75; display:block; margin-top:2px; }
.dashboard-cta svg{ width:20px; height:20px; }

.dev-reset-link{ display:block; margin:18px auto 0; font-size:11.5px; color: var(--text-sub); opacity:0.55; text-align:center; width:100%; }

/* ---------- Home / Workspace ---------- */
.home-inner{ padding-bottom: 110px; }
.home-header{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.home-eyebrow{ font-family: var(--font-display); font-weight:800; font-size:22px; color: var(--navy); }
.home-sub{ font-size:12.5px; color:var(--text-sub); }

.home-profile{ display:flex; align-items:center; gap:12px; background: var(--white); border-radius: var(--radius-md); padding:14px 16px; box-shadow: var(--shadow-card); position:relative; }
.home-profile-name{ font-size:15px; font-weight:700; }
.home-profile-role{ font-size:12px; color:var(--text-sub); }
.home-status-pill{ margin-left:auto; font-size:11px; font-weight:600; color: var(--green); background: rgba(34,197,94,0.1); padding:5px 10px; border-radius:20px; white-space:nowrap; }
.home-status-pill.off{ color: var(--text-sub); background: rgba(91,107,132,0.1); }

.welcome-line{ font-size:20px; margin-top:24px; }
.welcome-sub{ font-size:13.5px; color:var(--text-sub); margin-top:4px; }

.smart-cards{ display:grid; grid-template-columns: repeat(3, 1fr); gap:10px; margin-top:18px; }
.smart-card{ background: var(--white); border-radius: var(--radius-sm); padding:14px 12px; box-shadow: var(--shadow-card); }
.sc-label{ font-size:11px; color:var(--text-sub); margin-bottom:6px; }
.sc-value{ font-size:12.5px; font-weight:700; color: var(--navy); line-height:1.3; }

.section-block{ margin-top:28px; }
.section-heading{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:12px; }
.section-heading h4{ font-size:15px; }
.section-heading span{ font-size:11.5px; color:var(--text-sub); }

.recent-list{ display:flex; flex-direction:column; gap:10px; }
.recent-item{ display:flex; align-items:center; gap:12px; background: var(--white); padding:12px 14px; border-radius: var(--radius-sm); box-shadow: var(--shadow-card); }
.recent-item .app-tile{ width:38px; height:38px; }
.recent-item span{ font-size:13.5px; font-weight:600; }
.empty-state{ font-size:13px; color:var(--text-sub); text-align:center; padding:20px 0; }

/* ---------- Sub pages ---------- */
.sub-header{ display:flex; align-items:center; gap:12px; margin-bottom:20px; }
.sub-header h2{ font-size:19px; }

.activity-list, .notif-list{ display:flex; flex-direction:column; gap:12px; padding-bottom:100px; }
.activity-item, .notif-item{ background:var(--white); border-radius: var(--radius-sm); padding:14px 16px; box-shadow: var(--shadow-card); display:flex; gap:12px; align-items:flex-start; }
.activity-item .a-icon, .notif-item .n-icon{ width:38px; height:38px; border-radius:12px; background: linear-gradient(145deg, var(--navy), var(--navy-2)); display:flex; align-items:center; justify-content:center; color:var(--white); flex-shrink:0; }
.activity-item .a-icon svg, .notif-item .n-icon svg{ width:18px; height:18px; }
.activity-title, .notif-title{ font-size:13.5px; font-weight:700; }
.activity-time, .notif-time{ font-size:11.5px; color:var(--text-sub); margin-top:2px; }
.notif-desc{ font-size:12.5px; color:var(--text-sub); margin-top:3px; }

.profile-page-card{ text-align:center; background:var(--white); border-radius: var(--radius-md); padding:26px 20px; box-shadow: var(--shadow-card); margin-bottom:20px; }
.profile-page-card h3{ font-size:17px; }
.profile-page-card p{ font-size:13px; color:var(--text-sub); margin-top:2px; }
.dept-tag{ display:inline-block; margin-top:8px; font-size:11.5px; background: rgba(5,50,112,0.08); color:var(--navy); padding:4px 12px; border-radius:20px; }

.menu-list{ display:flex; flex-direction:column; gap:10px; margin-bottom:24px; }
.menu-item{ background:var(--white); text-align:left; padding:15px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-card); font-size:13.5px; font-weight:600; transition: transform .15s ease; }
.menu-item:active{ transform: scale(0.98); }
.logout-btn{ width:100%; padding:15px; border-radius: var(--radius-sm); background: rgba(220,38,38,0.08); color:#DC2626; font-weight:700; font-size:14px; margin-bottom:100px; }

/* ---------- Bottom Navigation ---------- */
.bottom-nav{
  position:fixed; left:0; right:0; bottom:0; max-width:480px; margin:0 auto;
  background: rgba(254,254,254,0.9); backdrop-filter: blur(16px);
  border-top:1px solid var(--grey-line); display:flex; align-items:center; justify-content:space-around;
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom)); z-index:40;
}
@media (min-width:900px){ .bottom-nav{ max-width:1100px; border-radius: 22px 22px 0 0; } }
.nav-item{ display:flex; flex-direction:column; align-items:center; gap:4px; color:var(--text-sub); min-width:44px; min-height:44px; justify-content:center; transition: color .2s ease; }
.nav-item svg{ width:22px; height:22px; }
.nav-item span{ font-size:10.5px; font-weight:600; }
.nav-item.active{ color: var(--navy); }
.nav-center{
  position:relative; width:58px; height:58px; border-radius:50%;
  background: linear-gradient(145deg, var(--navy), var(--midnight));
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 26px rgba(5,50,112,0.45); margin-top:-26px; transition: transform .15s ease;
}
.nav-center:active{ transform: scale(0.92); }
.nav-center svg{ width:22px; height:22px; }
.nav-center-glow{ position:absolute; inset:-6px; border-radius:50%; background: radial-gradient(circle, rgba(255,198,11,0.45), transparent 70%); animation: glowPulse 2.6s ease-in-out infinite; }
@keyframes glowPulse{ 0%,100%{ opacity:0.5; transform:scale(1);} 50%{ opacity:0.9; transform:scale(1.12);} }

/* ---------- Bottom Sheets / Modals ---------- */
.sheet-overlay{
  position:fixed; inset:0; background: rgba(5,20,45,0.45); backdrop-filter: blur(2px);
  display:flex; align-items:flex-end; justify-content:center; z-index:100;
  opacity:0; pointer-events:none; transition: opacity .25s ease;
}
.sheet-overlay.open{ opacity:1; pointer-events:auto; }
@media (min-width:640px){ .sheet-overlay{ align-items:center; } }

.sheet{
  background: var(--white); width:100%; max-width:480px; max-height:88vh; overflow-y:auto;
  border-radius: 28px 28px 0 0; padding: 14px 22px calc(26px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .38s cubic-bezier(.2,.9,.25,1);
  position:relative; box-shadow: 0 -20px 60px rgba(5,20,45,0.25);
}
.sheet-overlay.open .sheet{ transform: translateY(0); }
@media (min-width:640px){
  .sheet{ border-radius:28px; max-height:80vh; }
  .sheet-overlay.open .sheet{ transform: translateY(0) scale(1); }
  .sheet{ transform: translateY(10px) scale(0.97); }
}
.sheet-handle{ width:40px; height:4px; border-radius:4px; background:var(--grey-line); margin: 4px auto 14px; }
.sheet-close{ position:absolute; top:16px; right:18px; width:34px; height:34px; border-radius:50%; background: var(--grey-bg); display:flex; align-items:center; justify-content:center; color:var(--text-sub); }
.sheet-title{ font-size:21px; margin-top:4px; }
.sheet-subtitle{ font-size:13.5px; color:var(--text-sub); margin-top:4px; margin-bottom:18px; }

.sheet-section{ margin-bottom:18px; }
.sheet-label{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:0.6px; color:var(--text-sub); margin-bottom:10px; }
.sheet-label em{ font-style:normal; text-transform:none; font-weight:400; opacity:0.7; }

.pill-group{ display:flex; gap:10px; }
.pill{ flex:1; padding:12px 0; text-align:center; border-radius:14px; background: var(--grey-bg); font-weight:700; font-size:13.5px; color:var(--text-sub); border:2px solid transparent; transition: all .2s ease; }
.pill.selected{ background: linear-gradient(120deg, var(--navy), var(--navy-2)); color:var(--white); border-color: var(--gold); transform: scale(1.03); }

.selfie-row{ display:flex; align-items:center; gap:14px; }
.selfie-preview{ width:56px; height:56px; border-radius:16px; background: var(--grey-bg); display:flex; align-items:center; justify-content:center; color:var(--text-sub); overflow:hidden; flex-shrink:0; }
.selfie-preview img{ width:100%; height:100%; object-fit:cover; }
.secondary-btn{ flex:1; padding:13px; border-radius:14px; background: var(--grey-bg); font-weight:700; font-size:13.5px; color: var(--navy); transition: transform .15s ease; }
.secondary-btn:active{ transform: scale(0.97); }

.location-row{ display:flex; align-items:center; gap:10px; background: var(--grey-bg); padding:13px 14px; border-radius:14px; font-size:13px; color:var(--text-sub); }
.location-row svg{ width:18px; height:18px; flex-shrink:0; color:var(--navy); }

textarea{ width:100%; border:1.5px solid var(--grey-line); border-radius:14px; padding:12px 14px; font-size:13.5px; resize:none; background: var(--grey-bg); }
textarea:focus{ outline:none; border-color: var(--navy); }

.submit-btn{ width:100%; padding:16px; border-radius:16px; background: linear-gradient(120deg, var(--navy), var(--navy-2)); color:var(--white); font-weight:700; font-size:14.5px; letter-spacing:0.5px; box-shadow: var(--shadow-soft); transition: transform .15s ease; }
.submit-btn:active{ transform: scale(0.98); }

/* ---------- Go To Launcher ---------- */
.goto-sheet{ max-height:85vh; }
.search-box{ display:flex; align-items:center; gap:10px; background: var(--grey-bg); border-radius:16px; padding:12px 14px; margin-bottom:18px; }
.search-box svg{ width:18px; height:18px; color:var(--text-sub); flex-shrink:0; }
.search-box input{ border:none; background:none; outline:none; font-size:14px; width:100%; color:var(--text-main); }

.apps-scroll{ max-height:56vh; overflow-y:auto; padding-bottom:20px; }
.category-block{ margin-bottom:22px; }
.category-title{ font-size:11.5px; font-weight:800; letter-spacing:0.8px; color: var(--navy); text-transform:uppercase; margin-bottom:12px; opacity:0.75; }
.apps-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap:12px; }
@media (min-width:640px){ .apps-grid{ grid-template-columns: repeat(3,1fr);} }

.app-card{ display:flex; align-items:center; gap:10px; background: var(--grey-bg); border-radius: var(--radius-sm); padding:12px; transition: transform .15s ease, background .2s ease; text-align:left; }
.app-card:active{ transform: scale(0.96); }
.app-tile{ width:42px; height:42px; border-radius:13px; display:flex; align-items:center; justify-content:center; color:var(--white); flex-shrink:0; box-shadow: 0 4px 10px rgba(5,50,112,0.18); }
.app-tile svg{ width:20px; height:20px; }
.app-meta{ min-width:0; }
.app-name{ font-size:12.5px; font-weight:700; display:block; line-height:1.25; }
.app-desc{ font-size:10.5px; color:var(--text-sub); display:block; margin-top:2px; line-height:1.25; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }

/* ---------- Toast ---------- */
.toast{
  position:fixed; left:50%; bottom:26px; transform: translate(-50%, 20px); z-index:200;
  background: var(--midnight); color:var(--white); padding:14px 22px; border-radius:16px;
  font-size:13.5px; font-weight:600; box-shadow: 0 12px 30px rgba(0,0,0,0.3); opacity:0; pointer-events:none;
  transition: all .32s cubic-bezier(.2,.9,.25,1); max-width:88%;
}
.toast.show{ opacity:1; transform: translate(-50%, 0); }

/* Loading state text */
.loading-text{ opacity:0.6; }
