/* ==========================================================================
   HANSPAUL HRM — UNIFIED DESIGN SYSTEM & THEME TOKENS (2026 EDITION)
   Clean, modern, accessible, and ultra-lightweight enterprise styling.
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  /* Color Palette - Light Mode */
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-hover: #f1f5f9;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --ink: #0f172a;
  --muted: #64748b;

  --border-color: #e2e8f0;
  --line: #e2e8f0;

  /* Primary Brand */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-dark: #173ea6;
  --primary-light: #eff6ff;

  /* Status Colors */
  --success: #16a34a;
  --success-bg: #dcfce7;
  --success-text: #14532d;
  --warning: #d97706;
  --warning-bg: #fef3c7;
  --warning-text: #78350f;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --danger-text: #7f1d1d;
  --info: #0284c7;
  --info-bg: #e0f2fe;
  --info-text: #0369a1;

  /* Form Elements */
  --input-bg: #ffffff;
  --input-text: #0f172a;
  --input-border: #cbd5e1;
  --input-focus-border: #3b82f6;
  --input-placeholder: #94a3b8;

  /* Sidebar Tokens (Dark Slate Premium Contrast) */
  --sidebar-bg: #0b1320;
  --sidebar-border: rgba(255, 255, 255, 0.08);
  --sidebar-text: #94a3b8;
  --sidebar-text-hover: #f8fafc;
  --sidebar-hover-bg: rgba(255, 255, 255, 0.07);
  --sidebar-active-bg: #2563eb;
  --sidebar-active-text: #ffffff;
  --sidebar-group-header: #64748b;

  /* Shadows & Radii */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Executive BI Dashboard Tokens - Light Mode */
  --bi-bg: #f8fafc;
  --bi-card-bg: #ffffff;
  --bi-card-border: #e2e8f0;
  --bi-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  --bi-gold: #b45309;
  --bi-accent: #2563eb;
  --bi-chart-grid: rgba(0, 0, 0, 0.06);
  --bi-table-header: #f1f5f9;
  --bi-total-bg: #e2e8f0;
  --bi-total-text: #1e3a8a;
}

[data-theme="dark"] {
  /* Color Palette - Dark Mode */
  --bg-primary: #070d18;
  --bg-secondary: #0f172a;
  --bg-card: #131e31;
  --surface: #131e31;
  --surface-2: #18263e;
  --surface-hover: #1e3150;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8b9bb4;
  --ink: #f8fafc;
  --muted: #8b9bb4;

  --border-color: #23344e;
  --line: #23344e;

  /* Primary Brand */
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-dark: #2563eb;
  --primary-light: rgba(59, 130, 246, 0.15);

  /* Status Colors */
  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.16);
  --success-text: #86efac;
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.16);
  --warning-text: #fde68a;
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.16);
  --danger-text: #fca5a5;
  --info: #38bdf8;
  --info-bg: rgba(56, 189, 248, 0.16);
  --info-text: #bae6fd;

  /* Form Elements */
  --input-bg: #0b1320;
  --input-text: #f8fafc;
  --input-border: #23344e;
  --input-focus-border: #60a5fa;
  --input-placeholder: #576b8a;

  /* Sidebar Tokens */
  --sidebar-bg: #060b13;
  --sidebar-border: rgba(255, 255, 255, 0.06);
  --sidebar-text: #8292ab;
  --sidebar-text-hover: #ffffff;
  --sidebar-hover-bg: rgba(255, 255, 255, 0.06);
  --sidebar-active-bg: #2563eb;
  --sidebar-active-text: #ffffff;
  --sidebar-group-header: #576b8a;

  /* Executive BI Dashboard Tokens - Dark Mode */
  --bi-bg: #070d18;
  --bi-card-bg: #131e31;
  --bi-card-border: #23344e;
  --bi-card-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  --bi-gold: #f59e0b;
  --bi-accent: #3b82f6;
  --bi-chart-grid: rgba(255, 255, 255, 0.07);
  --bi-table-header: #18263e;
  --bi-total-bg: #1c2b44;
  --bi-total-text: #93c5fd;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
}

/* Base Body Styles */
html {
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}

/* App Shell Layout */
.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ==========================================================================
   SIDEBAR NAVIGATION
   Single source of truth, zero flicker, clean hierarchy
   ========================================================================== */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 252px;
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: width 180ms var(--ease), transform 180ms var(--ease);
  user-select: none;
}

