/* ═══════════════════════════════════════════════════════════════
   ZENITH ROYAL ERP — Commercial Edition
   style.css — Royal Navy & Gold Theme — Full Commercial
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. CSS VARIABLES ── */
:root {
  --navy: #0a1628;
  --navy2: #0f2040;
  --navy3: #162d55;
  --gold: #c9a84c;
  --glight: #e8c96a;
  --gdim: #8a6f2e;
  --white: #f4f1eb;
  --wdim: rgba(244, 241, 235, 0.6);
  --glass: rgba(255, 255, 255, 0.04);
  --gborder: rgba(201, 168, 76, 0.18);
  --ghover: rgba(255, 255, 255, 0.08);
  --red: #e05c5c;
  --green: #4caf81;
  --blue: #3b82f6;
  --sw: 260px;
}

/* ── 2. RESET & BASE ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Cairo', sans-serif;
  background: var(--navy);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(201,168,76,.07) 0%, transparent 70%),
    radial-gradient(ellipse 80% 80% at 50% 50%, #0a1628 0%, #060e1c 100%);
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(201,168,76,.012) 60px, rgba(201,168,76,.012) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(201,168,76,.012) 60px, rgba(201,168,76,.012) 61px);
  z-index: -1;
}


/* ── SCREENS ── */
.screen {
  display: none !important;
  min-height: 100vh;
}

.screen.active {
  display: flex !important;
}

#login-screen.active {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#clockin-screen.active {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ── PAGES ── */
#pages { flex: 1; padding: 24px; overflow-y: auto; }

.page {
  display: none !important;
  animation: fadeIn 0.3s ease;
}

.page.active {
  display: block !important;
}


/* ── 4. SPINNER ── */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(201,168,76,.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 5. LOGIN CARD ── */
.login-card {
  background: var(--glass);
  border: 1px solid var(--gborder);
  backdrop-filter: blur(30px);
  border-radius: 20px;
  padding: 52px 44px;
  width: 100%;
  max-width: 440px;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.7s ease;
}

.login-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.login-error {
  background: rgba(224,92,92,.1);
  border: 1px solid rgba(224,92,92,.3);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--red);
  margin-top: 14px;
  text-align: center;
}

/* ── 6. CLOCK-IN SCREEN ── */
.clockin-card {
  background: var(--glass);
  border: 1px solid var(--gborder);
  backdrop-filter: blur(30px);
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 460px;
  animation: fadeUp 0.6s ease;
}

.ci-avatar {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--gold), var(--gdim));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--navy);
  font-weight: 700;
  margin: 0 auto 12px;
}

.ci-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.ci-role {
  font-size: 13px;
  color: var(--gold);
  margin-top: 4px;
}

.ci-company {
  font-size: 11px;
  color: var(--wdim);
  margin-top: 2px;
}

.ci-shift-box {
  background: rgba(201,168,76,.06);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: 10px;
  margin-bottom: 16px;
}

.btn-clockin {
  font-size: 16px;
  padding: 16px;
  letter-spacing: 1px;
  box-shadow: 0 8px 30px rgba(201,168,76,.2);
}

/* ── 7. BRAND ── */
.brand-logo { text-align: center; margin-bottom: 32px; }
.brand-crown {
  font-size: 40px;
  display: block;
  filter: drop-shadow(0 0 14px rgba(201,168,76,.5));
  animation: pulseGold 3s ease infinite;
}
.brand-name {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--glight), var(--gold), var(--gdim));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.brand-sub {
  font-size: 11px;
  color: var(--wdim);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

/* ── 8. FORM INPUTS ── */
.inp-grp { margin-bottom: 16px; }
.inp-grp label {
  display: block;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 7px;
  text-transform: uppercase;
  font-weight: 600;
}
.inp-grp input, .inp-grp select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 10px;
  color: var(--white);
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
}
.inp-grp select option { background: var(--navy2); color: var(--white); }
.inp-grp input::placeholder { color: rgba(255,255,255,.25); }
.inp-grp input:focus, .inp-grp select:focus {
  border-color: var(--gold);
  background: rgba(201,168,76,.06);
  box-shadow: 0 0 0 3px rgba(201,168,76,.08);
}

