/* Paycrix Employee PWA — Sahaj AudTech-inspired theme.
 * Palette: warm black + gold (#FFCC00) + white. Playfair Display for display,
 * Inter for UI. Mobile-first; touch targets sized for thumbs.
 */

:root {
  /* Backgrounds — warm blacks from sahajaudtech.com */
  --bg: #0A0908;
  --surface: #1A1714;
  --surface-elev: #1E1B18;
  --surface-input: #121009;

  /* Accent — gold */
  --accent: #FFCC00;
  --accent-hover: #FFB800;
  --accent-soft: rgba(255, 204, 0, 0.10);
  --accent-line: rgba(255, 204, 0, 0.22);

  /* Text */
  --text: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.62);
  --text-dim: rgba(255, 255, 255, 0.40);

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Semantics */
  --success: #4ade80;
  --danger: #ff5f57;
  --danger-soft: rgba(255, 95, 87, 0.15);

  /* Geometry */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 8px 24px rgba(255, 204, 0, 0.22);

  --safe-top: env(safe-area-inset-top, 0);
  --safe-bottom: env(safe-area-inset-bottom, 0);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

input, button, textarea, select { font: inherit; color: inherit; }

.app-root {
  min-height: 100vh;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  display: flex;
  flex-direction: column;
}

/* Subtle gold gradient backdrop — ambient brand presence */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255, 204, 0, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 110%, rgba(255, 204, 0, 0.06), transparent 70%);
  z-index: 0;
}
.app-root { position: relative; z-index: 1; }

/* --- Boot spinner --- */
.boot-spinner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Screen container --- */
.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}
.screen.center { justify-content: center; }

/* --- Brand --- */
.brand-block {
  text-align: center;
  margin-bottom: 36px;
}
.brand-mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 38px;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1;
}
.brand-mark .accent {
  color: var(--accent);
}
.brand-diamond {
  display: inline-block;
  color: var(--accent);
  margin: 0 8px;
  transform: translateY(-2px);
}
.brand-tagline {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* --- Forms --- */
.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 28px 22px;
}
.form h1 {
  margin: 0 0 6px;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.3px;
}
.form .subtitle {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 14px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.field input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-input);
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: var(--text-dim); }
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
/* Same visual shell for <select> as <input>, plus a gold caret. The OS
 * still draws the open dropdown list, but setting bg+color on <option>
 * makes the items readable on Chrome/Edge/Firefox desktop. */
.field select {
  width: 100%;
  padding: 13px 38px 13px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background-color: var(--surface-input);
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23FFCC00' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field select option {
  background-color: var(--surface-input);
  color: var(--text);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #0A0908;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-accent);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn.secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.btn.secondary:hover { color: var(--text); border-color: var(--accent); }

/* --- Banners --- */
.error-banner {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid rgba(255, 95, 87, 0.3);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 14px;
}
.notice-banner {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 14px;
}

/* Login mode toggle (hr.paycrix.com only) */
.mode-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  background: var(--surface-input);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.mode-tab {
  flex: 1;
  padding: 9px 6px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-radius: calc(var(--radius-sm) - 4px);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mode-tab:hover { color: var(--text); }
.mode-tab.active {
  background: var(--accent);
  color: #0A0908;
}

/* --- Home header --- */
.home-header {
  background: linear-gradient(135deg, var(--surface-elev), var(--surface));
  border: 1px solid var(--accent-line);
  color: var(--text);
  padding: 22px 20px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.home-header::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(255, 204, 0, 0.18), transparent 70%);
  pointer-events: none;
}
.home-header .hi {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.home-header .name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.home-header .name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  flex-wrap: wrap;
}
.home-header .role-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid var(--accent-line);
  background: rgba(255, 204, 0, 0.08);
  color: var(--accent);
}
.home-header .role-badge.role-partner {
  background: var(--accent);
  color: #1a1a1a;
  border-color: var(--accent);
}
.home-header .role-badge.role-hr {
  background: rgba(255, 204, 0, 0.18);
  color: var(--accent);
}
.home-header .role-badge.role-manager {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--text-muted);
}
.home-header .entity {
  margin-top: 4px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

.logout-row { margin-top: 28px; }

/* --- Attendance --- */
.punch-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
  text-align: center;
}
.punch-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}
.punch-status.in {
  color: var(--accent);
}
.punch-since {
  margin-top: 8px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
}
.punch-since-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
  letter-spacing: 0.3px;
}