.brand {
  height: 68px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

/* The Hanspaul emblem (from the Group logo) on a white tile; the "H" text stays for screen readers. */
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #ffffff url("../img/hanspaul-emblem.png") center / 82% no-repeat;
  color: transparent;
  font-size: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}

.brand-copy strong {
  display: block;
  font-size: 13px;
  color: #ffffff;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.brand-copy span {
  display: block;
  font-size: 9.5px;
  color: #94a3b8;
  letter-spacing: 1.2px;
  font-weight: 600;
}

.sidebar-collapse {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--sidebar-text);
  font-size: 20px;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  transition: background-color 120ms ease, color 120ms ease;
}

.sidebar-collapse:hover {
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-text-hover);
}

.nav {
  padding: 12px 10px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
}

.nav::-webkit-scrollbar {
  width: 4px;
}
.nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Nav Items & Groups */
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sidebar-text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  margin: 2px 0;
  transition: background-color 120ms ease, color 120ms ease;
}

.nav-item:hover {
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-text-hover);
}

.nav-icon {
  width: 18px;
  text-align: center;
  font-size: 14px;
  color: var(--sidebar-text);
  opacity: 0.85;
}

.nav-item:hover .nav-icon {
  color: var(--sidebar-text-hover);
  opacity: 1;
}

/* SINGLE SOURCE OF TRUTH: Active Sidebar Item */
.nav-item.active {
  background: var(--sidebar-active-bg) !important;
  color: var(--sidebar-active-text) !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.nav-item.active .nav-icon {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Nav Group Accordion */
.nav-group {
  margin: 3px 0;
}

.nav-group-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--sidebar-text);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  transition: background-color 120ms ease, color 120ms ease;
}

.nav-group-toggle:hover {
  background: var(--sidebar-hover-bg);
  color: var(--sidebar-text-hover);
}

.nav-group-toggle .chevron {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.7;
  transition: transform 160ms var(--ease);
}

.nav-group.open .chevron {
  transform: rotate(180deg);
}

.nav-sub {
  display: none;
  padding-left: 8px;
  margin-top: 2px;
}

.nav-group.open .nav-sub {
  display: block;
}

.nav-sub .nav-item {
  padding-left: 28px;
  font-size: 12.5px;
}

.sidebar-footer {
  font-size: 11px;
  color: var(--sidebar-text);
  padding: 12px 18px;
  border-top: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

/* Collapsed Sidebar Mode */
.app-shell.sidebar-collapsed .sidebar {
  width: 68px;
}

.app-shell.sidebar-collapsed .main-area {
  margin-left: 68px;
}

.app-shell.sidebar-collapsed .brand-copy,
.app-shell.sidebar-collapsed .nav-text,
.app-shell.sidebar-collapsed .chevron,
.app-shell.sidebar-collapsed .sidebar-footer .nav-text {
  display: none;
}

.app-shell.sidebar-collapsed .brand {
  justify-content: center;
  padding: 0;
}

.app-shell.sidebar-collapsed .nav-item,
.app-shell.sidebar-collapsed .nav-group-toggle {
  justify-content: center;
  padding: 9px;
}

.app-shell.sidebar-collapsed .nav-sub {
  padding-left: 0;
}

/* ==========================================================================
   MAIN AREA & TOPBAR
   ========================================================================== */
.main-area {
  margin-left: 252px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 180ms var(--ease);
}

.topbar {
  height: 68px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease);
}

.top-left, .top-actions, .user-menu {
  display: flex;
  align-items: center;
}

.top-left {
  gap: 16px;
}

.page-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.breadcrumb {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.top-actions {
  gap: 12px;
}

.icon-btn {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 17px;
  cursor: pointer;
  padding: 7px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 120ms ease, color 120ms ease;
}

/* The hidden attribute always hides, even on elements whose class sets a display value. */
[hidden] { display: none !important; }
/* "Get the app" keeps only its icon on narrow screens. */
@media (max-width: 1200px) { .get-app-label { display: none; } }

.icon-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.icon-btn.theme-toggle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--surface);
  color: var(--text-primary);
  font-size: 15px;
  transition: all 0.15s ease;
}

.icon-btn.theme-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  transform: scale(1.05);
}

.mobile-menu {
  display: none;
}

/* Global Search */
.global-search {
  position: relative;
  width: min(340px, 32vw);
}

.global-search > span {
  position: absolute;
  left: 11px;
  top: 9px;
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
}

.global-search input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0 12px 0 34px !important;
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  font-size: 13px;
  outline: 0;
  transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease;
}