/* ── 9. BUTTONS ── */
.btn-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gdim));
  border: none;
  border-radius: 10px;
  color: var(--navy);
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  letter-spacing: 1px;
  transition: all 0.3s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 25px rgba(201,168,76,.3); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn-secondary {
  padding: 10px 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: var(--white);
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,.1); }

.btn-google {
  width: 100%;
  padding: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: var(--white);
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
}
.btn-google:hover { background: rgba(255,255,255,.1); }
.btn-google svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-gold {
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(201,168,76,.2), rgba(201,168,76,.1));
  border: 1px solid rgba(201,168,76,.35);
  border-radius: 10px;
  color: var(--glight);
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-gold:hover { background: rgba(201,168,76,.25); transform: translateY(-1px); }

.btn-danger {
  padding: 10px 20px;
  background: rgba(224,92,92,.15);
  border: 1px solid rgba(224,92,92,.3);
  border-radius: 10px;
  color: var(--red);
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  cursor: pointer;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--wdim);
  font-size: 12px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(201,168,76,.15);
}

.login-hint { text-align: center; margin-top: 16px; font-size: 11px; color: rgba(255,255,255,.3); }

/* ── 10. APP LAYOUT ── */
#app-screen { flex-direction: row; }

.sidebar {
  width: var(--sw);
  min-height: 100vh;
  background: rgba(9,20,38,.97);
  border-left: 1px solid var(--gborder);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  transition: width 0.3s, opacity 0.3s;
}
.sidebar.collapsed { width: 0; opacity: 0; border: none; overflow: hidden; }
.sidebar-inner { width: var(--sw); min-height: 100vh; display: flex; flex-direction: column; padding-bottom: 24px; }

.sb-brand {
  padding: 24px 22px 20px;
  border-bottom: 1px solid rgba(201,168,76,.1);
  margin-bottom: 10px;
}
.sb-brand .brand-name { font-size: 16px; letter-spacing: 2px; }
.sb-brand .brand-sub { font-size: 9px; }

.sb-company {
  padding: 8px 16px;
  margin: 0 8px 8px;
  background: rgba(201,168,76,.06);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sb-company-ico {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--gold), var(--gdim));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--navy); font-weight: 700; flex-shrink: 0;
}
.sb-company-name { font-size: 12px; color: var(--glight); font-weight: 600; white-space: nowrap; }
.sb-company-role { font-size: 10px; color: var(--wdim); }

.nav-sec {
  font-size: 10px; color: var(--gdim); letter-spacing: 2px; text-transform: uppercase;
  padding: 0 22px; margin: 14px 0 6px; font-weight: 600; white-space: nowrap;
}
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 22px;
  cursor: pointer; transition: all 0.2s; border-right: 2px solid transparent;
  font-size: 14px; color: var(--wdim); white-space: nowrap;
}
.nav-item:hover { background: var(--ghover); color: var(--white); }
.nav-item.active { background: rgba(201,168,76,.08); color: var(--glight); border-right-color: var(--gold); }
.nav-ico { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.nav-badge { margin-right: auto; background: var(--red); color: #fff; font-size: 10px; padding: 1px 7px; border-radius: 20px; font-weight: 700; }

.sb-footer { margin-top: auto; padding: 14px 16px 0; border-top: 1px solid rgba(201,168,76,.1); }
.user-card { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.uavatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--gold), var(--gdim));
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--navy); font-weight: 700; flex-shrink: 0;
}
.uname { font-size: 13px; font-weight: 600; color: var(--white); white-space: nowrap; }
.urole { font-size: 10px; color: var(--wdim); }

/* ── 11. MAIN CONTENT ── */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow-x: hidden; }

.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
  background: rgba(10,22,40,.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,.08);
}
.tb-left { display: flex; align-items: center; gap: 16px; }
.toggle-btn {
  width: 36px; height: 36px; background: var(--glass); border: 1px solid var(--gborder);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; transition: all 0.2s;
}
.toggle-btn:hover { background: var(--ghover); }

