/* ════════════════════════════════════════════════
   AttendSync — styles.css
   hr.wwtp.com
   Mobile-first · Pure CSS · No frameworks
════════════════════════════════════════════════ */

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

/* ── CSS VARIABLES ─────────────────────────────── */
:root {
  --acc:       #0891B2;
  --acc-d:     #0E7490;
  --acc-l:     rgba(8, 145, 178, 0.1);
  --bg:        #EEF5FF;
  --card:      #FFFFFF;
  --txt:       #0F2942;
  --txt2:      #5B7A9A;
  --bord:      #C5D9F0;
  --grn:       #16A34A;
  --grn-l:     rgba(22, 163, 74, 0.12);
  --red:       #DC2626;
  --red-l:     rgba(220, 38, 38, 0.12);
  --amb:       #D97706;
  --amb-l:     rgba(217, 119, 6, 0.12);
  --pur:       #7C3AED;
  --shadow-sm: 0 1px 8px  rgba(15, 41, 66, 0.08);
  --shadow:    0 4px 24px rgba(15, 41, 66, 0.10);
  --shadow-lg: 0 8px 40px rgba(15, 41, 66, 0.15);
  --r:         16px;
  --r-sm:      10px;
  --r-lg:      24px;
  --font:      'Nunito', sans-serif;
  --mono:      'JetBrains Mono', monospace;
}

/* ── RESET ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--txt);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
input, select, textarea, button {
  font-family: var(--font);
  outline: none;
}
button { cursor: pointer; border: none; background: none; }
img    { max-width: 100%; display: block; }

/* ── ANIMATIONS ────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
@keyframes toastSlide {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── PAGE SYSTEM ───────────────────────────────── */
.page        { display: none; min-height: 100vh; flex-direction: column; }
.page.active { display: flex; animation: fadeIn 0.3s ease; }
.hidden      { display: none !important; }

/* Limit width on larger screens */
@media (min-width: 480px) {
  body { background: #D8E8F5; }
  .page {
    max-width: 480px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
  }
}

/* ── TOAST ─────────────────────────────────────── */
.toast {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  max-width: 440px;
  margin: 0 auto;
  padding: 14px 18px;
  background: #1E293B;
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  border-left: 4px solid #64748B;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateY(-12px);
}
.toast.show      { opacity: 1; transform: translateY(0); animation: toastSlide 0.25s ease; }
.toast-success   { border-left-color: var(--grn) !important; }
.toast-error     { border-left-color: var(--red) !important; }
.toast-warn      { border-left-color: var(--amb) !important; }
.toast-info      { border-left-color: var(--acc) !important; }

/* ── UTILITY ───────────────────────────────────── */
.mono     { font-family: var(--mono); }
.ml-auto  { margin-left: auto; }
.hidden   { display: none !important; }

/* ── BADGES ────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hr-badge    { background: var(--amb-l); color: var(--amb); }
.staff-badge { background: var(--acc-l); color: var(--acc); }
.pend-badge  { background: var(--amb-l); color: var(--amb); }
.appr-badge  { background: var(--grn-l); color: var(--grn); }
.reje-badge  { background: var(--red-l); color: var(--red); }

/* ── CARD ──────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

/* ── BUTTONS ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: var(--r-sm);
  font-weight: 800;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
}
.btn:active    { transform: scale(0.97); }
.btn-primary   { background: var(--acc); color: #fff; }
.btn-primary:hover {
  background: var(--acc-d);
  box-shadow: 0 4px 18px rgba(8, 145, 178, 0.4);
}
.btn-full      { width: 100%; }

/* ── INPUTS ────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--bord);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--txt);
  background: var(--card);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-l);
}
input::placeholder, textarea::placeholder { color: #A0B4C8; font-weight: 500; }
select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B7A9A' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}
textarea { resize: vertical; min-height: 84px; }

/* Field Group */
.field-group         { margin-bottom: 16px; }
.field-group label   {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--txt2);
  margin-bottom: 6px;
}

