/* Diallo HRMS Consolidated Enterprise CSS Bundle */

/* --- START: css/variables.css --- */
/* ==========================================================================
   DIALLO HRMS — CSS VARIABLES & DESIGN TOKENS
   Theme: White + Blue Enterprise SaaS
   Supports: Light (Default) and Dark Theme via [data-theme="dark"]
   ========================================================================== */

:root {
  /* Brand Primary Colors (Blue System) */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb; /* Primary Brand Blue */
  --primary-700: #1d4ed8; /* Darker Blue */
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;
  --primary-950: #172554;

  /* Primary Brand Alias */
  --primary: var(--primary-600);
  --primary-hover: var(--primary-700);
  --primary-light: var(--primary-50);
  --primary-soft: rgba(37, 99, 235, 0.08);
  --primary-border: rgba(37, 99, 235, 0.2);

  /* Module Accent Colors (Subtle Accents) */
  --accent-dashboard: #2563eb;
  --accent-people: #7c3aed;
  --accent-attendance: #0891b2;
  --accent-leave: #16a34a;
  --accent-payroll: #ea580c;
  --accent-ess: #db2777;
  --accent-comms: #0d9488;
  --accent-reports: #2563eb;
  --accent-admin: #dc2626;
  --accent-settings: #4f46e5;
  --accent-billing: #0284c7;

  /* Status Colors */
  --success: #16a34a;
  --success-light: #f0fdf4;
  --success-border: #bbf7d0;
  --success-text: #15803d;

  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --warning-border: #fde68a;
  --warning-text: #b45309;

  --danger: #dc2626;
  --danger-light: #fef2f2;
  --danger-border: #fecaca;
  --danger-text: #b91c1c;

  --info: #0284c7;
  --info-light: #f0f9ff;
  --info-border: #bae6fd;
  --info-text: #0369a1;

  /* LIGHT THEME (Default: 70-80% White, 10-20% Light Grey, 5-10% Blue) */
  --bg-app: #f8fafc;
  --bg-sidebar: #ffffff;
  --bg-header: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fbfcfe;
  --bg-input: #ffffff;
  --bg-hover: #f1f5f9;
  --bg-active: #eff6ff;
  --bg-modal: #ffffff;
  --bg-dropdown: #ffffff;
  --bg-table-header: #f8fafc;
  --bg-table-row-hover: #f8fafc;
  --bg-table-stripe: #fafbfc;
  --bg-badge: #f1f5f9;
  --bg-overlay: rgba(15, 23, 42, 0.5);

  /* Surface & Body Aliases */
  --bg-body: var(--bg-app);
  --bg-surface: var(--bg-card);
  --font-family-base: var(--font-family);

  /* Text Colors */
  --text-main: #0f172a;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  /* Border Colors */
  --border-light: #f1f5f9;
  --border-main: #e2e8f0;
  --border-dark: #cbd5e1;
  --border-focus: #2563eb;

  /* Shadows (Soft Enterprise SaaS) */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);

  /* Sizing & Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --sidebar-width: 260px;
  --sidebar-collapsed-width: 72px;
  --header-height: 64px;
  --transition-speed: 0.2s;
  --transition-ease: cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography Stack */
  --font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}

/* ==========================================================================
   DARK THEME SYSTEM
   True Black / Deep Charcoal Grey Surfaces with Pure Crisp White & Bright Silver Text
   ========================================================================== */
[data-theme="dark"] {
  --primary-light: rgba(59, 130, 246, 0.2);
  --primary-soft: rgba(59, 130, 246, 0.15);
  --primary-border: rgba(59, 130, 246, 0.45);

  /* Dark Theme Surfaces: True Black & Sleek Charcoal Grey */
  --bg-app: #090a0d;
  --bg-sidebar: #0f1115;
  --bg-header: #0f1115;
  --bg-card: #16181e;
  --bg-card-hover: #1e2129;
  --bg-input: #0f1115;
  --bg-hover: #1e2129;
  --bg-active: rgba(59, 130, 246, 0.25);
  --bg-modal: #16181e;
  --bg-dropdown: #16181e;
  --bg-table-header: #0f1115;
  --bg-table-row-hover: #1c1f26;
  --bg-table-stripe: #121419;
  --bg-badge: #21242d;
  --bg-overlay: rgba(0, 0, 0, 0.85);

  /* Dark Surface & Body Aliases */
  --bg-body: var(--bg-app);
  --bg-surface: var(--bg-card);
  --font-family-base: var(--font-family);

  /* Dark Theme Text: Pure Whites & Bright Silver */
  --text-main: #ffffff;
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --text-inverse: #090a0d;

  /* Dark Theme Borders */
  --border-light: #1c1f26;
  --border-main: #262a33;
  --border-dark: #373c49;
  --border-focus: #3b82f6;

  /* Dark Theme Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.6), 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.7), 0 2px 4px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.8), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.9), 0 10px 10px -5px rgba(0, 0, 0, 0.6);

  /* Status Colors in Dark Mode (High-Contrast & Vibrant) */
  --success-light: rgba(34, 197, 94, 0.18);
  --success-border: rgba(34, 197, 94, 0.4);
  --success-text: #4ade80;

  --warning-light: rgba(245, 158, 11, 0.18);
  --warning-border: rgba(245, 158, 11, 0.4);
  --warning-text: #fbbf24;

  --danger-light: rgba(239, 68, 68, 0.18);
  --danger-border: rgba(239, 68, 68, 0.4);
  --danger-text: #f87171;

  --info-light: rgba(14, 165, 233, 0.18);
  --info-border: rgba(14, 165, 233, 0.4);
  --info-text: #38bdf8;
}

/* --- END: css/variables.css --- */

/* --- START: css/global.css --- */
/* ==========================================================================
   DIALLO HRMS — GLOBAL BASE STYLES & RESET
   ========================================================================== */

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

html {
  font-size: 15.5px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-primary);
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  min-height: 100vh;
  position: relative;
  transition: background-color var(--transition-speed) var(--transition-ease),
              color var(--transition-speed) var(--transition-ease);
}

/* Base Responsive Container Constraints */
.app-container,
.main-wrapper,
.main-content,
.card {
  min-width: 0;
  max-width: 100%;
}

img, svg, canvas, video {
  max-width: 100%;
  height: auto;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: 1.85rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 1.22rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-speed) var(--transition-ease);
}
a:hover {
  color: var(--primary-hover);
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

img, svg {
  vertical-align: middle;
  display: inline-block;
}

/* Utility Flex & Grid Helpers */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.flex-1 { flex: 1; min-width: 0; }
.flex-wrap { flex-wrap: wrap; }

.grid { display: grid; }
.grid-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.grid-2-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid-4-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.flex-responsive {
  display: flex;
  flex-direction: row;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.text-main { color: var(--text-main); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  line-height: 1;
  text-transform: capitalize;
  white-space: nowrap;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}
.badge-success {
  background: var(--success-light);
  color: var(--success-text);
  border: 1px solid var(--success-border);
}
.badge-warning {
  background: var(--warning-light);
  color: var(--warning-text);
  border: 1px solid var(--warning-border);
}
.badge-danger {
  background: var(--danger-light);
  color: var(--danger-text);
  border: 1px solid var(--danger-border);
}
.badge-info {
  background: var(--info-light);
  color: var(--info-text);
  border: 1px solid var(--info-border);
}
.badge-neutral {
  background: var(--bg-badge);
  color: var(--text-secondary);
  border: 1px solid var(--border-main);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.25s ease-out forwards;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Hidden elements */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   SYSTEM-WIDE UNIFORM TYPOGRAPHY & FONT SIZING STANDARDS
   ========================================================================== */
body, button, input, select, textarea, table, th, td, h1, h2, h3, h4, h5, h6, p, span, div, strong, b, a, label, li, ul, ol {
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code, pre, kbd, samp {
  font-family: var(--font-family-mono) !important;
}

/* 1. Page Headers */
.page-title {
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: var(--text-main) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.015em !important;
}

.page-subtitle {
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  color: var(--text-secondary) !important;
  margin-top: 3px !important;
  line-height: 1.45 !important;
}

.breadcrumb {
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  color: var(--text-muted) !important;
}

/* 2. Cards & Section Titles */
.card-title, h3.card-title, div.card-title {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--text-main) !important;
  line-height: 1.3 !important;
}

.card-subtitle {
  font-size: 0.82rem !important;
  font-weight: 400 !important;
  color: var(--text-secondary) !important;
}

/* 3. Metric KPI Cards */
.kpi-value {
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  color: var(--text-main) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.02em !important;
}

.kpi-label {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: var(--text-muted) !important;
}

.kpi-subtitle {
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
}

/* 4. Tables */
table.data-table th, .table th {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: var(--text-muted) !important;
}

table.data-table td, .table td {
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  color: var(--text-main) !important;
}

/* 5. Forms & Buttons */
.form-label {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: var(--text-main) !important;
}

.form-control, input, select, textarea {
  font-size: 0.85rem !important;
  font-family: var(--font-family) !important;
}

.btn {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  font-family: var(--font-family) !important;
}

/* --- END: css/global.css --- */

/* --- START: css/layout.css --- */
/* ==========================================================================
   DIALLO HRMS — LAYOUT & NAVIGATION SHELL
   ========================================================================== */

/* Main App Container */
.app-container {
  display: flex;
  min-height: 100vh;
  background-color: var(--bg-app);
}

/* ----------------------------------------------------
   TOP HEADER
   ---------------------------------------------------- */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 40;
  box-sizing: border-box;
  max-width: 100vw;
  transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  min-width: 0;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
  user-select: none;
  min-width: 0;
}

.brand-icon-box {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
  overflow: hidden;
}
.brand-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-name {
  display: flex;
  align-items: center;
  gap: 4px;
}
.brand-name span.hrms-tag {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  margin-left: 2px;
}

.sidebar-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: transparent;
  transition: all var(--transition-speed);
}
.sidebar-toggle-btn:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

/* Header Center: Global Search */
.header-center {
  flex: 1;
  max-width: 260px;
  margin: 0 12px;
  min-width: 0;
}

.global-search-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background-color: var(--bg-hover);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-speed);
}
.global-search-trigger:hover {
  border-color: var(--border-dark);
  background-color: var(--bg-card);
  color: var(--text-secondary);
}
.search-shortcut-badge {
  font-size: 0.68rem;
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--text-muted);
  font-family: monospace;
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 1;
  min-width: 0;
}