.pg-title h1 { font-size: 17px; font-weight: 700; line-height: 1.2; }
.pg-title p { font-size: 11px; color: var(--wdim); }

.tb-right { display: flex; align-items: center; gap: 10px; }
.tb-date { font-size: 12px; color: var(--wdim); white-space: nowrap; }

.clock-status-mini {
  display: flex; align-items: center; gap: 6px;
  background: rgba(201,168,76,.08); border: 1px solid rgba(201,168,76,.2);
  border-radius: 8px; padding: 5px 10px;
  font-size: 12px; color: var(--glight);
}

.icon-btn {
  width: 36px; height: 36px; background: var(--glass); border: 1px solid var(--gborder);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; transition: all 0.2s; position: relative;
}
.icon-btn:hover { background: var(--ghover); }

.notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px; background: var(--red); border-radius: 50%;
  display: none;
}

/* ── 12. PAGES ── */
#pages { flex: 1; padding: 24px; overflow-y: auto; }
.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }

/* ── 13. ROLE BANNER ── */
.role-banner {
  padding: 10px 18px; border-radius: 10px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600;
}
.role-banner.owner { background: rgba(201,168,76,.08); border: 1px solid rgba(201,168,76,.2); color: var(--glight); }
.role-banner.hr    { background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.2); color: #60a5fa; }
.role-banner.leader{ background: rgba(76,175,129,.08); border: 1px solid rgba(76,175,129,.2); color: var(--green); }
.role-banner.employee{ background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: var(--wdim); }

/* ── 14. STAT CARDS ── */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: var(--glass); border: 1px solid var(--gborder); border-radius: 16px;
  padding: 22px 20px; animation: fadeUp 0.5s ease both;
}
.stat-ico { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 14px; }
.ico-blue   { background: rgba(59,130,246,.12); }
.ico-green  { background: rgba(76,175,129,.12); }
.ico-gold   { background: rgba(201,168,76,.12); }
.ico-red    { background: rgba(224,92,92,.12); }
.ico-purple { background: rgba(155,89,182,.12); }
.stat-val { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.stat-lbl { font-size: 12px; color: var(--wdim); margin-bottom: 8px; }
.stat-chg { font-size: 11px; }
.chg-up { color: var(--green); }
.chg-down { color: var(--red); }

/* ── 15. GLASS CARDS ── */
.gc {
  background: var(--glass); border: 1px solid var(--gborder);
  border-radius: 16px; padding: 18px 20px; margin-bottom: 16px;
}
.gc-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.gc-title { font-size: 14px; font-weight: 600; }
.gc-action { font-size: 12px; color: var(--gold); cursor: pointer; }
.gc-action:hover { color: var(--glight); }

/* ── 16. GRID LAYOUTS ── */
.g3-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 16px; }
.g2   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

/* ── 17. LIVE MONITOR ── */
.live-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.live-card { text-align: center; padding: 16px; background: rgba(255,255,255,.02); border-radius: 12px; }
.live-num { font-size: 32px; font-weight: 700; position: relative; display: inline-block; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; animation: blink 1.5s ease infinite; }
.live-lbl { font-size: 11px; color: var(--wdim); margin-top: 4px; }

/* ── 18. BAR CHART ── */
.chart-area { padding: 8px 0; }
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 110px; padding: 0 10px; }
.bar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.bar { width: 100%; max-width: 32px; border-radius: 6px 6px 0 0; transition: height 0.8s cubic-bezier(.34,1.56,.64,1); }
.bar-g { background: linear-gradient(180deg, rgba(201,168,76,.4) 0%, rgba(201,168,76,.15) 100%); }
.bar-t { background: linear-gradient(180deg, var(--gold) 0%, var(--gdim) 100%); }
.bar-lbl { font-size: 9px; color: var(--wdim); white-space: nowrap; }