.global-search input:focus {
  border-color: var(--primary) !important;
  background: var(--surface) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.search-results {
  position: absolute;
  z-index: 200;
  top: 42px;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
  max-height: 360px;
  overflow-y: auto;
}

.search-results a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 100ms ease;
}

.search-results a:last-child {
  border-bottom: 0;
}

.search-results a:hover {
  background: var(--surface-hover);
}

.search-results strong {
  display: block;
  font-size: 13px;
}

.search-results small {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 2px;
}

/* User Menu */
.user-menu {
  gap: 10px;
  padding-left: 12px;
  border-left: 1px solid var(--border-color);
}

.user-company {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 4px 8px;
  border-radius: 6px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
}

.user-text strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.user-text small {
  display: block;
  color: var(--text-muted);
  font-size: 10.5px;
}

.user-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 16px;
  padding: 4px;
  border-radius: 4px;
}

.user-menu a:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

/* ==========================================================================
   PAGE CONTENT & TYPOGRAPHY
   ========================================================================== */
.content {
  padding: 28px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.eyebrow {
  font-size: 10.5px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.page-head h1, .content > h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 750;
  color: var(--text-primary);
  letter-spacing: -0.4px;
}

.page-head p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.section-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 14px;
}

.muted {
  color: var(--text-muted);
}

.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mt { margin-top: 16px; }
.mb { margin-bottom: 16px; }

/* ==========================================================================
   BUTTONS
   Consistent hierarchy, no oversized or animated elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border-color);
  background: var(--surface);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
  line-height: 1.4;
}

.btn:hover {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
}

.btn-primary:hover {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  color: #ffffff !important;
}

.btn-danger {
  background: var(--surface) !important;
  border-color: var(--danger) !important;
  color: var(--danger) !important;
}

.btn-danger:hover {
  background: var(--danger-bg) !important;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 5px;
}

.btn-lg {
  padding: 10px 18px;
  font-size: 14px;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 150ms ease;
}

.card-body {
  padding: 20px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Dashboard KPI Cards */
.kpi {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.kpi .card-body {
  padding: 16px 18px;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.kpi .label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.kpi .value {
  font-variant-numeric: tabular-nums;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 6px;
  letter-spacing: -0.5px;
}

.kpi .meta {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 6px;
}

.kpi-icon {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
}

.kpi-green .kpi-icon {
  background: var(--success-bg);
  color: var(--success);
}

.kpi-purple .kpi-icon {
  background: var(--info-bg);
  color: var(--info);
}

.kpi-amber .kpi-icon {
  background: var(--warning-bg);
  color: var(--warning);
}

/* Hero Banner on Dashboard */
.hero-banner {
  background: linear-gradient(135deg, #0b1320 0%, #16243b 60%, #1a3152 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-banner .eyebrow {
  color: #93c5fd;
}

.hero-banner h1 {
  font-size: 26px;
  margin: 0 0 6px;
  color: #ffffff;
}

.hero-banner p {
  color: #cbd5e1;
  margin: 0 0 12px;
}

.hero-meta {
  display: flex;
  gap: 16px;
  font-size: 11.5px;
  color: #94a3b8;
  flex-wrap: wrap;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   TABLES
   Readable, crisp contrast, no white-on-white or dark-on-dark
   ========================================================================== */
.table-wrap {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow-x: auto;
  background: var(--surface);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 13px;
}

.table th {
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  vertical-align: middle;
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table tbody tr:hover td {
  background: var(--surface-hover);
}

.right {
  text-align: right !important;
}

.employee-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   FORMS & INPUTS
   Zero invisible text, clear labels, distinct focus state
   ========================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-section {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
  margin-top: 8px;
}

.field label, label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

input, select, textarea, .field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--input-border) !important;
  border-radius: var(--radius-sm) !important;
  background-color: var(--input-bg) !important;
  color: var(--input-text) !important;
  padding: 8px 12px !important;
  font-size: 13.5px !important;
  font-family: inherit !important;
  outline: none !important;
  transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
  min-height: 38px;
}

input::placeholder, textarea::placeholder {
  color: var(--input-placeholder) !important;
  opacity: 1;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--input-focus-border) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16) !important;
}

select option {
  background-color: var(--surface);
  color: var(--text-primary);
}

.field small {
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 4px;
  display: block;
}

/* ==========================================================================
   BADGES & ALERTS
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 700;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  line-height: 1.3;
}

.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-warning { background: var(--warning-bg); color: var(--warning-text); }
.badge-danger { background: var(--danger-bg); color: var(--danger-text); }
.badge-info { background: var(--info-bg); color: var(--info-text); }

.alert, .toast {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
}

.toast-success, .alert-success {
  background: var(--success-bg);
  color: var(--success-text);
  border-color: rgba(34, 197, 94, 0.3);
}

.toast-danger, .alert-danger {
  background: var(--danger-bg);
  color: var(--danger-text);
  border-color: rgba(239, 68, 68, 0.3);
}

.toast-warning, .alert-warning {
  background: var(--warning-bg);
  color: var(--warning-text);
  border-color: rgba(245, 158, 11, 0.3);
}

.empty {
  padding: 36px 16px;
  text-align: center;
  color: var(--text-muted);
}

.empty strong {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 4px;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

.modal-content, .modal-card {
  background: var(--surface) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
}

.modal-content h2, .modal-card h2 {
  color: var(--text-primary);
  margin-top: 0;
}

/* Login Page */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg-primary);
  padding: 16px;
}