.header-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  height: 34px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-main);
  background-color: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition-speed);
  max-width: 160px;
}
.header-dropdown-btn span.label-text {
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-dropdown-btn:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-dark);
}

.header-icon-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border: 1px solid var(--border-main);
  background-color: var(--bg-card);
  transition: all var(--transition-speed);
  flex-shrink: 0;
}
.header-icon-btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
}
.notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
  border: 2px solid var(--bg-header);
}

/* User Profile Trigger */
.user-profile-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px 3px 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-main);
  background-color: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition-speed);
  max-width: 170px;
  flex-shrink: 0;
}
.user-profile-trigger:hover {
  background-color: var(--bg-hover);
}
.avatar-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.user-name-label {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-main);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}
.user-role-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

/* ----------------------------------------------------
   LEFT SIDEBAR
   ---------------------------------------------------- */
.app-sidebar {
  position: fixed;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-main);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 12px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: width var(--transition-speed) var(--transition-ease),
              transform var(--transition-speed) var(--transition-ease),
              background-color var(--transition-speed);
}

.sidebar-nav-section {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 10px 12px 4px 12px;
  user-select: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  position: relative;
  user-select: none;
}

.nav-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: currentColor;
}

.nav-link:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
}

/* Active State: Clean SaaS rounded pill with primary tint */
.nav-link.active {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.nav-link.active svg {
  color: var(--primary);
}

.nav-badge {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background-color: var(--bg-hover);
  color: var(--text-secondary);
}
.nav-link.active .nav-badge {
  background-color: var(--primary);
  color: #ffffff;
}

/* Sidebar Footer / Collapse Info */
.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-main);
  margin-top: 16px;
}
.workspace-status {
  padding: 8px 12px;
  background: var(--bg-hover);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
}

/* Collapsed Sidebar Mode */
.app-container.sidebar-collapsed .app-sidebar {
  width: var(--sidebar-collapsed-width);
}
.app-container.sidebar-collapsed .app-sidebar .sidebar-section-title,
.app-container.sidebar-collapsed .app-sidebar .nav-text,
.app-container.sidebar-collapsed .app-sidebar .nav-badge,
.app-container.sidebar-collapsed .app-sidebar .sidebar-footer {
  display: none;
}
.app-container.sidebar-collapsed .app-sidebar .nav-link {
  justify-content: center;
  padding: 10px;
}
/* ----------------------------------------------------
   MAIN CONTENT WRAPPER
   ---------------------------------------------------- */
.main-wrapper {
  margin-left: var(--sidebar-width);
  margin-top: var(--header-height);
  flex: 1;
  min-width: 0;
  max-width: calc(100vw - var(--sidebar-width));
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition-speed) var(--transition-ease);
  overflow-x: hidden;
}

.app-container.sidebar-collapsed .main-wrapper {
  margin-left: var(--sidebar-collapsed-width);
  max-width: calc(100vw - var(--sidebar-collapsed-width));
}

.main-content {
  flex: 1;
  padding: 24px 32px 48px 32px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  min-width: 0;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .main-content {
    padding: 20px 20px 40px 20px;
  }
}

@media (max-width: 640px) {
  .main-content {
    padding: 16px 12px 32px 12px;
  }
}

/* Breadcrumbs & Page Headers */
.page-header {
  margin-bottom: 24px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.breadcrumb a {
  color: var(--text-secondary);
}
.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb-separator {
  color: var(--text-muted);
}
.breadcrumb-current {
  color: var(--text-main);
  font-weight: 500;
}

.page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
}
.page-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 2px;
}
.page-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Sidebar Backdrop on Mobile */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-overlay);
  z-index: 25;
  display: none;
  opacity: 0;
  transition: opacity var(--transition-speed);
}

/* --- END: css/layout.css --- */

/* --- START: css/components.css --- */
/* ==========================================================================
   DIALLO HRMS — UI COMPONENTS
   Cards, Module Grid, Buttons, Dropdowns, Tabs, Empty States
   ========================================================================== */

/* ----------------------------------------------------
   BUTTONS
   ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all 0.15s ease;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}
.btn-sm svg {
  width: 14px;
  height: 14px;
}

.btn-lg {
  padding: 10px 20px;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
}

/* Primary Button: Blue background + white text */
.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}
.btn-primary:active {
  transform: translateY(1px);
}

/* Secondary Button: White/light surface + border */
.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-main);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-dark);
}

/* Danger Button */
.btn-danger {
  background-color: var(--danger);
  color: #ffffff;
  border: 1px solid var(--danger);
}
.btn-danger:hover {
  background-color: #b91c1c;
}

/* Ghost Button */
.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}
.btn-ghost:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
}

/* Soft Primary */
.btn-soft {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}
.btn-soft:hover {
  background-color: rgba(37, 99, 235, 0.15);
}

/* ----------------------------------------------------
   STANDARD CARDS
   border-radius: 10px-14px, subtle border & shadow
   ---------------------------------------------------- */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-speed);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.card-body {
  padding: 20px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-main);
  background-color: var(--bg-table-header);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ----------------------------------------------------
   MODULE LANDING PAGE CARDS (Enterprise Navigation Grid)
   ---------------------------------------------------- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.module-nav-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  text-decoration: none;
  overflow: hidden;
}

.module-nav-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  background-color: var(--bg-card-hover);
}

.module-nav-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.module-card-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  color: var(--primary);
  transition: all 0.2s ease;
}
.module-nav-card:hover .module-card-icon-box {
  background-color: var(--primary);
  color: #ffffff;
}

.module-card-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background-color: var(--bg-hover);
  color: var(--text-secondary);
}

.module-card-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.module-card-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 16px;
}

.module-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
}

.module-card-footer .arrow-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.module-nav-card:hover .module-card-footer .arrow-icon {
  transform: translateX(4px);
}

/* ----------------------------------------------------
   DROPDOWNS
   ---------------------------------------------------- */
.dropdown-menu-wrapper {
  position: relative;
  display: inline-block;
}

.dropdown-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  max-width: calc(100vw - 20px);
  background-color: var(--bg-dropdown);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 50;
  display: none;
  animation: fadeIn 0.15s ease;
}

.dropdown-popover.active {
  display: block;
}

.dropdown-header {
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-primary);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.12s ease;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
}

.dropdown-item:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
}
.dropdown-item.active {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}
.dropdown-divider {
  height: 1px;
  background-color: var(--border-main);
  margin: 4px 0;
}