/* ── 19. DONUT CHART ── */
.donut-wrap { display: flex; align-items: center; gap: 20px; padding: 8px 0; }
.donut {
  width: 90px; height: 90px; flex-shrink: 0;
  background: conic-gradient(var(--green) 0% 60%, var(--red) 60% 75%, var(--gold) 75% 90%, rgba(255,255,255,.1) 90%);
  border-radius: 50%;
  -webkit-mask: radial-gradient(circle, transparent 32px, black 32px);
  mask: radial-gradient(circle, transparent 32px, black 32px);
}
.donut-leg { display: flex; flex-direction: column; gap: 8px; }
.leg-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--wdim); }
.leg-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.leg-val { margin-right: auto; padding-right: 8px; font-weight: 700; color: var(--white); }

/* ── 20. ALERT ITEMS ── */
.alert-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.04); font-size: 13px;
}
.alert-item:last-child { border: none; }
.aico { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.ai-t { font-size: 13px; font-weight: 600; color: var(--white); }
.ai-d { font-size: 11px; color: var(--wdim); margin-top: 2px; }
.at { font-size: 10px; color: var(--wdim); white-space: nowrap; margin-right: auto; }

/* ── 21. AUDIT LOG ── */
.audit-item { padding: 11px 18px; border-bottom: 1px solid rgba(255,255,255,.03); display: flex; align-items: center; gap: 12px; font-size: 12px; }
.audit-item:last-child { border: none; }
.audit-type { padding: 2px 8px; border-radius: 6px; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.at-add   { background: rgba(76,175,129,.15); color: var(--green); }
.at-edit  { background: rgba(201,168,76,.12);  color: var(--gold); }
.at-del   { background: rgba(224,92,92,.12);   color: var(--red); }
.at-login { background: rgba(59,130,246,.12);  color: #60a5fa; }
.audit-desc { flex: 1; color: var(--wdim); }
.audit-time { color: var(--wdim); white-space: nowrap; }

/* ── 22. TOOLBAR ── */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--glass); border: 1px solid var(--gborder);
  border-radius: 10px; padding: 10px 14px; flex: 1; min-width: 200px;
}
.search-box input { background: none; border: none; outline: none; color: var(--white); font-family: 'Cairo',sans-serif; font-size: 13px; width: 100%; }
.filter-btn {
  padding: 10px 16px; background: var(--glass); border: 1px solid var(--gborder);
  border-radius: 10px; color: var(--wdim); font-family: 'Cairo',sans-serif; font-size: 13px;
  cursor: pointer; white-space: nowrap;
}

/* ── 23. TABLE ── */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: right; padding: 10px 14px; color: var(--gold); font-size: 11px;
  letter-spacing: 1px; font-weight: 600; text-transform: uppercase;
  border-bottom: 1px solid rgba(201,168,76,.1);
}
.tbl td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.03); vertical-align: middle; }
.tbl tr:last-child td { border: none; }
.tbl tr:hover td { background: rgba(255,255,255,.02); }

.ecell { display: flex; align-items: center; gap: 10px; }
.eav {
  width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 700; color: var(--navy); flex-shrink: 0;
}
.ename { font-size: 13px; font-weight: 600; color: var(--white); }
.edept { font-size: 11px; color: var(--wdim); }

/* ── 24. BADGES ── */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.badge.bg { background: rgba(76,175,129,.15);  color: var(--green); border: 1px solid rgba(76,175,129,.3); }
.badge.bo { background: rgba(201,168,76,.12);  color: var(--gold);  border: 1px solid rgba(201,168,76,.25); }
.badge.br { background: rgba(224,92,92,.12);   color: var(--red);   border: 1px solid rgba(224,92,92,.25); }
.badge.bb { background: rgba(59,130,246,.12);  color: #60a5fa;      border: 1px solid rgba(59,130,246,.25); }

/* ── 25. EMPLOYEE GRID ── */
.emp-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 20px; }
.emp-card {
  background: var(--glass); border: 1px solid var(--gborder); border-radius: 16px;
  padding: 20px; animation: fadeUp 0.5s ease both; transition: all 0.2s;
}
.emp-card:hover { border-color: rgba(201,168,76,.35); transform: translateY(-2px); }
.emp-top { display: flex; gap: 12px; margin-bottom: 14px; align-items: center; }
.eavl {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 16px; font-weight: 700; color: var(--navy); flex-shrink: 0;
}
.emp-name { font-size: 14px; font-weight: 700; }
.emp-role { font-size: 11px; color: var(--wdim); margin-top: 2px; }
.emp-stats { display: flex; border-top: 1px solid rgba(255,255,255,.04); padding-top: 12px; gap: 4px; }
.es { flex: 1; text-align: center; }
.es-val { font-size: 14px; font-weight: 700; color: var(--glight); }
.es-lbl { font-size: 9px; color: var(--wdim); margin-top: 2px; }