.punch-btn {
  display: block;
  width: 100%;
  margin-top: 22px;
  padding: 22px 16px;
  border: none;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #0A0908;
  background: var(--accent);
  cursor: pointer;
  box-shadow: var(--shadow-accent);
  transition: transform 0.05s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.punch-btn:hover { background: var(--accent-hover); }
.punch-btn.out {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  box-shadow: none;
}
.punch-btn.out:hover {
  background: var(--accent-soft);
}
.punch-btn:active { transform: scale(0.98); }
.punch-btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

.geo-hint {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.3px;
}
.geo-hint.warn { color: var(--danger); }

/* --- Summary card --- */
.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.summary-card h2 {
  margin: 0 0 14px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.summary-card h2::before {
  content: '◆';
  color: var(--accent);
  font-size: 9px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.summary-row:last-child { border-bottom: none; }
.summary-row .label { color: var(--text-muted); font-size: 13px; }
.summary-row .value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

/* --- Tabs --- */
.tabbar {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  padding: 4px;
}
.tabbar button {
  flex: 1;
  padding: 10px 8px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: all 0.15s ease;
}
.tabbar button.active {
  background: var(--accent);
  color: #0A0908;
}

/* --- Calendar --- */
.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 4px;
}
.cal-header .nav {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: all 0.15s ease;
}
.cal-header .nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.cal-header .title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.2px;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
}
.cal-dow {
  text-align: center;
  font-size: 10px;
  color: var(--text-muted);
  padding: 4px 0;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.cal-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--surface-input);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 2px;
  font-size: 11px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.cal-cell.empty { background: transparent; }
.cal-cell.has-data {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
.cal-cell.today {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.cal-cell.open {
  background: var(--accent);
  color: #0A0908;
}
.cal-cell.open .day-num,
.cal-cell.open .hrs { color: #0A0908; }
.cal-cell .day-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.cal-cell .hrs {
  font-size: 10px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.cal-cell.has-data .hrs { color: var(--accent); }

.cal-total {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}
.cal-total .value {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  text-transform: none;
  letter-spacing: -0.2px;
}

/* --- Payslip list + detail --- */
.payslip-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.payslip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.05s ease;
}
.payslip-row:hover { border-color: var(--accent); }
.payslip-row:active { transform: scale(0.99); }
.payslip-row .month {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}
.payslip-row .locked {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
  letter-spacing: 0.3px;
}
.payslip-row .chevron {
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
}
.payslip-empty {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.payslip-detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}
.payslip-detail-card .month {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.payslip-detail-card .meta {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 4px;
}

.payslip-section h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 18px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.payslip-section h3::before {
  content: '◆';
  color: var(--accent);
  font-size: 9px;
}
.payslip-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.payslip-line:last-child { border-bottom: none; }
.payslip-line .label { color: var(--text-muted); }
.payslip-line .amount {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
}
.payslip-line.deduction .amount { color: var(--danger); }
.payslip-line.info .amount { color: var(--text-dim); font-weight: 500; }

.payslip-totals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.payslip-total {
  padding: 12px 14px;
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.payslip-total .label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.payslip-total .value {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.payslip-net {
  margin-top: 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #1A1714, #0A0908);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 6px 20px rgba(255, 204, 0, 0.15);
}
.payslip-net .label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 700;
}
.payslip-net .value {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

.payslip-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.payslip-actions .btn { flex: 1; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  margin-bottom: 14px;
}
.back-link:hover { text-decoration: underline; }

/* --- Leave --- */
.leave-subtabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.leave-subtabs button {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.leave-subtabs button.active {
  background: var(--accent);
  color: #0A0908;
  border-color: var(--accent);
}
.leave-subtabs button .badge {
  display: inline-block;
  margin-left: 6px;
  background: rgba(0,0,0,0.15);
  color: inherit;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 11px;
}

.balance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.balance-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.balance-tile .ttype {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 700;
}
.balance-tile .tdays {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--text);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.balance-tile .tdays.negative { color: var(--danger); }
.balance-tile .tlabel { font-size: 11px; color: var(--text-dim); }

.leave-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.leave-card .row1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.leave-card .who {
  font-weight: 700;
  font-size: 14px;
}
.leave-card .ttype-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  margin-left: 6px;
  letter-spacing: 0.4px;
}
.leave-card .dates {
  font-size: 13px;
  color: var(--text);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.leave-card .days {
  color: var(--text-muted);
}
.leave-card .reason {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  font-style: italic;
}
.leave-card .status-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.status-chip.PENDING_RM,
.status-chip.PENDING_HR { background: rgba(255,204,0,0.15); color: var(--accent); }
.status-chip.APPROVED   { background: rgba(74,222,128,0.15); color: var(--success); }
.status-chip.REJECTED,
.status-chip.CANCELLED  { background: rgba(255,95,87,0.15); color: var(--danger); }

.leave-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.leave-actions .btn {
  flex: 1;
  padding: 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.btn.danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
  box-shadow: none;
}
.btn.danger:hover { background: rgba(255,95,87,0.10); }

.empty-state {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.preview-line {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}
.preview-line.warn { color: var(--danger); }
.preview-line .num {
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* --- Profile --- */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
}
.profile-card h3 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-card h3::before {
  content: '◆';
  color: var(--accent);
  font-size: 9px;
}
.profile-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.profile-row:last-child { border-bottom: none; }
.profile-row .label {
  color: var(--text-muted);
  font-size: 13px;
  flex: 0 0 40%;
}
.profile-row .value {
  text-align: right;
  font-weight: 500;
  color: var(--text);
  word-break: break-word;
}
.profile-row .value.placeholder { color: var(--text-dim); font-style: italic; }

.profile-edit textarea,
.profile-edit input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-input);
  color: var(--text);
  font: inherit;
}
.profile-edit textarea { min-height: 70px; }
.profile-edit .field { margin-bottom: 12px; }
.profile-edit .field label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: block;
  margin-bottom: 4px;
}

/* --- Documents --- */
.doc-list { display: flex; flex-direction: column; gap: 8px; }
.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  gap: 10px;
}
.doc-row .info { min-width: 0; flex: 1; }
.doc-row .kind {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
}
.doc-row .name {
  font-size: 13px;
  color: var(--text);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doc-row .meta {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}
.doc-row .actions { display: flex; gap: 6px; flex-shrink: 0; }
.doc-row .actions button {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}
.doc-row .actions button:hover { color: var(--accent); border-color: var(--accent); }
.doc-row .actions button.danger { color: var(--danger); border-color: rgba(255,95,87,0.4); }

.doc-status {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 7px;
  border-radius: 999px;
}
.doc-status.PENDING  { background: rgba(255,204,0,0.15); color: var(--accent); }
.doc-status.VERIFIED { background: rgba(74,222,128,0.15); color: var(--success); }
.doc-status.REJECTED { background: rgba(255,95,87,0.15); color: var(--danger); }

.upload-zone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.upload-zone .pickrow {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.upload-zone select,
.upload-zone input[type=file] {
  background: var(--surface-input);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}

/* --- Notifications --- */
.bell-wrap {
  position: absolute;
  top: 14px;
  right: 14px;
}
.bell {
  background: rgba(255, 204, 0, 0.10);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  position: relative;
}
.bell:hover { background: rgba(255, 204, 0, 0.20); }
.bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--danger);
  color: #fff;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.home-header { position: relative; padding-right: 60px; }

.notif-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 70px 12px 12px;
  z-index: 100;
}
.notif-panel {
  background: var(--surface);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  max-width: 440px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}
.notif-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.notif-head h3 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
}
.notif-head .actions { display: flex; gap: 8px; }
.notif-head button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
}
.notif-head button:hover { color: var(--accent); }
.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: rgba(255, 204, 0, 0.05); }
.notif-item .title {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}
.notif-item .body {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.notif-item .when {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.notif-empty { padding: 36px 16px; text-align: center; color: var(--text-muted); font-size: 13px; }

/* --- Holiday markers on calendar --- */
.cal-cell.holiday {
  background: rgba(255, 95, 87, 0.08);
  border-color: rgba(255, 95, 87, 0.25);
}
.cal-cell.holiday .hrs { color: var(--danger); }

.holiday-list-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 14px;
}
.holiday-list-card h3 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
}
.holiday-list-card h3::before { content: '◆'; color: var(--accent); font-size: 9px; }
.holiday-row {
  display: flex; justify-content: space-between; padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.holiday-row:last-child { border-bottom: none; }
.holiday-row .when { color: var(--accent); font-variant-numeric: tabular-nums; font-weight: 600; }
.holiday-row .what { color: var(--text); }

/* --- Regularisation button on Today --- */
.day-actions {
  display: flex; gap: 8px; margin-top: 14px;
}
.day-actions .btn {
  flex: 1; font-size: 12px; padding: 10px;
  text-transform: uppercase; letter-spacing: 0.4px;
}

/* --- Password field with show/hide toggle --- */
.pw-wrap {
  position: relative;
}
.pw-wrap input {
  padding-right: 44px !important;
}
.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  font-size: 16px;
  line-height: 1;
}
.pw-toggle:hover { color: var(--accent); }

/* --- Remember-me checkbox on login --- */
.remember-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 18px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.remember-row input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface-input);
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.remember-row input[type=checkbox]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.remember-row input[type=checkbox]:checked::after {
  content: '✓';
  position: absolute;
  top: -2px;
  left: 2px;
  font-size: 16px;
  color: #0A0908;
  font-weight: 800;
}
.remember-row span {
  color: var(--text);
}