/* Notification Drawer / Panel */
.notification-popover {
  width: 360px;
}
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.15s;
}
.notification-item:hover {
  background-color: var(--bg-hover);
}
.notification-item.unread {
  background-color: var(--primary-soft);
}
.notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notif-content {
  flex: 1;
  min-width: 0;
}
.notif-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}
.notif-time {
  font-size: 0.725rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ----------------------------------------------------
   TABS & SUBNAVS
   ---------------------------------------------------- */
.tab-list,
.tabs-nav,
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border-main);
  margin-bottom: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: var(--border-focus, #cbd5e1) transparent;
  width: 100%;
  padding-bottom: 2px;
}
.tab-list::-webkit-scrollbar,
.tabs-nav::-webkit-scrollbar,
.nav-tabs::-webkit-scrollbar {
  height: 5px;
  display: block;
}
.tab-list::-webkit-scrollbar-track,
.tabs-nav::-webkit-scrollbar-track,
.nav-tabs::-webkit-scrollbar-track {
  background: transparent;
}
.tab-list::-webkit-scrollbar-thumb,
.tabs-nav::-webkit-scrollbar-thumb,
.nav-tabs::-webkit-scrollbar-thumb {
  background: var(--border-focus, #cbd5e1);
  border-radius: 4px;
}
.tab-list::-webkit-scrollbar-thumb:hover,
.tabs-nav::-webkit-scrollbar-thumb:hover,
.nav-tabs::-webkit-scrollbar-thumb:hover {
  background: var(--primary, #0284c7);
}

.tab-btn {
  flex-shrink: 0 !important;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  user-select: none;
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.tabs-scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}
.tab-scroll-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-main);
  background: var(--bg-surface);
  color: var(--text-main);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: all 0.15s ease;
}
.tab-scroll-arrow:hover {
  background: var(--primary-light, #e0f2fe);
  color: var(--primary, #0284c7);
  border-color: var(--primary, #0284c7);
}

/* ----------------------------------------------------
   EMPTY STATES (Modern Circular Icon Card Pattern)
   ---------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 56px 20px;
  background-color: var(--bg-card);
  border: 1px dashed var(--border-main);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card .empty-state,
.card-body .empty-state,
.table-card .empty-state {
  border: none;
  background-color: transparent;
  padding: 56px 20px;
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary-light, #eff6ff);
  color: var(--primary, #2563eb);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.empty-state-icon svg {
  width: 24px;
  height: 24px;
}

.empty-state-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.empty-state-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 460px;
  margin: 0 auto 20px auto;
  line-height: 1.5;
}

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

/* ----------------------------------------------------
   LOADING SKELETONS
   ---------------------------------------------------- */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-hover) 25%,
    var(--border-light) 50%,
    var(--bg-hover) 75%
  );
  background-size: 200% 100%;
  animation: skeletonLoading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeletonLoading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ----------------------------------------------------
   CALENDAR CONTROLS & POLICY GRIDS
   ---------------------------------------------------- */
.calendar-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg, 10px);
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.calendar-toolbar-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-focus, #cbd5e1) transparent;
  flex: 1 1 auto;
  min-width: 0;
  padding-bottom: 2px;
}
.calendar-toolbar-pills::-webkit-scrollbar {
  height: 4px;
}
.calendar-toolbar-pills::-webkit-scrollbar-thumb {
  background: var(--border-focus, #cbd5e1);
  border-radius: 4px;
}
.calendar-toolbar-pills .holiday-filter-btn,
.calendar-toolbar-pills .btn {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  min-width: max-content !important;
  width: auto !important;
  max-width: none !important;
  overflow: visible !important;
  font-weight: 600;
  padding: 6px 14px;
}

/* Notification Module Filter Pills (Feed Header) */
.notification-module-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  scrollbar-width: thin;
  scrollbar-color: var(--border-focus, #cbd5e1) transparent;
  width: 100%;
}
.notification-module-pills::-webkit-scrollbar {
  height: 4px;
}
.notification-module-pills::-webkit-scrollbar-thumb {
  background: var(--border-focus, #cbd5e1);
  border-radius: 4px;
}
.notification-module-pills .btn,
.notification-filter-btn {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  min-width: max-content !important;
  font-weight: 500;
  padding: 6px 14px;
}

.calendar-toolbar-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 4px;
  flex-shrink: 0;
}

.calendar-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
  min-width: 260px;
}

.calendar-filter-select {
  max-width: 170px;
  font-size: 0.82rem;
  height: 36px;
  flex-shrink: 0;
}

.calendar-search-wrapper {
  position: relative;
  min-width: 180px;
  flex: 1;
  max-width: 260px;
}

.calendar-search-wrapper input {
  font-size: 0.82rem;
  height: 36px;
  padding-left: 10px;
  width: 100%;
}

@media (max-width: 992px) {
  .calendar-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
  }
  .calendar-toolbar-pills {
    width: 100%;
    padding-bottom: 4px;
  }
  .calendar-toolbar-controls {
    width: 100%;
    justify-content: stretch;
    min-width: 0;
  }
  .calendar-filter-select {
    flex: 0 0 140px;
    max-width: none;
  }
  .calendar-search-wrapper {
    max-width: none;
    flex: 1;
  }
}

@media (max-width: 480px) {
  .calendar-toolbar-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .calendar-filter-select {
    width: 100%;
    flex: none;
  }
  .calendar-search-wrapper {
    width: 100%;
    flex: none;
  }
}

/* ----------------------------------------------------
   POLICY CARDS & UNIFORM TYPOGRAPHY
   ---------------------------------------------------- */
.policy-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.policy-cards-grid > .card {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.policy-cards-grid > .card.card-full-width {
  grid-column: 1 / -1;
}

.policy-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-family);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-primary);
  box-sizing: border-box;
  min-width: 0;
}

.policy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border-main);
  gap: 12px;
  box-sizing: border-box;
}

.policy-row-label {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.policy-row-val {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.875rem;
  text-align: right;
  word-break: break-word;
}

.policy-alert-box {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  line-height: 1.45;
  box-sizing: border-box;
}

.policy-alert-warning {
  background: rgba(217, 119, 6, 0.08);
  border-left: 3px solid #d97706;
  color: var(--text-main);
}

.policy-alert-danger {
  background: rgba(220, 38, 38, 0.08);
  border-left: 3px solid var(--danger);
  color: var(--text-main);
}

.policy-alert-info {
  background: rgba(37, 99, 235, 0.08);
  border-left: 3px solid var(--primary);
  color: var(--text-main);
}

.policy-subcard {
  background: var(--bg-hover);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  line-height: 1.45;
  box-sizing: border-box;
}

.policy-subcard-title {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.875rem;
  margin-bottom: 4px;
}

.policy-subcard-desc {
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.45;
}

@media (max-width: 992px) {
  .policy-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .policy-cards-grid > .card.card-full-width {
    grid-column: 1 !important;
  }
}

@media (max-width: 640px) {
  .policy-card-body {
    padding: 14px 16px;
  }
  .policy-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .policy-row-val {
    text-align: left;
  }
}

/* Recruitment Lifecycle Grid */
.recruitment-lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 600px) {
  .recruitment-lifecycle-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ----------------------------------------------------
   COMPANY OVERVIEW CARD & QUICK METRICS RIBBON
   ---------------------------------------------------- */
.company-overview-card {
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(15, 23, 42, 0.02));
  border: 1px solid var(--border-main);
  border-left: 4px solid var(--primary) !important;
  border-radius: var(--radius-lg, 12px);
  width: 100%;
  box-sizing: border-box;
}
.company-overview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}
.company-overview-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.company-overview-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 6px 0;
  line-height: 1.25;
}
.company-overview-location {
  font-size: 0.92rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.company-helpline-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
.company-helpline-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.company-helpline-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.company-helpline-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-family-mono);
  line-height: 1.2;
}
.company-helpline-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.company-metrics-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-main);
  width: 100%;
  box-sizing: border-box;
}
.company-metric-col {
  min-width: 0;
}
.company-metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.company-metric-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  word-break: break-word;
}
.company-metric-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .company-overview-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .company-helpline-box {
    width: 100%;
    box-sizing: border-box;
  }
  .company-metrics-ribbon {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 14px;
  }
}


/* --- END: css/components.css --- */

/* --- START: css/tables.css --- */
/* ==========================================================================
   DIALLO HRMS — DATA TABLES
   Clean, modern enterprise tables with filters, sort, pagination, and actions
   ========================================================================== */

.table-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
}

/* Table Toolbar / Filters Bar */
.table-toolbar {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-main);
  background-color: var(--bg-card);
}

.table-search-box {
  position: relative;
  min-width: 260px;
  flex: 1;
  max-width: 380px;
}

.table-search-box input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition-speed);
}

.table-search-box input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.table-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  width: 16px;
  height: 16px;
}

.table-filters-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.table-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Table Container & Base Table */
.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.data-table th {
  background-color: var(--bg-table-header);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-main);
  white-space: nowrap;
  user-select: none;
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: 0 1px 0 var(--border-main);
}

.data-table th.sortable {
  cursor: pointer;
}
.data-table th.sortable:hover {
  color: var(--text-main);
  background-color: var(--bg-hover);
}
.sort-icon {
  margin-left: 4px;
  width: 12px;
  height: 12px;
  color: var(--text-muted);
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  vertical-align: middle;
  transition: background-color 0.12s ease;
}