.login-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.login-brand {
  text-align: center;
  margin-bottom: 24px;
}

.login-brand .brand-mark {
  margin: 0 auto 12px;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.login-brand h1 {
  margin: 0;
  font-size: 20px;
  color: var(--text-primary);
}

.login-brand p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

/* Profile / 360 View */
.profile-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 18px;
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
}

.profile-main h2 {
  margin: 0 0 4px;
  font-size: 20px;
  color: var(--text-primary);
}

.profile-main p {
  margin: 0;
  color: var(--text-muted);
}

.profile-stats {
  display: flex;
  gap: 28px;
  align-items: center;
}

.profile-stats small, .detail-grid small {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  margin-bottom: 2px;
}

.profile-stats strong {
  font-size: 14px;
  color: var(--text-primary);
}

.profile-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin: 16px 0;
  padding: 4px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.profile-tabs a {
  padding: 8px 14px;
  border-radius: 5px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.profile-tabs a:hover {
  color: var(--text-primary);
}

.profile-tabs a.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.detail-grid strong {
  font-size: 13.5px;
  color: var(--text-primary);
}

/* Reports */
.report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.report-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}

.report-card:hover {
  border-color: var(--primary);
}

.report-card h3 {
  margin: 12px 0 6px;
  font-size: 15px;
  color: var(--text-primary);
}

.report-card p {
  color: var(--text-muted);
  font-size: 12.5px;
  margin: 0;
  line-height: 1.4;
  flex: 1;
}

.report-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
}

/* Bars & Lists */
.bar-row {
  margin: 12px 0;
}

.bar {
  height: 7px;
  background: var(--bg-secondary);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 6px;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
}

.list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.list-item:last-child {
  border-bottom: 0;
}

.list-item strong {
  color: var(--text-primary);
}