/* ── 26. CLOCK WIDGET ── */
.clock-widget {
  background: rgba(201,168,76,.05); border: 1px solid rgba(201,168,76,.2);
  border-radius: 20px; padding: 30px 24px; text-align: center; margin-bottom: 16px;
}
.clock-time { font-size: 52px; font-weight: 700; letter-spacing: 4px; color: var(--glight); font-variant-numeric: tabular-nums; }
.clock-date { font-size: 13px; color: var(--wdim); margin: 6px 0 12px; }
.status-indicator { font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.shift-info-box { font-size: 12px; color: var(--wdim); margin-bottom: 12px; }

.clock-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.clock-btn {
  padding: 10px 16px; border-radius: 10px; font-family: 'Cairo',sans-serif;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; border: none;
}
.clock-btn:disabled { opacity: .4; cursor: not-allowed; }
.cb-break  { background: rgba(201,168,76,.15); color: var(--gold); border: 1px solid rgba(201,168,76,.3); }
.cb-return { background: rgba(76,175,129,.15); color: var(--green); border: 1px solid rgba(76,175,129,.3); }
.cb-out    { background: rgba(224,92,92,.15); color: var(--red); border: 1px solid rgba(224,92,92,.3); }

/* ── 27. MINI STATS (Self-Service) ── */
.mini-stat {
  background: rgba(255,255,255,.03); border: 1px solid rgba(201,168,76,.1);
  border-radius: 12px; padding: 14px; text-align: center;
}
.ms-val { font-size: 18px; font-weight: 700; color: var(--glight); }
.ms-lbl { font-size: 11px; color: var(--wdim); margin-top: 4px; }

/* ── 28. REQUESTS GRID ── */
.req-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 20px; }
.req-card {
  background: var(--glass); border: 1px solid var(--gborder); border-radius: 14px;
  padding: 20px 16px; text-align: center; cursor: pointer; transition: all 0.2s;
}
.req-card:hover { border-color: var(--gold); background: rgba(201,168,76,.06); transform: translateY(-2px); }
.req-ico { font-size: 28px; margin-bottom: 8px; }
.req-t { font-size: 13px; font-weight: 600; }

/* ── 29. SETTINGS ── */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.srow { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.04); }
.srow:last-child { border: none; }
.slbl { font-size: 13px; color: var(--white); font-weight: 500; }

.toggle { width: 38px; height: 21px; background: rgba(255,255,255,.1); border-radius: 11px; position: relative; cursor: pointer; transition: background 0.3s; flex-shrink: 0; }
.toggle.on { background: var(--gold); }
.toggle::after { content: ''; position: absolute; top: 3px; right: 3px; width: 15px; height: 15px; background: #fff; border-radius: 50%; transition: transform 0.3s; }
.toggle.on::after { transform: translateX(-17px); }

/* ── 30. REPORTS ── */
.rp-btn {
  padding: 6px 12px; background: rgba(201,168,76,.1); border: 1px solid rgba(201,168,76,.2);
  border-radius: 8px; color: var(--gold); font-family: 'Cairo',sans-serif; font-size: 11px;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.rp-btn:hover { background: rgba(201,168,76,.2); }

/* ── 31. TASKS ── */
.task-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.03); cursor: pointer; transition: background 0.2s;
}
.task-item:hover { background: rgba(255,255,255,.02); }
.task-item:last-child { border: none; }
.tcheck {
  width: 20px; height: 20px; border: 2px solid rgba(201,168,76,.3); border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
  color: var(--green); font-weight: 700; flex-shrink: 0; transition: all 0.2s;
}
.tcheck.done { background: rgba(76,175,129,.15); border-color: var(--green); }
.task-info { flex: 1; }
.tname { font-size: 13px; font-weight: 600; }
.tname.done { text-decoration: line-through; color: var(--wdim); }
.tmeta { font-size: 11px; color: var(--wdim); margin-top: 3px; }