.data-table th:last-child:not(.text-left):not(.content-cell),
.data-table td:last-child:not(.text-left):not(.content-cell) {
  padding-right: 24px;
  white-space: nowrap;
  text-align: right;
}

.data-table th.text-left,
.data-table td.text-left,
.data-table th.content-cell,
.data-table td.content-cell,
#compliance-guidelines-table th:last-child,
#compliance-guidelines-table td:last-child,
.compliance-guidelines-table th:last-child,
.compliance-guidelines-table td:last-child {
  text-align: left !important;
  white-space: normal !important;
  word-break: break-word !important;
}

.data-table tbody tr:hover {
  background-color: var(--bg-table-row-hover);
}

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

/* User / Employee Cell */
.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-cell-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.user-cell-info {
  display: flex;
  flex-direction: column;
}

.user-cell-name {
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}
.user-cell-name:hover {
  color: var(--primary);
}

.user-cell-code {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Action Icons inside Table */
.table-action-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.12s ease;
}
.table-action-btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
}
.table-action-btn.delete:hover {
  background-color: var(--danger-light);
  color: var(--danger);
}

/* Table Pagination Bar */
.table-pagination {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-main);
  background-color: var(--bg-card);
  flex-wrap: wrap;
  gap: 12px;
}

.pagination-info {
  font-size: 0.825rem;
  color: var(--text-secondary);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.page-num-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.page-num-btn:hover:not(:disabled) {
  background-color: var(--bg-hover);
  color: var(--text-main);
}

.page-num-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  font-weight: 600;
}

.page-num-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* --- END: css/tables.css --- */

/* --- START: css/forms.css --- */
/* ==========================================================================
   DIALLO HRMS — FORM STYLES
   Inputs, selects, switches, validation, and multi-column form grids
   ========================================================================== */

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-label.required::after {
  content: '*';
  color: var(--danger);
  font-weight: 700;
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-control:disabled, .form-control[readonly] {
  background-color: var(--bg-hover);
  color: var(--text-muted);
  cursor: not-allowed;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.form-helper {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-error-msg {
  font-size: 0.75rem;
  color: var(--danger);
  display: none;
}
.form-group.has-error .form-control {
  border-color: var(--danger);
}
.form-group.has-error .form-error-msg {
  display: block;
}

/* Form Grids */
.form-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.col-12 { grid-column: span 12; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }
.col-8 { grid-column: span 8; }

/* Switch / Toggle Component */
.switch-container {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: relative;
  width: 38px;
  height: 22px;
  background-color: var(--border-dark);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.switch-slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-xs);
}

.switch-input:checked + .switch-slider {
  background-color: var(--primary);
}

.switch-input:checked + .switch-slider::before {
  transform: translateX(16px);
}

.switch-label {
  font-size: 0.875rem;
  color: var(--text-main);
  font-weight: 500;
}

/* Filter select inputs in table header */
.filter-select {
  padding: 6px 28px 6px 10px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
}
.filter-select:hover {
  border-color: var(--border-dark);
}

/* --- END: css/forms.css --- */

/* --- START: css/modals.css --- */
/* ==========================================================================
   DIALLO HRMS — MODALS, DRAWERS & TOAST NOTIFICATIONS
   ========================================================================== */

/* Modal Backdrop */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-overlay);
  backdrop-filter: blur(2px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Dialog */
.modal-dialog {
  background-color: var(--bg-modal);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 580px;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-sizing: border-box;
}

.modal-dialog.modal-lg {
  max-width: 800px;
}
.modal-dialog.modal-sm {
  max-width: 420px;
}

.modal-backdrop.active .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
}
.modal-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: transparent;
  transition: all 0.15s ease;
}
.modal-close-btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-main);
  background-color: var(--bg-table-header);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Slide-over Drawer */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-overlay);
  backdrop-filter: blur(2px);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.drawer-panel {
  background-color: var(--bg-modal);
  width: 100%;
  max-width: 520px;
  height: 100%;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 1px solid var(--border-main);
}

.drawer-backdrop.active .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.drawer-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-main);
  background-color: var(--bg-table-header);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* ----------------------------------------------------
   TOAST NOTIFICATIONS
   ---------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 110;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  border: 1px solid var(--border-main);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transition: all 0.2s ease;
}

.toast.toast-hiding {
  opacity: 0;
  transform: translateX(100%);
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast-message {
  font-size: 0.875rem;
  color: var(--text-main);
  flex: 1;
}

.toast-close {
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}
.toast-close:hover {
  color: var(--text-main);
}

.toast.toast-success { border-left: 4px solid var(--success); }
.toast.toast-success .toast-icon { color: var(--success); }

.toast.toast-warning { border-left: 4px solid var(--warning); }
.toast.toast-warning .toast-icon { color: var(--warning); }

.toast.toast-danger { border-left: 4px solid var(--danger); }
.toast.toast-danger .toast-icon { color: var(--danger); }

.toast.toast-info { border-left: 4px solid var(--info); }
.toast.toast-info .toast-icon { color: var(--info); }

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- END: css/modals.css --- */

/* --- START: css/dashboard.css --- */
/* ==========================================================================
   DIALLO HRMS — DASHBOARD STYLES
   KPI Cards, Charts, Action Center, Widgets, Attendance Breakdown
   ========================================================================== */

/* Welcome Banner */
.welcome-banner {
  background-color: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-xs);
  position: relative;
}

.welcome-text h1 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
  letter-spacing: -0.02em;
}
.welcome-text p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
}
.welcome-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background-color: var(--bg-hover);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ----------------------------------------------------
   KPI METRICS GRID
   ---------------------------------------------------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-xs);
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}

.kpi-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-dark);
}

.kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kpi-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-light);
  color: var(--primary);
}

.kpi-trend {
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 2px;
}
.kpi-trend.positive { color: var(--success); }
.kpi-trend.neutral { color: var(--text-muted); }
.kpi-trend.warning { color: var(--warning); }

.kpi-value {
  font-size: 1.55rem; /* Reduced for textual KPI values */
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 4px;
}

.kpi-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.kpi-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ----------------------------------------------------
   DASHBOARD MAIN GRID (Widgets & Layout)
   ---------------------------------------------------- */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.col-span-8 { grid-column: span 8; }
.col-span-4 { grid-column: span 4; }
.col-span-6 { grid-column: span 6; }
.col-span-12 { grid-column: span 12; }

/* Quick Access Shortcuts */
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 14px 10px;
  background-color: var(--bg-hover);
  border: 1px solid var(--border-main);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-action-btn:hover {
  background-color: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary);
  transform: translateY(-2px);
}

.quick-action-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: var(--shadow-xs);
}

/* Action Center Tasks */
.action-center-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background-color: var(--bg-hover);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-main);
  gap: 12px;
  transition: all 0.15s ease;
}
.action-item:hover {
  border-color: var(--border-dark);
  background-color: var(--bg-card-hover);
}

.action-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.action-item-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.action-item-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}
.action-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.action-item-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Attendance Breakdown Gauge / Bars */
.attendance-stat-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-bar-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 500;
}
.stat-bar-track {
  width: 100%;
  height: 8px;
  background-color: var(--bg-hover);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.stat-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* Payroll & Compliance Widgets */
.progress-radial-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 0;
}

.compliance-metric-box {
  text-align: center;
  padding: 12px;
  background: var(--bg-hover);
  border-radius: var(--radius-md);
  flex: 1;
  margin: 0 4px;
}
.compliance-metric-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}
.compliance-metric-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Announcements & Holidays */
.announcement-card {
  padding: 12px 14px;
  border-left: 3px solid var(--primary);
  background-color: var(--bg-hover);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 10px;
}
.announcement-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}
.announcement-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}
.announcement-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.holiday-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.holiday-item:last-child {
  border-bottom: none;
}
.holiday-date-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
}
.holiday-day { font-size: 1.1rem; }
.holiday-month { font-size: 0.65rem; text-transform: uppercase; }

/* SVG Chart styling */
.chart-container {
  width: 100%;
  height: 240px;
  position: relative;
}
.chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart-axis-line {
  stroke: var(--border-main);
  stroke-width: 1;
}
.chart-grid-line {
  stroke: var(--border-light);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}