/* Document & Letter Prints */
.salary-paper, .letter-paper {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1100px) and (min-width: 701px) {
  .sidebar { width: 68px; }
  .main-area { margin-left: 68px; }
  .brand-copy, .nav-text, .chevron, .sidebar-footer .nav-text { display: none; }
  .brand { justify-content: center; padding: 0; }
  .sidebar-collapse { display: none; }
  .nav-item, .nav-group-toggle { justify-content: center; padding: 9px; }
  .nav-sub { padding-left: 0; }
  .global-search { width: 220px; }
  .user-text { display: none; }
  .report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .sidebar {
    width: 260px;
    transform: translateX(-100%);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .main-area { margin-left: 0; }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  .sidebar-backdrop.show { display: block; }
  .mobile-menu { display: inline-flex; }
  .sidebar-collapse { display: none; }
  .topbar { padding: 0 16px; }
  .global-search { display: none; }
  .user-text { display: none; }
  .content { padding: 16px; }
  .grid-6, .grid-4, .grid-3, .grid-2, .form-grid, .report-grid { grid-template-columns: 1fr; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .profile-hero { flex-direction: column; }
  .hero-banner { flex-direction: column; align-items: flex-start; }

  /* Phone shell: the top bar fits the screen; its buttons scroll sideways instead of widening the page. */
  .topbar { height: 56px; padding: 0 8px; gap: 6px; }
  .top-left { gap: 6px; flex: 1 1 auto; min-width: 0; }
  .top-left > div { min-width: 0; }
  .page-title { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .breadcrumb { display: none; }
  .top-actions { gap: 2px; flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .top-actions::-webkit-scrollbar { display: none; }
  .top-actions > * { flex: 0 0 auto; }
  .top-actions .icon-btn { padding: 6px; }
  #getAppLink, .birthday-toggle-btn, .user-menu .avatar { display: none !important; }
  .user-company span:first-child { display: inline-block; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
  .user-menu { gap: 6px; }
  .content { padding: 12px; }
  .main-area { min-width: 0; }

  /* Wide tables scroll inside their own box; the page itself never scrolls sideways. */
  .content table:not(.table-wrap table):not(.table-responsive table):not(.no-mobile-scroll) {
    display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .content th { white-space: nowrap; }
  .content img, .content canvas, .content svg, .content iframe { max-width: 100%; }
  .content canvas { height: auto !important; }
  .content pre { white-space: pre-wrap; word-break: break-word; }

  /* Tile and card rows laid out with inline grid columns become two (or one) columns. */
  .content [style*="grid-template-columns"] { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important; }
  .content input, .content select, .content textarea { max-width: 100%; }
  .modal-dialog, .modal-content, [class*="modal"] > div { max-width: calc(100vw - 16px); }

  /* Small labels stay readable on a phone. */
  .badge, .eyebrow, .table th { font-size: 11.5px; }
}

/* Print Clean Styles */
@media print {
  .sidebar, .topbar, .actions, .filter-bar, .btn { display: none !important; }
  .main-area { margin: 0 !important; }
  .content { padding: 0 !important; max-width: none !important; }
  .card { box-shadow: none !important; border: 0 !important; }
  body { background: #ffffff !important; color: #000000 !important; }
}

/* ==========================================================================
   GROUP REPORT LOGO WATERMARK (EVERY REPORT & PRINTABLE VIEW)
   ========================================================================== */
.group-report-watermark {
  display: none;
}

@media print {
  .group-report-watermark {
    display: flex !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    transform-origin: center center !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
    z-index: 99999 !important;
    opacity: 0.08 !important;
    text-align: center !important;
    white-space: nowrap !important;
    user-select: none !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .group-report-watermark .wm-logo-img {
    width: 220px !important;
    height: auto !important;
    max-height: 220px !important;
    object-fit: contain !important;
    filter: grayscale(100%) contrast(120%) !important;
    margin-bottom: 12px !important;
    display: block !important;
  }
  .group-report-watermark .wm-title {
    font-size: 26pt !important;
    font-weight: 900 !important;
    letter-spacing: 5px !important;
    color: #0f172a !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
  }
  .group-report-watermark .wm-sub {
    font-size: 15pt !important;
    font-weight: 800 !important;
    letter-spacing: 7px !important;
    color: #b91c1c !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
    margin-top: 6pt !important;
  }
}

/* On-screen paper & report watermark with logo */
.paper-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
  opacity: 0.07;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.paper-watermark .wm-logo-img {
  width: 170px;
  height: auto;
  max-height: 170px;
  object-fit: contain;
  filter: grayscale(100%);
  margin-bottom: 8px;
  display: block;
}

.paper-watermark .wm-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #0f172a;
  line-height: 1.1;
  text-transform: uppercase;
}

.paper-watermark .wm-sub {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 6px;
  color: #b91c1c;
  line-height: 1.1;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ==========================================================================
   PASSWORD FIELD VISIBILITY TOGGLE & SECURITY STYLES (2026 EDITION)
   ========================================================================== */
.pwd-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.pwd-field-wrap input {
  width: 100%;
  padding-right: 42px !important;
}

.pwd-toggle-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm, 6px);
  line-height: 1;
  transition: color 0.15s ease, background-color 0.15s ease;
  z-index: 5;
}

.pwd-toggle-btn:hover {
  color: var(--primary, #2563eb);
  background: var(--surface-hover, rgba(0, 0, 0, 0.05));
}

.pwd-toggle-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.pwd-toggle-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  display: block;
}

/* Password Security Checklist & Feedback */
.pwd-rule-box {
  background: var(--surface-2, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 8px;
  font-size: 11.5px;
}

.pwd-rule-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--text-muted, #64748b);
  font-weight: 500;
  transition: color 0.15s ease;
}

.pwd-rule-item:last-child {
  margin-bottom: 0;
}

.pwd-rule-item.valid {
  color: var(--success, #16a34a);
  font-weight: 700;
}

.pwd-rule-item.invalid {
  color: var(--text-muted, #64748b);
}

.pwd-rule-item.error {
  color: var(--danger, #dc2626);
  font-weight: 600;
}

.pwd-rule-item .rule-icon {
  font-size: 12px;
  width: 14px;
  text-align: center;
  display: inline-block;
}

/* Unified KPI Stat Cards & Box Presentation System (Management & Executive Views) */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-kpi-card,
.kpi-stat-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  min-height: 84px;
  box-sizing: border-box;
}

.admin-kpi-card:hover,
.kpi-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.admin-kpi-card .kpi-label,
.kpi-stat-card .card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  text-align: center;
}

.admin-kpi-card .kpi-value,
.kpi-stat-card .card-value {
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.3px;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 4px;
}

.admin-kpi-card .kpi-meta,
.kpi-stat-card .card-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  line-height: 1.35;
  width: 100%;
  text-align: center;
}

/* Subtle Top Accents */
.admin-kpi-card.accent-primary, .kpi-stat-card.accent-primary { border-top: 3px solid #2563eb; }
.admin-kpi-card.accent-success, .kpi-stat-card.accent-success { border-top: 3px solid #059669; }
.admin-kpi-card.accent-danger,  .kpi-stat-card.accent-danger  { border-top: 3px solid #dc2626; }
.admin-kpi-card.accent-info,    .kpi-stat-card.accent-info    { border-top: 3px solid #0284c7; }
.admin-kpi-card.accent-warning, .kpi-stat-card.accent-warning { border-top: 3px solid #d97706; }
.admin-kpi-card.accent-purple,  .kpi-stat-card.accent-purple  { border-top: 3px solid #7c3aed; }

/* Operational Workspace Compact Cards */
.ws-mini-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
  min-height: 84px;
  box-sizing: border-box;
}
.ws-mini-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.ws-mini-card .ws-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  width: 100%;
  text-align: center;
}
.ws-mini-card .ws-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-align: center;
}
.ws-mini-card .ws-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-align: center;
  width: 100%;
}
.ws-mini-card .btn {
  width: 100%;
  text-align: center;
}


/* Compact label/value KPI tiles (Employee 360, System Health) */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.kpi-grid > .kpi {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 14px;
  min-height: 76px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
}
.kpi-grid > .kpi > span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.kpi-grid > .kpi > strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* Shared working period shown in the top bar on every page */
.period-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-primary);
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.period-pill:hover { border-color: var(--primary); }
.period-pill-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
@media (max-width: 640px) { .period-pill-label { display: none; } }

/* Locked account notice on the sign-in page */
.lock-notice {
  border: 1px solid var(--danger);
  background: var(--danger-bg);
  color: var(--danger-text);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.45;
}
.lock-notice p { margin: 4px 0 0; }
.lock-notice-title { font-weight: 800; font-size: 14px; }
.lock-notice-contact { font-weight: 600; }

/* One-time update request shown inside Windows app copies that cannot update themselves. */
.app-update-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; background: var(--info-bg); color: var(--info-text);
  border: 1px solid var(--info); font-size: 13px; }
.app-update-actions { display: inline-flex; gap: 8px; }

/* Working-area background: a faint grey Hanspaul logo behind every signed-in page (not printed; printouts keep
   their own watermark). It sits over the working area, lightly enough that text stays fully readable. */
.work-watermark {
  position: fixed;
  top: 68px;
  left: 252px;
  right: 0;
  bottom: 0;
  background: url("../img/hanspaul-watermark.png") center 52% / min(34vw, 420px) auto no-repeat;
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
  z-index: 5;
}
.app-shell.sidebar-collapsed .work-watermark { left: 68px; }
@media (max-width: 1100px) and (min-width: 701px) { .work-watermark { left: 68px; } }
@media (max-width: 700px) { .work-watermark { left: 0; background-size: 70vw auto; } }
[data-theme="dark"] .work-watermark { filter: invert(1); opacity: 0.06; }
@media print { .work-watermark { display: none !important; } }

/* Super Admin: marked in gold in the top bar and on the Users page. */
.user-text small.role-super { color: #b45309; font-weight: 700; }
[data-theme="dark"] .user-text small.role-super { color: #fbbf24; }
.role-badge.role-super { background: linear-gradient(135deg, #f59e0b, #b45309); color: #fff; border-color: transparent; }


.back-btn {
  border: 1px solid var(--border-color);
  background: var(--surface);
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 120ms ease;
  cursor: pointer;
}

.back-btn:hover {
  background: var(--bg-secondary);
  border-color: var(--primary);
  color: var(--primary);
}