/* Two column grid */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── ICON BUTTON ───────────────────────────────── */
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.2s;
}
.icon-btn:hover       { background: rgba(255, 255, 255, 0.28); }
.icon-btn:active      { transform: scale(0.93); }
.icon-danger          { background: rgba(220, 38, 38, 0.18); border-color: rgba(220, 38, 38, 0.35); color: #FCA5A5; }
.icon-danger:hover    { background: rgba(220, 38, 38, 0.28); }

/* ── BACK BUTTON ───────────────────────────────── */
.back-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--bg);
  border: 1.5px solid var(--bord);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--txt);
  flex-shrink: 0;
  transition: all 0.15s;
}
.back-btn:hover  { background: var(--acc-l); border-color: var(--acc); }
.back-btn:active { transform: scale(0.93); }

/* ── PAGE HEADER ───────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--card);
  border-bottom: 1px solid var(--bord);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: var(--shadow-sm);
}
.page-header h2 {
  font-size: 17px;
  font-weight: 900;
  flex: 1;
  letter-spacing: -0.2px;
}

/* ── PAGE BODY ─────────────────────────────────── */
.page-body {
  padding: 16px 20px 80px;
  flex: 1;
  overflow-y: auto;
}

/* Empty message */
.empty-msg {
  text-align: center;
  padding: 48px 20px;
  color: var(--txt2);
  font-size: 14px;
  font-weight: 600;
}

/* ════════════════════════════════════════════════
   LOGIN PAGE
════════════════════════════════════════════════ */
#loginSection {
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: var(--bg);
}

.login-wrap {
  width: 100%;
  max-width: 400px;
}

/* Brand */
.brand-block {
  text-align: center;
  margin-bottom: 32px;
  animation: slideUp 0.5s ease both;
}
.brand-logo {
  width: 76px;
  height: 76px;
  background: linear-gradient(135deg, #0891B2, #2563EB);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 28px rgba(8, 145, 178, 0.4);
}
.brand-name {
  font-size: 28px;
  font-weight: 900;
  color: var(--txt);
  letter-spacing: -0.5px;
}
.brand-sub {
  font-size: 13px;
  color: var(--txt2);
  margin-top: 4px;
  font-weight: 600;
}

/* Login Card */
.login-card {
  padding: 28px 24px;
  animation: slideUp 0.5s ease 0.1s both;
}
.login-title {
  font-size: 19px;
  font-weight: 900;
  margin-bottom: 22px;
  color: var(--txt);
  letter-spacing: -0.3px;
}

/* Password field */
.pass-wrap {
  position: relative;
}
.pass-wrap input {
  padding-right: 46px;
}
.eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--txt2);
  padding: 4px;
  display: flex;
  align-items: center;
}

/* Demo hint block */
.hint-block {
  margin-top: 18px;
  text-align: center;
}
.hint-toggle {
  font-size: 12px;
  font-weight: 700;
  color: var(--txt2);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hint-box {
  background: var(--bg);
  border: 1.5px solid var(--bord);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin-top: 10px;
  text-align: left;
}
.hint-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--txt2);
  margin-bottom: 8px;
}
.hint-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.hint-email {
  font-size: 13px;
  font-weight: 700;
  color: var(--txt);
  flex: 1;
}
.hint-note {
  font-size: 12px;
  color: var(--txt2);
  margin-top: 8px;
  font-weight: 600;
}

/* ════════════════════════════════════════════════
   MAIN PAGE
════════════════════════════════════════════════ */
#mainSection {
  background: var(--bg);
}