.chart-axis-text {
  fill: var(--text-muted);
  font-size: 11px;
  font-family: inherit;
}
.chart-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-area {
  fill: url(#blueGradient);
  opacity: 0.3;
}
.chart-dot {
  fill: var(--bg-card);
  stroke: var(--primary);
  stroke-width: 2.5;
  r: 4.5;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chart-dot:hover {
  r: 7;
  fill: var(--primary);
}

/* --- END: css/dashboard.css --- */

/* --- START: css/responsive.css --- */
/* ==========================================================================
   DIALLO HRMS — RESPONSIVE DESIGN ARCHITECTURE & BREAKPOINTS
   Mobile-First & Adaptive Enterprise SaaS Grid System
   Breakpoints:
     - Extra Small Mobile: < 480px
     - Small Mobile:       480px - 639px
     - Mobile Devices:     < 768px
     - Tablet Devices:     768px - 1024px
     - Small Laptops:      1025px - 1199px
     - Desktop Standard:   1200px - 1599px
     - Ultra-wide Screens: >= 1600px
   ========================================================================== */

/* --------------------------------------------------------------------------
   GLOBAL BOX MODEL SAFETY NET
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   1. TABLET SCREENS (768px to 1024px)
   Optimize workspace for iPads and touch tablets without cramped sidebars
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Default sidebar to collapsed compact icon mode on tablet */
  .app-container:not(.sidebar-expanded) .app-sidebar {
    width: var(--sidebar-collapsed-width, 72px);
  }
  .app-container:not(.sidebar-expanded) .app-sidebar .sidebar-section-title,
  .app-container:not(.sidebar-expanded) .app-sidebar .nav-text,
  .app-container:not(.sidebar-expanded) .app-sidebar .nav-badge,
  .app-container:not(.sidebar-expanded) .app-sidebar .sidebar-footer {
    display: none;
  }
  .app-container:not(.sidebar-expanded) .app-sidebar .nav-link {
    justify-content: center;
    padding: 10px;
  }
  .app-container:not(.sidebar-expanded) .main-wrapper {
    margin-left: var(--sidebar-collapsed-width, 72px);
  }

  .main-content {
    padding: 20px 20px 36px 20px;
    max-width: 100%;
  }

  /* Header adjustments for tablet */
  .header-center {
    max-width: 220px;
    margin: 0 12px;
  }
  .header-dropdown-btn span.label-text {
    max-width: 110px;
  }
  .user-name-label {
    max-width: 80px;
  }
  .user-role-label {
    display: none;
  }

  /* Dashboard Grid: switch from 12 cols to 2 equal columns */
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .col-span-8,
  .col-span-4,
  .col-span-6,
  .col-span-12,
  .col-span-9,
  .col-span-3 {
    grid-column: span 2;
  }

  /* Form columns on tablet */
  .form-row .col-3,
  .form-row .col-4 {
    grid-column: span 6;
  }
  .form-row .col-8 {
    grid-column: span 12;
  }

  /* Grids */
  .grid-3-col,
  .grid-4-col {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* Notification popover on tablet */
  .notification-popover {
    width: 300px;
    max-width: calc(100vw - 24px);
  }
}

/* --------------------------------------------------------------------------
   2. SMALL LAPTOPS (1025px to 1199px)
   -------------------------------------------------------------------------- */
@media (min-width: 1025px) and (max-width: 1199px) {
  .dashboard-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
  }
  .col-span-8 { grid-column: span 12; }
  .col-span-4 { grid-column: span 12; }
  .col-span-6 { grid-column: span 6; }

  .main-content {
    padding: 24px 20px 40px 20px;
  }
  .header-center {
    max-width: 320px;
  }
}

/* --------------------------------------------------------------------------
   3. MOBILE DEVICES (< 768px)
   Complete off-canvas navigation, stacked cards, full touch scrolling
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* Prevent horizontal document spill */
  html, body {
    overflow-x: hidden !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }

  .app-container {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
  }

  /* Off-canvas mobile navigation drawer */
  .app-sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-xl);
    z-index: 60;
    width: 280px;
    max-width: 85vw;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .app-container.mobile-sidebar-open .app-sidebar {
    transform: translateX(0);
  }
  .app-container.mobile-sidebar-open .sidebar-backdrop {
    display: block;
    opacity: 1;
    z-index: 55;
    top: var(--header-height);
  }

  .main-wrapper {
    margin-left: 0 !important;
    max-width: 100vw;
    width: 100%;
    overflow-x: hidden;
  }

  /* Mobile App Header */
  .app-header {
    padding: 0 10px;
    gap: 8px;
    height: var(--header-height, 58px);
    z-index: 70 !important;
  }

  .header-left {
    gap: 8px;
    min-width: 0;
  }

  .brand-logo {
    gap: 6px;
    font-size: 1.05rem;
  }
  .brand-icon-box {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }

  /* Hide wide search bar from header on mobile */
  .header-center {
    display: none !important;
  }

  .header-right {
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
  }

  /* Hide text labels in header buttons on mobile */
  .header-dropdown-btn span.label-text,
  .user-profile-trigger .user-name-label,
  .user-profile-trigger .user-role-label {
    display: none !important;
  }

  .header-dropdown-btn {
    padding: 6px 8px;
    height: 32px;
  }

  .header-icon-btn {
    width: 32px;
    height: 32px;
  }

  .user-profile-trigger {
    padding: 2px 4px 2px 2px;
  }
  .avatar-img {
    width: 28px;
    height: 28px;
  }

  /* Notification popover: full-width flyout on mobile */
  .notification-popover {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    right: -8px !important;
    left: auto !important;
  }

  /* Dropdown popover: prevent overflow */
  .dropdown-popover {
    max-width: calc(100vw - 20px);
    right: 0;
    left: auto;
  }

  /* Page Headers & Action Bars */
  .page-header {
    margin-bottom: 18px;
  }

  .page-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }

  .page-title {
    font-size: 1.35rem;
    line-height: 1.25;
  }

  .page-subtitle {
    font-size: 0.8rem;
  }

  .page-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }
  .page-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .main-content {
    padding: 14px 10px 32px 10px;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  /* Welcome Banner */
  .welcome-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }
  .welcome-banner .welcome-date-badge {
    align-self: flex-start;
  }

  /* KPI Cards Grid: 2 compact columns on mobile */
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .kpi-card {
    padding: 12px 10px !important;
  }
  .kpi-value {
    font-size: 1.35rem !important;
  }
  .kpi-label {
    font-size: 0.72rem !important;
  }
  .kpi-subtitle {
    display: none;
  }

  /* Dashboard & General Grids: Single column on mobile */
  .dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
  .col-span-8,
  .col-span-4,
  .col-span-6,
  .col-span-12,
  .col-span-9,
  .col-span-3 {
    grid-column: span 1 !important;
  }

  .module-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .grid,
  .grid-responsive,
  .grid-2-col,
  .grid-3-col,
  .grid-4-col {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  /* Force override inline 2-col and 3-col styles on mobile */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"],
  [style*="grid-template-columns: repeat(auto-fit, minmax(320px, 1fr))"],
  [style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"],
  [style*="grid-template-columns: repeat(auto-fill, minmax(320px, 1fr))"],
  [style*="grid-template-columns: repeat(auto-fill, minmax(310px, 1fr))"] {
    grid-template-columns: 1fr !important;
  }

  .flex-responsive {
    flex-direction: column !important;
    gap: 12px !important;
  }

  /* Tab Navigation: silky horizontal touch scroll */
  .tab-list,
  .tabs-nav,
  .nav-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    padding-bottom: 6px;
    margin-bottom: 16px;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--border-focus, #cbd5e1) transparent;
  }
  .tab-list::-webkit-scrollbar,
  .tabs-nav::-webkit-scrollbar,
  .nav-tabs::-webkit-scrollbar {
    height: 3px;
    display: block;
  }
  .tab-list::-webkit-scrollbar-thumb,
  .tabs-nav::-webkit-scrollbar-thumb,
  .nav-tabs::-webkit-scrollbar-thumb {
    background: var(--border-focus, #cbd5e1);
    border-radius: 4px;
  }
  .tab-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    min-width: max-content !important;
    padding: 8px 14px;
    font-size: 0.825rem;
  }

  /* Mobile Horizontal Pill Scroll Containers (Holidays, Notifications, Filters) */
  .calendar-toolbar-pills,
  .notification-module-pills {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    width: 100% !important;
    scrollbar-width: thin;
    scrollbar-color: var(--border-focus, #cbd5e1) transparent;
    padding-bottom: 6px;
  }
  .calendar-toolbar-pills .holiday-filter-btn,
  .calendar-toolbar-pills .btn,
  .notification-module-pills .btn,
  .notification-filter-btn {
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    min-width: max-content !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
  }

  /* Table Card & Responsive Table Scrolling */
  .table-card,
  .table-responsive,
  .card:has(.data-table) {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    display: block;
    box-sizing: border-box;
  }
  .data-table {
    min-width: 600px !important;
  }
  .data-table th,
  .data-table td {
    padding: 10px 10px;
    font-size: 0.78rem;
  }

  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
  }
  .table-search-box {
    max-width: 100% !important;
    min-width: 100% !important;
    width: 100% !important;
  }
  .table-filters-group {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .table-filters-group::-webkit-scrollbar {
    display: none;
  }
  .table-actions-group {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Form Layouts */
  .form-row {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .col-12, .col-6, .col-4, .col-3, .col-8, .col-9, .col-10 {
    grid-column: span 1 !important;
  }

  /* Modal Dialogs */
  .modal-backdrop {
    padding: 8px;
    align-items: flex-end;
  }
  .modal-dialog {
    margin: 0 auto;
    width: calc(100% - 12px) !important;
    max-width: calc(100% - 12px) !important;
    max-height: 92vh;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow-y: auto;
  }
  .modal-header {
    padding: 14px 16px;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 2;
  }
  .modal-body {
    padding: 16px 14px;
    overflow-y: auto;
  }
  .modal-footer {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: stretch;
    display: flex;
    flex-direction: row;
    position: sticky;
    bottom: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-main);
    z-index: 2;
  }
  .modal-footer .btn {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
  }

  /* Slide-Over Drawers */
  .drawer-panel {
    width: 100% !important;
    max-width: 100% !important;
    border-left: none;
  }
  .drawer-header {
    padding: 16px 18px;
  }
  .drawer-body {
    padding: 16px 14px;
  }

  /* Card padding adjustments */
  .card {
    border-radius: var(--radius-md);
  }
  .card-header {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .card-body {
    padding: 12px 14px;
  }

  /* Quick Access Shortcuts */
  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  /* Action items on mobile: stack */
  .action-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .action-item-buttons {
    width: 100%;
    justify-content: flex-end;
  }

  /* Welcome banner responsive */
  .welcome-text h1 {
    font-size: 1.2rem;
  }
}

/* --------------------------------------------------------------------------
   4. SMALL MOBILE SCREENS (< 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 639px) {
  #header-branch-wrapper {
    display: none !important;
  }

  .quick-access-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Compliance table on small mobile */
  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .card-header .btn,
  .card-header button {
    align-self: flex-start;
  }
}

/* --------------------------------------------------------------------------
   5. EXTRA SMALL MOBILE SCREENS (< 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 479px) {
  #header-company-wrapper {
    display: none !important;
  }

  .app-header {
    padding: 0 6px;
    gap: 4px;
  }

  .brand-logo .brand-name span.hrms-tag {
    display: none !important;
  }

  .header-right {
    gap: 4px;
  }

  .main-content {
    padding: 12px 6px 28px 6px;
  }

  .page-title {
    font-size: 1.2rem;
  }

  .kpi-value {
    font-size: 1.25rem !important;
  }

  .kpi-icon-box {
    width: 30px;
    height: 30px;
  }

  .modal-dialog {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .btn {
    padding: 8px 10px;
    font-size: 0.825rem;
  }

  /* Stacked page actions */
  .page-actions .btn {
    flex: 0 0 100%;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   6. ULTRA-WIDE & LARGE MONITORS (>= 1600px)
   -------------------------------------------------------------------------- */
@media (min-width: 1600px) {
  .main-content {
    max-width: 1680px;
    padding: 28px 40px 60px 40px;
  }
  .dashboard-grid {
    gap: 24px;
  }
}

/* --------------------------------------------------------------------------
   7. TYPOGRAPHY SYSTEM INHERITANCE ACROSS ALL VIEWPORTS & COMPLIANCE TABLE
   -------------------------------------------------------------------------- */
body, input, button, select, textarea, table, th, td {
  font-family: var(--font-family, 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#compliance-guidelines-table {
  width: 100%;
  border-collapse: collapse;
}

#compliance-guidelines-table th,
#compliance-guidelines-table td {
  font-family: inherit;
}

@media (max-width: 768px) {
  #compliance-guidelines-table {
    min-width: 520px !important;
  }
  #compliance-guidelines-table th,
  #compliance-guidelines-table td {
    padding: 10px 8px !important;
    font-size: 0.82rem !important;
  }
}

@media (max-width: 480px) {
  #compliance-guidelines-table {
    min-width: 450px !important;
  }
  #compliance-guidelines-table th,
  #compliance-guidelines-table td {
    padding: 8px 6px !important;
    font-size: 0.775rem !important;
  }
}