/* ── 32. GEO ALERT ── */
.geo-alert {
  background: rgba(224,92,92,.1); border: 1px solid rgba(224,92,92,.3);
  border-radius: 12px; padding: 12px 16px; font-size: 13px;
}

/* ── 33. SECTION TITLES ── */
.sec-title {
  font-size: 16px; font-weight: 700; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.sec-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(201,168,76,.3), transparent); }

/* ── 34. MODALS ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(8px);
  z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--navy2); border: 1px solid var(--gborder); border-radius: 20px;
  padding: 32px; width: 100%; max-width: 500px; position: relative;
  animation: fadeUp 0.4s ease; max-height: 90vh; overflow-y: auto;
}
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 24px; color: var(--glight); }
.modal-close {
  position: absolute; top: 16px; left: 16px; width: 32px; height: 32px;
  background: rgba(255,255,255,.06); border: none; border-radius: 8px;
  color: var(--white); cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(224,92,92,.2); color: var(--red); }
.modal-btns { display: flex; gap: 12px; margin-top: 24px; justify-content: flex-end; }

/* ── 35. NOTIFICATIONS PANEL ── */
.notif-panel {
  position: fixed; top: 70px; left: 20px; width: 320px;
  background: var(--navy2); border: 1px solid var(--gborder); border-radius: 16px;
  z-index: 200; animation: fadeUp 0.3s ease; display: none;
  max-height: 80vh; overflow: hidden; flex-direction: column;
}
.notif-panel.open { display: flex; }
.np-header { padding: 14px 18px; border-bottom: 1px solid rgba(201,168,76,.08); display: flex; justify-content: space-between; align-items: center; }
.np-title { font-size: 14px; font-weight: 600; }
.np-clear { font-size: 11px; color: var(--gold); cursor: pointer; }
.np-body { overflow-y: auto; flex: 1; }
.np-item { padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.03); display: flex; gap: 10px; cursor: pointer; transition: background 0.2s; }
.np-item:hover { background: rgba(255,255,255,.02); }
.np-item.unread { background: rgba(201,168,76,.04); }
.np-ico { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.np-t { font-size: 12px; font-weight: 600; color: var(--white); }
.np-d { font-size: 11px; color: var(--wdim); margin-top: 2px; }
.np-time { font-size: 10px; color: var(--wdim); margin-top: 3px; }

/* ── 36. TOAST ── */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(15,32,64,.97); border: 1px solid var(--gborder);
  backdrop-filter: blur(20px); border-radius: 12px; padding: 12px 22px;
  font-size: 13px; color: var(--white); z-index: 9999;
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1);
  display: flex; align-items: center; gap: 10px; min-width: 220px; justify-content: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── 37. SIDEBAR OVERLAY ── */
.sidebar-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 299; }

/* ── 38. ANIMATIONS ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes pulseGold { 0%,100% { filter:drop-shadow(0 0 10px rgba(201,168,76,.4)); } 50% { filter:drop-shadow(0 0 22px rgba(201,168,76,.7)); } }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:.3; } }

/* ── 39. SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,.2); border-radius: 10px; }

/* ── 40. RESPONSIVE ── */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .emp-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .g3-1, .g2 { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr 1fr; }
  .live-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .emp-grid { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr 1fr; }
  .tb-date { display: none; }

  .sidebar {
    position: fixed; top: 0; right: 0; bottom: 0;
    z-index: 300; box-shadow: -10px 0 30px rgba(0,0,0,.5);
    width: var(--sw) !important;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    opacity: 1 !important;
    overflow-y: auto;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar.collapsed {
    transform: translateX(100%);
  }
  .login-card { padding: 36px 24px; }
  .clockin-card { padding: 32px 20px; }
  #pages { padding: 16px; }
}