/* Top bar */
.top-bar {
  background: linear-gradient(135deg, #0891B2, #2563EB);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
}
.user-meta  { line-height: 1.3; }
.user-name  { font-size: 15px; font-weight: 800; color: white; }

.header-actions {
  display: flex;
  gap: 8px;
}

/* Main body */
.main-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── CLOCK CARD ─────────────────────────────────── */
.clock-card {
  background: linear-gradient(135deg, #0F2942 0%, #1a3a5c 100%);
  border-radius: 22px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(15, 41, 66, 0.25);
  position: relative;
  overflow: hidden;
}
.clock-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(8,145,178,0.18), transparent 70%);
}
.clock-time {
  font-size: 52px;
  font-weight: 600;
  color: white;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.clock-date {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.att-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 7px 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-grn { background: #22C55E; box-shadow: 0 0 8px rgba(34, 197, 94, 0.7); }
.dot-red { background: #EF4444; }
.dot-amb { background: #F59E0B; animation: pulse 1.5s ease infinite; }

/* ── MENU GRID ──────────────────────────────────── */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 16px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 800;
  font-size: 15px;
  min-height: 130px;
  color: white;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.2px;
}
.menu-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 35% 25%, rgba(255,255,255,0.18), transparent 60%);
}
.menu-btn:hover  { transform: translateY(-3px); }
.menu-btn:active { transform: scale(0.95) translateY(0); }

/* Button styles */
.ci-btn {
  background: linear-gradient(135deg, #16A34A, #15803D);
  box-shadow: 0 4px 20px rgba(22, 163, 74, 0.35);
}
.ci-btn:hover { box-shadow: 0 8px 28px rgba(22, 163, 74, 0.45); }

.co-btn {
  background: linear-gradient(135deg, #DC2626, #B91C1C);
  box-shadow: 0 4px 20px rgba(220, 38, 38, 0.35);
}
.co-btn:hover { box-shadow: 0 8px 28px rgba(220, 38, 38, 0.45); }

.req-btn {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}
.req-btn:hover { box-shadow: 0 8px 28px rgba(37, 99, 235, 0.45); }

.pro-btn {
  background: linear-gradient(135deg, #7C3AED, #6D28D9);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}
.pro-btn:hover { box-shadow: 0 8px 28px rgba(124, 58, 237, 0.45); }

/* Icon box inside menu button */
.menu-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.ci-icon-box  { background: rgba(255,255,255,0.2); }
.co-icon-box  { background: rgba(255,255,255,0.2); }
.req-icon-box { background: rgba(255,255,255,0.2); }
.pro-icon-box { background: rgba(255,255,255,0.2); }

/* ════════════════════════════════════════════════
   REQUEST PAGE
════════════════════════════════════════════════ */
.form-card {
  padding: 20px;
  margin-bottom: 16px;
}

/* Section header */
.section-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--txt2);
  margin: 16px 0 10px;
}

/* Request card */
.req-card {
  background: var(--card);
  border: 1.5px solid var(--bord);
  border-radius: var(--r);
  padding: 15px;
  margin-bottom: 10px;
  animation: slideUp 0.3s ease;
}
.req-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.req-type   { font-weight: 800; font-size: 14px; }
.req-dates  { font-size: 12px; font-family: var(--mono); color: var(--txt2); margin-bottom: 4px; }
.req-reason { font-size: 13px; color: var(--txt2); font-weight: 500; }

/* ════════════════════════════════════════════════
   PROFILE PAGE
════════════════════════════════════════════════ */

/* Tab bar */
.tab-bar {
  display: flex;
  gap: 4px;
  background: var(--bg);
  padding: 4px;
  border-radius: var(--r-sm);
  margin-bottom: 16px;
  border: 1.5px solid var(--bord);
}
.tab {
  flex: 1;
  padding: 9px 6px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  transition: all 0.2s;
  background: transparent;
  color: var(--txt2);
  text-align: center;
  letter-spacing: 0.2px;
}
.tab.active {
  background: var(--card);
  color: var(--txt);
  box-shadow: var(--shadow-sm);
}

/* Profile section */
.prof-section {
  background: var(--card);
  border: 1.5px solid var(--bord);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.prof-head {
  padding: 13px 16px;
  background: var(--bg);
  border-bottom: 1.5px solid var(--bord);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.2px;
  color: var(--txt);
}
.prof-field {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.prof-field:last-child { border-bottom: none; }
.prof-field label {
  font-size: 10px;
  color: var(--txt2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: block;
  margin-bottom: 6px;
}
.prof-field input,
.prof-field select,
.prof-field textarea {
  border-color: transparent;
  background: var(--bg);
  font-size: 14px;
}
.prof-field input:focus,
.prof-field select:focus,
.prof-field textarea:focus {
  border-color: var(--acc);
  background: white;
}

/* Compensation total */
.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--acc-l);
  border-top: 1.5px solid var(--bord);
  font-weight: 700;
  font-size: 14px;
}
.total-val {
  font-size: 17px;
  font-weight: 700;
  color: var(--acc);
}

/* Document items */
.doc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  gap: 12px;
}
.doc-item:last-child { border-bottom: none; }
.doc-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.doc-icon   { font-size: 26px; flex-shrink: 0; }
.doc-name   { display: block; font-weight: 700; font-size: 13px; color: var(--txt); }
.doc-status { display: block; font-size: 11px; color: var(--txt2); margin-top: 2px; font-weight: 600; }

/* Upload button */
.upload-btn {
  background: var(--bg);
  border: 1.5px solid var(--bord);
  border-radius: var(--r-sm);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  color: var(--txt);
  font-family: var(--font);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.upload-btn:hover      { border-color: var(--acc); color: var(--acc); background: var(--acc-l); }
.upload-btn input[type="file"] { display: none; }

/* ════════════════════════════════════════════════
   LOGS PAGE
════════════════════════════════════════════════ */
.log-group   { margin-bottom: 22px; }
.log-date {
  font-size: 11px;
  font-weight: 800;
  color: var(--txt2);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  padding: 0 2px;
}
.log-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1.5px solid var(--bord);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
  animation: slideUp 0.25s ease;
}
.log-entry.log-in  { border-left: 4px solid var(--grn); }
.log-entry.log-out { border-left: 4px solid var(--red); }

.log-type-tag {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  font-family: var(--mono);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.log-in  .log-type-tag { background: var(--grn-l); color: var(--grn); }
.log-out .log-type-tag { background: var(--red-l);  color: var(--red); }

.log-label  { font-weight: 700; font-size: 14px; flex: 1; }
.log-time {
  font-size: 16px;
  font-weight: 600;
  color: var(--txt);
  font-family: var(--mono);
}

/* ════════════════════════════════════════════════
   [NEW] ADMIN NOTIFICATION MODAL
   Used in index.html after request submission.
════════════════════════════════════════════════ */
@keyframes notifPop {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.notif-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 41, 66, 0.6);
  z-index: 8000;
  align-items: flex-end;        /* slides up from bottom on mobile */
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.notif-overlay.show {
  display: flex;
}

.notif-box {
  background: var(--card);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 32px 24px 36px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  animation: notifPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  text-align: center;
}

.notif-icon {
  font-size: 40px;
  margin-bottom: 10px;
  line-height: 1;
}
.notif-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--txt);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.notif-sub {
  font-size: 14px;
  color: var(--txt2);
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.6;
}

.notif-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

/* Email button */
.notif-btn-email {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #fff !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  padding: 15px 20px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}
.notif-btn-email:hover {
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

/* WhatsApp button */
.notif-btn-wa {
  background: linear-gradient(135deg, #16A34A, #15803D);
  color: #fff !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  padding: 15px 20px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.3);
}
.notif-btn-wa:hover {
  box-shadow: 0 6px 22px rgba(22, 163, 74, 0.45);
  transform: translateY(-1px);
}

/* Skip button */
.notif-btn-skip {
  background: none;
  border: none;
  color: var(--txt2);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  width: 100%;
  cursor: pointer;
  transition: color 0.2s;
}
.notif-btn-skip:hover { color: var(--txt); }

/* ════════════════════════════════════════════════
   [NEW] OVERVIEW MENU BUTTON
════════════════════════════════════════════════ */
.ovr-btn {
  background: linear-gradient(135deg, #0891B2, #0E7490);
  box-shadow: 0 4px 20px rgba(8, 145, 178, 0.35);
}
.ovr-btn:hover  { box-shadow: 0 8px 28px rgba(8, 145, 178, 0.45); }
.ovr-icon-box   { background: rgba(255,255,255,0.2); }

/* ════════════════════════════════════════════════
   [NEW] HR ATTENDANCE OVERVIEW PAGE
════════════════════════════════════════════════ */

/* Allow overview section to be wider than 480px */
@media (min-width: 480px) {
  #overviewSection {
    max-width: 100%;
    box-shadow: none;
  }
}
@media (min-width: 1024px) {
  #overviewSection {
    max-width: 1500px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
  }
}

/* ── Filter Bar ──────────────────────────────── */
.ovr-filter-bar {
  background: var(--card);
  border-bottom: 1.5px solid var(--bord);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ovr-filter-dates,
.ovr-filter-search {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ovr-filter-bar .field-group { margin-bottom: 0; }
.ovr-filter-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ovr-btn-reset {
  background: var(--bg);
  border: 1.5px solid var(--bord);
  color: var(--txt);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--r-sm);
}
.ovr-btn-reset:hover { border-color: var(--acc); color: var(--acc); background: var(--acc-l); }
.ovr-btn-export {
  background: linear-gradient(135deg, #16A34A, #15803D);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  box-shadow: 0 2px 12px rgba(22, 163, 74, 0.25);
  margin-left: auto;
}
.ovr-btn-export:hover { box-shadow: 0 4px 18px rgba(22, 163, 74, 0.4); transform: translateY(-1px); }

/* ── Summary Cards ───────────────────────────── */
.ovr-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 16px 20px 0;
}
@media (min-width: 600px)  { .ovr-cards { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .ovr-cards { grid-template-columns: repeat(7, 1fr); } }

.ovr-card {
  background: var(--card);
  border: 1.5px solid var(--bord);
  border-radius: var(--r);
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s;
}
.ovr-card:hover { transform: translateY(-2px); }

.ovr-card-icon  { font-size: 20px; margin-bottom: 6px; line-height: 1; }
.ovr-card-val   {
  font-size: 26px;
  font-weight: 900;
  font-family: var(--mono);
  line-height: 1;
  margin-bottom: 4px;
}
.ovr-card-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--txt2);
}

/* Card accent colors */
.ovr-card-acc  { border-top: 3px solid var(--acc); }
.ovr-card-acc  .ovr-card-val { color: var(--acc); }
.ovr-card-grn  { border-top: 3px solid var(--grn); }
.ovr-card-grn  .ovr-card-val { color: var(--grn); }
.ovr-card-red  { border-top: 3px solid var(--red); }
.ovr-card-red  .ovr-card-val { color: var(--red); }
.ovr-card-amb  { border-top: 3px solid var(--amb); }
.ovr-card-amb  .ovr-card-val { color: var(--amb); }
.ovr-card-pur  { border-top: 3px solid var(--pur); }
.ovr-card-pur  .ovr-card-val { color: var(--pur); }

/* ── Overview Body ───────────────────────────── */
.ovr-body {
  padding: 16px 20px 60px;
  flex: 1;
  overflow-y: auto;
}

/* Range info note above table */
.ovr-range-note {
  font-size: 12px;
  font-weight: 700;
  color: var(--txt2);
  margin-bottom: 10px;
  padding: 8px 12px;
  background: var(--acc-l);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--acc);
}

/* ── Scrollable Table Wrapper ────────────────── */
.ovr-scroll {
  overflow-x: auto;
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--bord);
  -webkit-overflow-scrolling: touch;
}

/* ── Main Overview Table ─────────────────────── */
.ovr-table {
  border-collapse: collapse;
  min-width: 1280px;
  width: 100%;
  font-size: 12.5px;
  background: var(--card);
}
.ovr-table thead tr {
  background: #0F2942;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
}
.ovr-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.ovr-table tbody tr {
  border-bottom: 1px solid var(--bord);
  transition: background 0.1s;
}
.ovr-table tbody tr:last-child { border-bottom: none; }
.ovr-table tbody tr:hover { background: var(--acc-l); }
.ovr-table td {
  padding: 10px 12px;
  white-space: nowrap;
  vertical-align: middle;
}

/* Column type helpers */
.ovr-name { font-weight: 800; font-size: 13px; color: var(--txt); min-width: 130px; white-space: normal; }
.ovr-mono { font-family: var(--mono); font-size: 12px; }
.ovr-sm   { font-size: 11px; }
.ovr-num  { text-align: center; font-family: var(--mono); font-weight: 700; }

/* Number color helpers */
.ovr-grn { color: var(--grn); }
.ovr-red { color: var(--red); }
.ovr-amb { color: var(--amb); }
.ovr-pur { color: var(--pur); }
.ovr-acc { color: var(--acc); font-weight: 900; }

/* Divider column between attendance and payroll sections */
.ovr-divider-th,
.ovr-divider-col {
  width: 6px;
  min-width: 6px;
  padding: 0 !important;
  background: rgba(8, 145, 178, 0.15) !important;
  border-left: 1.5px solid var(--acc);
  border-right: 1.5px solid var(--acc);
}

/* Payroll section header highlight */
.ovr-table th.pay-hdr {
  background: #0E4F6A;
}

/* ── Remark badges ───────────────────────────── */
.ovr-remark {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 10.5px;
  font-weight: 800;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ovr-rem-ok   { background: var(--grn-l); color: var(--grn); }
.ovr-rem-flag { background: var(--amb-l); color: var(--amb); }
.ovr-rem-warn { background: var(--red-l); color: var(--red); }

/* ════════════════════════════════════════════════
   [NEW] REQUEST SECTION — HR APPROVAL UI
════════════════════════════════════════════════ */

/* Section header row with pending count */
.req-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 10px;
}
.req-pending-badge {
  background: var(--amb-l);
  color: var(--amb);
  font-size: 11px;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  border: 1px solid var(--amb);
}

/* Staff chip shown on HR view */
.req-staff-chip {
  font-size: 11px;
  font-weight: 800;
  color: var(--acc);
  background: var(--acc-l);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.req-staff-id {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--txt2);
  font-weight: 600;
}

/* Approval note (italic quote) */
.req-approval-note {
  font-size: 12px;
  color: var(--txt2);
  font-style: italic;
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* Processed-by line */
.req-processed {
  font-size: 11px;
  color: var(--txt2);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-weight: 600;
}

/* Inline approve/reject panel */
.req-approval-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1.5px dashed var(--bord);
}
.req-note-input {
  width: 100%;
  padding: 8px 11px;
  border: 1.5px solid var(--bord);
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--txt);
  resize: none;
  margin-bottom: 8px;
  background: var(--bg);
  transition: border-color 0.2s;
}
.req-note-input:focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 2px var(--acc-l);
  outline: none;
  background: white;
}
.req-approval-btns {
  display: flex;
  gap: 8px;
}
.req-approve-btn {
  flex: 1;
  background: linear-gradient(135deg, var(--grn), #15803d);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  box-shadow: 0 2px 10px rgba(22,163,74,0.28);
  transition: all 0.2s;
}
.req-approve-btn:hover  { box-shadow: 0 4px 16px rgba(22,163,74,0.4); transform: translateY(-1px); }
.req-approve-btn:active { transform: scale(0.96); }
.req-reject-btn {
  flex: 1;
  background: linear-gradient(135deg, var(--red), #b91c1c);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  box-shadow: 0 2px 10px rgba(220,38,38,0.28);
  transition: all 0.2s;
}
.req-reject-btn:hover  { box-shadow: 0 4px 16px rgba(220,38,38,0.4); transform: translateY(-1px); }
.req-reject-btn:active { transform: scale(0.96); }