/* ==========================================================================
   8. TIMECARD STATION, ACTION BUTTONS & DASHBOARD RESPONSIVE ARCHITECTURE
   Laptop, Tablet, and Mobile Optimization
   ========================================================================== */

/* Daily Shift & Timecard Station Base (Desktop / Laptop >= 1025px) */
.timecard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border-main);
  padding: 16px 20px 14px 20px;
}
.timecard-header-main {
  min-width: 0;
  flex: 1 1 auto;
}
.timecard-header-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}
.timecard-header-status {
  flex-shrink: 0;
}

.timecard-station-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(230px, 1fr) minmax(270px, 1.15fr);
  gap: 16px;
  align-items: stretch;
}

.timecard-timer-card,
.timecard-actions-panel {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-main, #e2e8f0);
  border-radius: var(--radius-lg, 12px);
  padding: 14px 18px;
  min-height: 104px;
  box-sizing: border-box;
}

.timecard-timer-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  transition: all 0.2s ease;
}

.timecard-actions-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
}

.timecard-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

.timecard-action-grid .btn {
  height: 42px;
  min-height: 42px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.timecard-action-grid .btn svg {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
}

/* ESS Terminal Layout (ESS View) */
.ess-terminal-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.ess-terminal-timer-info {
  flex: 1 1 320px;
  min-width: 0;
}

.ess-terminal-actions {
  flex: 0 0 320px;
  max-width: 100%;
}

/* Quick Self-Service Actions Launchpad */
.emp-quick-launchpad {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.emp-quick-launchpad .btn {
  padding: 14px 8px;
  height: auto;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  text-align: center;
  border-radius: var(--radius-md);
  min-height: 84px;
}

/* Leave Balances Grid */
.emp-leave-balances-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Week Attendance Rhythm — default 6-col for Mon-Sat work week */
.week-rhythm-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  text-align: center;
}

/* 3 Metrics Row */
.metrics-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
}

/* Header Auto-Fit for Laptops & Desktops */
@media (max-width: 1380px) {
  #header-branch-wrapper {
    display: none !important;
  }
}
@media (max-width: 1150px) {
  #header-company-wrapper {
    display: none !important;
  }
  .header-center {
    max-width: 180px;
  }
}

/* --------------------------------------------------------------------------
   SMALL LAPTOPS — Timecard & Launchpad (1025px - 1199px)
   -------------------------------------------------------------------------- */
@media (min-width: 1025px) and (max-width: 1199px) {
  .timecard-station-grid {
    grid-template-columns: minmax(240px, 1fr) minmax(210px, 1fr) minmax(240px, 1fr);
    gap: 12px;
  }
  .timecard-actions-panel {
    grid-column: span 1;
  }
  .emp-quick-launchpad {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .ess-terminal-actions {
    flex: 1 1 100%;
  }
}

/* --------------------------------------------------------------------------
   TABLETS (768px - 1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1024px) {
  .timecard-station-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .timecard-actions-panel {
    grid-column: span 2;
  }
  .timecard-action-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .emp-quick-launchpad {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .ess-terminal-actions {
    flex: 1 1 100%;
  }
  .ess-terminal-actions .timecard-action-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Week rhythm on tablet: keep all 6 days side by side */
  .week-rhythm-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
  }
  .week-rhythm-grid > div {
    padding: 10px 4px;
  }
}

/* --------------------------------------------------------------------------
   MOBILE DEVICES (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .timecard-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 14px 12px 14px;
    gap: 8px;
  }
  .timecard-header-subtitle {
    font-size: 0.75rem;
  }

  /* Timecard Station on Mobile */
  .timecard-station-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .timecard-timer-card {
    padding: 12px 14px;
  }
  .timecard-actions-panel {
    width: 100%;
  }
  .timecard-action-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100%;
  }
  .timecard-action-grid .btn {
    height: 44px;
    min-height: 44px;
    font-size: 0.82rem;
    padding: 0 8px;
  }

  /* ESS Terminal Layout on Mobile */
  .ess-terminal-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .ess-terminal-timer-info {
    width: 100%;
  }
  .ess-terminal-actions {
    width: 100%;
    flex: none;
  }
  .ess-terminal-actions .timecard-action-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100%;
  }

  /* Quick Actions Launchpad on Mobile */
  .emp-quick-launchpad {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
  .emp-quick-launchpad .btn {
    padding: 10px 4px !important;
    min-height: 72px;
  }
  .emp-quick-launchpad .btn span:last-child {
    font-size: 0.72rem !important;
    line-height: 1.2;
  }

  /* Leave Balances Grid on Mobile */
  .emp-leave-balances-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* Week Rhythm on Mobile: 3+3 wrapped grid for 6-day week */
  .week-rhythm-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }
  .week-rhythm-grid > div {
    padding: 8px 4px !important;
  }
  .week-rhythm-grid .badge {
    font-size: 0.58rem !important;
    padding: 1px 3px !important;
  }

  /* Metrics Row on Mobile */
  .metrics-row-3 {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
}

/* --------------------------------------------------------------------------
   EXTRA SMALL MOBILE (< 440px)
   -------------------------------------------------------------------------- */
@media (max-width: 440px) {
  #emp-live-timer {
    font-size: 1.55rem !important;
  }
  #ess-timer-display {
    font-size: 1.65rem !important;
  }
  .emp-quick-launchpad {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .timecard-action-grid .btn {
    font-size: 0.76rem;
    gap: 4px;
    padding: 0 4px;
  }
  .timecard-action-grid .btn svg {
    width: 15px;
    height: 15px;
  }

  /* Week rhythm on extra small: 2+2+2 grid */
  .week-rhythm-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 5px !important;
  }
}

/* --- END: css/responsive.css --- */

/* --- START: css/animations.css --- */
/* ==========================================================================
   DIALLO HRMS — ANIMATIONS & TRANSITIONS
   Professional, subtle enterprise animations
   ========================================================================== */

/* ----------------------------------------------------
   KEYFRAME DEFINITIONS
   ---------------------------------------------------- */

/* Fade + slide up for page content */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade in only */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scale in from slightly smaller */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Slide in from left (sidebar) */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide in from right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Slide down for dropdowns */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle pulse for badges/notifications */
@keyframes subtlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Shimmer for loading states */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Gentle float for empty states */
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Spin for loaders */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Count-up number reveal */
@keyframes countReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Toast slide in from top-right */
@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Toast slide out */
@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
  }
}

/* Progress bar fill */
@keyframes progressFill {
  from { width: 0%; }
}

/* Ripple effect */
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Staggered entrance for grid children */
@keyframes staggerIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Checkmark draw */
@keyframes drawCheck {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}

/* Highlight flash for newly added rows */
@keyframes highlightFlash {
  0% { background-color: var(--primary-light); }
  100% { background-color: transparent; }
}

/* ----------------------------------------------------
   PAGE / VIEW TRANSITIONS
   ---------------------------------------------------- */

/* Main content area entrance animation */
.main-content {
  animation: fadeInUp 0.35s var(--transition-ease) both;
}

/* Welcome banner entrance */
.welcome-banner {
  animation: fadeInUp 0.4s var(--transition-ease) both;
  animation-delay: 0.05s;
}

/* ----------------------------------------------------
   KPI CARD STAGGERED ENTRANCE
   ---------------------------------------------------- */
.kpi-grid {
  /* Clean immediate grid rendering */
}

.kpi-card {
  opacity: 1;
}

/* KPI numbers always visible immediately */
.kpi-value {
  opacity: 1;
}

/* Enhanced KPI card hover */
.kpi-card {
  transition: transform 0.25s var(--transition-ease),
              box-shadow 0.25s var(--transition-ease),
              border-color 0.25s var(--transition-ease);
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.kpi-card:active {
  transform: translateY(-1px);
  transition-duration: 0.1s;
}

/* ----------------------------------------------------
   SIDEBAR ANIMATIONS
   ---------------------------------------------------- */

/* Sidebar nav link transitions */
.nav-link {
  transition: background-color 0.2s var(--transition-ease), color 0.2s var(--transition-ease);
  position: relative;
}

.nav-link:hover {
  background-color: var(--bg-hover);
}

.nav-link.active {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* Sidebar section title entrance */
.sidebar-section-title {
  animation: slideInLeft 0.3s var(--transition-ease) both;
}

/* Stagger sidebar links on load */
.sidebar-nav-section .nav-link {
  animation: slideInLeft 0.3s var(--transition-ease) both;
}

.sidebar-nav-section .nav-link:nth-child(2)  { animation-delay: 0.03s; }
.sidebar-nav-section .nav-link:nth-child(3)  { animation-delay: 0.05s; }
.sidebar-nav-section .nav-link:nth-child(4)  { animation-delay: 0.07s; }
.sidebar-nav-section .nav-link:nth-child(5)  { animation-delay: 0.09s; }
.sidebar-nav-section .nav-link:nth-child(6)  { animation-delay: 0.11s; }
.sidebar-nav-section .nav-link:nth-child(7)  { animation-delay: 0.13s; }
.sidebar-nav-section .nav-link:nth-child(8)  { animation-delay: 0.15s; }
.sidebar-nav-section .nav-link:nth-child(9)  { animation-delay: 0.17s; }
.sidebar-nav-section .nav-link:nth-child(10) { animation-delay: 0.19s; }
.sidebar-nav-section .nav-link:nth-child(11) { animation-delay: 0.21s; }
.sidebar-nav-section .nav-link:nth-child(12) { animation-delay: 0.23s; }
.sidebar-nav-section .nav-link:nth-child(13) { animation-delay: 0.25s; }
.sidebar-nav-section .nav-link:nth-child(14) { animation-delay: 0.27s; }
.sidebar-nav-section .nav-link:nth-child(15) { animation-delay: 0.29s; }
.sidebar-nav-section .nav-link:nth-child(16) { animation-delay: 0.31s; }

/* Sidebar icon hover spin */
.nav-link svg {
  transition: transform 0.3s var(--transition-ease);
}

.nav-link:hover svg {
  transform: rotate(-6deg) scale(1.1);
}

/* Sidebar collapse/expand transition */
.app-sidebar {
  transition: width 0.3s var(--transition-ease),
              transform 0.3s var(--transition-ease);
}

/* ----------------------------------------------------
   CARD & MODULE GRID ANIMATIONS
   ---------------------------------------------------- */

/* Standard cards */
.card,
.module-card,
.stat-card,
.widget-card,
.chart-card {
  transition: transform 0.25s var(--transition-ease),
              box-shadow 0.25s var(--transition-ease),
              border-color 0.25s var(--transition-ease);
}

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

/* Module grid staggered entrance */
.module-grid > *,
.dashboard-grid > *,
.chart-grid > * {
  animation: staggerIn 0.4s var(--transition-ease) both;
}

.module-grid > *:nth-child(1),
.dashboard-grid > *:nth-child(1),
.chart-grid > *:nth-child(1) { animation-delay: 0.06s; }

.module-grid > *:nth-child(2),
.dashboard-grid > *:nth-child(2),
.chart-grid > *:nth-child(2) { animation-delay: 0.12s; }

.module-grid > *:nth-child(3),
.dashboard-grid > *:nth-child(3),
.chart-grid > *:nth-child(3) { animation-delay: 0.18s; }

.module-grid > *:nth-child(4),
.dashboard-grid > *:nth-child(4),
.chart-grid > *:nth-child(4) { animation-delay: 0.24s; }

.module-grid > *:nth-child(5),
.dashboard-grid > *:nth-child(5) { animation-delay: 0.30s; }

.module-grid > *:nth-child(6),
.dashboard-grid > *:nth-child(6) { animation-delay: 0.36s; }

/* Quick access shortcuts stagger */
.quick-access-grid > * {
  animation: scaleIn 0.35s var(--transition-ease) both;
}

.quick-access-grid > *:nth-child(1) { animation-delay: 0.05s; }
.quick-access-grid > *:nth-child(2) { animation-delay: 0.10s; }
.quick-access-grid > *:nth-child(3) { animation-delay: 0.15s; }
.quick-access-grid > *:nth-child(4) { animation-delay: 0.20s; }
.quick-access-grid > *:nth-child(5) { animation-delay: 0.25s; }
.quick-access-grid > *:nth-child(6) { animation-delay: 0.30s; }

/* Quick access shortcut cards */
.shortcut-card {
  transition: transform 0.2s var(--transition-ease),
              box-shadow 0.2s var(--transition-ease),
              border-color 0.2s var(--transition-ease),
              background-color 0.2s var(--transition-ease);
}

.shortcut-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.shortcut-card:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.1s;
}

/* Shortcut icon hover */
.shortcut-card svg,
.shortcut-card .shortcut-icon {
  transition: transform 0.3s var(--transition-ease),
              color 0.2s ease;
}

.shortcut-card:hover svg,
.shortcut-card:hover .shortcut-icon {
  transform: scale(1.15);
  color: var(--primary);
}

/* ----------------------------------------------------
   BUTTON ANIMATIONS
   ---------------------------------------------------- */

.btn {
  transition: all 0.2s var(--transition-ease);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: none;
  transition-duration: 0.08s;
}

/* Ripple effect on buttons */
.btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.25) 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10);
  opacity: 0;
  transition: transform 0.4s, opacity 0.6s;
}

.btn:active::after {
  transform: scale(0);
  opacity: 1;
  transition: 0s;
}

/* Primary button glow on hover */
.btn-primary:hover {
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* Danger button glow on hover */
.btn-danger:hover {
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

/* Success button glow on hover */
.btn-success:hover {
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

/* ----------------------------------------------------
   TABLE ANIMATIONS
   ---------------------------------------------------- */

/* Table rows fade in */
.data-table tbody tr {
  animation: fadeIn 0.3s ease both;
  transition: background-color 0.15s ease;
}

/* Stagger table rows slightly */
.data-table tbody tr:nth-child(1)  { animation-delay: 0.02s; }
.data-table tbody tr:nth-child(2)  { animation-delay: 0.04s; }
.data-table tbody tr:nth-child(3)  { animation-delay: 0.06s; }
.data-table tbody tr:nth-child(4)  { animation-delay: 0.08s; }
.data-table tbody tr:nth-child(5)  { animation-delay: 0.10s; }
.data-table tbody tr:nth-child(6)  { animation-delay: 0.12s; }
.data-table tbody tr:nth-child(7)  { animation-delay: 0.14s; }
.data-table tbody tr:nth-child(8)  { animation-delay: 0.16s; }
.data-table tbody tr:nth-child(9)  { animation-delay: 0.18s; }
.data-table tbody tr:nth-child(10) { animation-delay: 0.20s; }

/* Table row hover lift */
.data-table tbody tr:hover {
  box-shadow: var(--shadow-xs);
}

/* Highlight new row */
.data-table tbody tr.newly-added {
  animation: highlightFlash 1.5s ease both;
}

/* ----------------------------------------------------
   DROPDOWN & POPOVER ANIMATIONS
   ---------------------------------------------------- */

.dropdown-popover {
  transition: opacity 0.2s var(--transition-ease),
              visibility 0.2s var(--transition-ease),
              transform 0.2s var(--transition-ease);
  transform: translateY(-6px);
}

.dropdown-popover.active {
  animation: slideDown 0.2s var(--transition-ease) both;
}

/* Dropdown items hover */
.dropdown-item {
  transition: background-color 0.15s ease,
              color 0.15s ease,
              padding-left 0.2s var(--transition-ease);
}

.dropdown-item:hover {
  padding-left: 16px;
}

/* ----------------------------------------------------
   MODAL ANIMATIONS (Enhanced)
   ---------------------------------------------------- */

.modal-backdrop {
  transition: opacity 0.25s var(--transition-ease),
              visibility 0.25s var(--transition-ease);
}

.modal-dialog {
  transition: transform 0.3s var(--transition-ease),
              opacity 0.3s var(--transition-ease);
}

.modal-backdrop.active .modal-dialog {
  animation: scaleIn 0.3s var(--transition-ease) both;
}

/* ----------------------------------------------------
   TOAST NOTIFICATIONS
   ---------------------------------------------------- */

.toast {
  animation: toastSlideIn 0.4s var(--transition-ease) both;
}

.toast.toast-exit {
  animation: toastSlideOut 0.3s var(--transition-ease) both;
}

/* ----------------------------------------------------
   BADGE & STATUS ANIMATIONS
   ---------------------------------------------------- */

/* Notification badge pulse */
.badge-primary[style*="position: absolute"],
#top-nav-notification-badge {
  animation: subtlePulse 2s ease-in-out infinite;
}

/* Status dot pulse */
.status-dot.active,
.status-online {
  position: relative;
}

.status-dot.active::after,
.status-online::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid currentColor;
  animation: subtlePulse 2s ease-in-out infinite;
  opacity: 0.4;
}

/* Badge hover scale */
.badge {
  transition: transform 0.2s var(--transition-ease);
}

.badge:hover {
  transform: scale(1.05);
}

/* ----------------------------------------------------
   FORM ANIMATIONS
   ---------------------------------------------------- */

/* Input focus glow */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  transition: border-color 0.2s ease,
              box-shadow 0.2s ease,
              background-color 0.2s ease;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px var(--primary-soft);
}

/* Checkbox / toggle transitions */
input[type="checkbox"] {
  transition: background-color 0.2s ease,
              border-color 0.2s ease;
}

/* Form group label float (if using floating labels) */
.form-group label {
  transition: all 0.2s var(--transition-ease);
}

/* ----------------------------------------------------
   HEADER ANIMATIONS
   ---------------------------------------------------- */

/* Header entrance */
.app-header {
  animation: fadeIn 0.3s ease both;
}

/* Header buttons hover */
.header-icon-btn,
.header-dropdown-btn {
  transition: all 0.2s var(--transition-ease);
}

.header-icon-btn:hover,
.header-dropdown-btn:hover {
  transform: translateY(-1px);
}

.header-icon-btn:active,
.header-dropdown-btn:active {
  transform: translateY(1px);
}

/* User profile avatar hover */
.user-profile-trigger {
  transition: opacity 0.2s ease;
}

.user-profile-trigger:hover {
  opacity: 0.85;
}

.avatar-img {
  transition: transform 0.3s var(--transition-ease),
              box-shadow 0.3s var(--transition-ease);
}

.user-profile-trigger:hover .avatar-img {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px var(--primary-border);
}

/* Theme toggle button spin */
.theme-toggle-btn .theme-icon-container {
  transition: transform 0.4s var(--transition-ease);
}

.theme-toggle-btn:hover .theme-icon-container {
  transform: rotate(30deg);
}

/* Brand logo hover */
.brand-logo {
  transition: opacity 0.2s ease;
}

.brand-logo:hover {
  opacity: 0.85;
}

.brand-icon-box {
  transition: transform 0.3s var(--transition-ease),
              box-shadow 0.3s var(--transition-ease);
}

.brand-logo:hover .brand-icon-box {
  transform: scale(1.06) rotate(-3deg);
}

/* ----------------------------------------------------
   LOADING & SKELETON ANIMATIONS
   ---------------------------------------------------- */

.skeleton,
.loading-shimmer {
  background: linear-gradient(
    90deg,
    var(--bg-hover) 25%,
    var(--border-light) 50%,
    var(--bg-hover) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

/* Spinner */
.spinner {
  animation: spin 0.8s linear infinite;
}

.loading-spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--border-main);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ----------------------------------------------------
   EMPTY STATE ANIMATIONS
   ---------------------------------------------------- */

.empty-state svg,
.empty-state img,
.empty-state-icon {
  animation: gentleFloat 3s ease-in-out infinite;
}

.empty-state {
  animation: fadeInUp 0.5s var(--transition-ease) both;
}

/* ----------------------------------------------------
   TAB ANIMATIONS
   ---------------------------------------------------- */

.tab-btn,
.tab-link {
  transition: all 0.2s var(--transition-ease);
  position: relative;
}

.tab-btn::after,
.tab-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s var(--transition-ease),
              left 0.25s var(--transition-ease);
}

.tab-btn.active::after,
.tab-btn:hover::after,
.tab-link.active::after,
.tab-link:hover::after {
  width: 100%;
  left: 0;
}

/* ----------------------------------------------------
   PROGRESS BAR ANIMATIONS
   ---------------------------------------------------- */

.progress-fill,
.progress-bar-fill {
  animation: progressFill 0.8s var(--transition-ease) both;
  transition: width 0.5s var(--transition-ease);
}

/* ----------------------------------------------------
   TOOLTIP ANIMATIONS
   ---------------------------------------------------- */

[data-tooltip]:hover::after,
.tooltip {
  animation: fadeIn 0.2s ease both;
}

/* ----------------------------------------------------
   SIDEBAR FOOTER
   ---------------------------------------------------- */

.sidebar-footer {
  animation: fadeIn 0.5s ease 0.3s both;
}

.workspace-status {
  transition: background-color 0.2s ease;
}

/* ----------------------------------------------------
   MOBILE SIDEBAR DRAWER
   ---------------------------------------------------- */

.sidebar-backdrop {
  transition: opacity 0.3s var(--transition-ease),
              visibility 0.3s var(--transition-ease);
}

/* Mobile sidebar slide-in */
@media (max-width: 768px) {
  .app-sidebar {
    transition: transform 0.3s var(--transition-ease);
  }

  .mobile-sidebar-open .app-sidebar {
    animation: slideInLeft 0.3s var(--transition-ease) both;
  }
}

/* ----------------------------------------------------
   SCROLL-TRIGGERED ANIMATIONS (Utility Classes)
   ---------------------------------------------------- */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--transition-ease),
              transform 0.5s var(--transition-ease);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utility delay classes */
.delay-100 { animation-delay: 0.1s !important; }
.delay-200 { animation-delay: 0.2s !important; }
.delay-300 { animation-delay: 0.3s !important; }
.delay-400 { animation-delay: 0.4s !important; }
.delay-500 { animation-delay: 0.5s !important; }

/* ----------------------------------------------------
   PREFERS-REDUCED-MOTION
   Respect user accessibility preferences
   ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- END: css/animations.css --- */
