/* ===== HSL THEME VARIABLES (corporate blue) ===== */
:root {
  --h-primary: 210;
  --s-primary: 70%;
  --l-primary: 45%;
  --primary: hsl(var(--h-primary), var(--s-primary), var(--l-primary));
  --primary-light: hsl(var(--h-primary), var(--s-primary), 92%);
  --primary-dark: hsl(var(--h-primary), var(--s-primary), 30%);
  --secondary: hsl(0, 0%, 45%);
  --gray-50: hsl(0, 0%, 98%);
  --gray-100: hsl(0, 0%, 94%);
  --gray-200: hsl(0, 0%, 88%);
  --gray-300: hsl(0, 0%, 78%);
  --gray-400: hsl(0, 0%, 60%);
  --gray-500: hsl(0, 0%, 40%);
  --gray-600: hsl(0, 0%, 25%);
  --gray-700: hsl(0, 0%, 15%);
  --success: hsl(142, 70%, 45%);
  --danger: hsl(0, 75%, 50%);
  --warning: hsl(38, 92%, 50%);
  --info: hsl(200, 80%, 50%);
  --radius: 8px;
  --shadow: 0 4px 16px rgba(0,0,0,0.06);
  --transition: 0.2s ease;
}

/* dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --gray-50: hsl(0, 0%, 12%);
    --gray-100: hsl(0, 0%, 18%);
    --gray-200: hsl(0, 0%, 26%);
    --gray-300: hsl(0, 0%, 44%);
    --gray-400: hsl(0, 0%, 60%);
    --gray-500: hsl(0, 0%, 72%);
    --gray-600: hsl(0, 0%, 84%);
    --gray-700: hsl(0, 0%, 94%);
    --primary-light: hsl(var(--h-primary), var(--s-primary), 18%);
    --shadow: 0 4px 16px rgba(0,0,0,0.4);
  }
}

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--gray-50);
  color: var(--gray-700);
  line-height: 1.5;
  font-size: 14px;
}
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 20px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
.caption { font-size: 12px; font-weight: 500; color: var(--gray-400); }

/* ===== LAYOUT ===== */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* SHELL: topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  box-shadow: var(--shadow);
}
.topbar .brand { font-weight: 700; color: var(--primary); font-size: 18px; }
.topbar .brand i { margin-right: 6px; }
.topbar .search {
  flex: 1;
  max-width: 400px;
  position: relative;
}
.topbar .search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gray-400); }
.topbar .search input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border: 1px solid var(--gray-200);
  border-radius: 40px;
  background: var(--gray-50);
  font-size: 14px;
  transition: var(--transition);
}
.topbar .search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.topbar .actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.topbar .actions .badge {
  background: var(--danger);
  color: white;
  border-radius: 40px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 600;
  position: absolute;
  top: -6px;
  right: -8px;
}
.topbar .actions .icon-btn {
  position: relative;
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--gray-500);
  cursor: pointer;
  padding: 6px;
  border-radius: 40px;
  transition: var(--transition);
}
.topbar .actions .icon-btn:hover { background: var(--gray-100); color: var(--gray-700); }
.topbar .avatar {
  width: 36px;
  height: 36px;
  border-radius: 40px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* sidebar + content */
.wrapper {
  display: flex;
  flex: 1;
}
.sidebar {
  width: 240px;
  background: white;
  border-right: 1px solid var(--gray-200);
  padding: 16px 0;
  overflow-y: auto;
  flex-shrink: 0;
  height: calc(100vh - 64px);
  position: sticky;
  top: 64px;
}
.sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: var(--gray-500);
  text-decoration: none;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: var(--transition);
}
.sidebar .nav-item i { width: 20px; font-size: 16px; }
.sidebar .nav-item:hover, .sidebar .nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
  border-left-color: var(--primary);
}
.sidebar .nav-item.active { background: var(--primary-light); color: var(--primary-dark); }

.content {
  flex: 1;
  padding: 24px;
  overflow-x: auto;
}

/* ===== LOGIN PAGE ===== */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--gray-100);
}
.login-box {
  background: white;
  padding: 40px 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 400px;
}
.login-box h1 {
  text-align: center;
  margin-bottom: 8px;
  color: var(--primary);
}
.login-box .subtitle {
  text-align: center;
  color: var(--gray-400);
  margin-bottom: 24px;
}
.login-box .form-group {
  margin-bottom: 16px;
}

/* ===== KPI CARDS ===== */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: white;
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}
.kpi-card .label { color: var(--gray-400); font-weight: 500; font-size: 13px; }
.kpi-card .value { font-size: 28px; font-weight: 700; color: var(--gray-700); }
.kpi-card .trend { font-size: 13px; color: var(--success); }

/* ===== DATA TABLE ===== */
.table-wrap {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: auto;
  position: relative;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
thead th {
  position: sticky;
  top: 0;
  background: var(--gray-100);
  color: var(--gray-600);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  cursor: pointer;
  user-select: none;
}
thead th i { margin-left: 6px; font-size: 12px; }
tbody tr { border-bottom: 1px solid var(--gray-100); transition: var(--transition); }
tbody tr:nth-child(even) { background: var(--gray-50); }
tbody tr:hover { background: var(--primary-light); }
td { padding: 12px 16px; vertical-align: middle; }
.status-badge {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 500;
}
.status-badge.active { background: hsl(142, 70%, 90%); color: var(--success); }
.status-badge.onleave { background: hsl(38, 92%, 90%); color: var(--warning); }
.status-badge.terminated { background: hsl(0, 75%, 90%); color: var(--danger); }

/* bulk selection floating bar */
.bulk-bar {
  display: none;
  position: sticky;
  bottom: 0;
  background: white;
  padding: 12px 20px;
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.04);
  align-items: center;
  gap: 16px;
}
.bulk-bar.show { display: flex; }

/* ===== FORMS (multi-col) ===== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 24px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.form-group label { font-weight: 500; color: var(--gray-600); font-size: 13px; }
.form-group input, .form-group select {
  padding: 8px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: white;
  font-size: 14px;
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group .error { color: var(--danger); font-size: 12px; }

/* ===== PAYROLL PREVIEW ===== */
.payroll-preview {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin: 16px 0;
}
.payroll-preview .bracket { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--gray-200); padding: 6px 0; }




/* ===== LEAVE DASHBOARD ===== */
.leave-balance {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.leave-badge {
  background: var(--gray-100);
  padding: 8px 16px;
  border-radius: 40px;
  font-weight: 500;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 40px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--gray-700);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
  max-width: 320px;
}
.toast.success { background: var(--success); }
.toast.danger { background: var(--danger); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ===== MODAL BACKDROP ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-backdrop.show { display: flex; }
.modal-box {
  background: white;
  max-width: 600px;
  width: 100%;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: scaleIn 0.2s ease;
}
@keyframes scaleIn { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ===== SHIMMER LOADING ===== */
.shimmer {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* responsive */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .topbar .search { max-width: 160px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  table { font-size: 12px; }
  td, th { padding: 8px 10px; }
}
@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
}

/* utility */
.flex { display: flex; align-items: center; gap: 12px; }
.gap-2 { gap: 8px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.btn {
  padding: 6px 16px;
  border-radius: var(--radius);
  border: none;
  font-weight: 500;
  background: var(--primary);
  color: white;
  cursor: pointer;
  transition: var(--transition);
}
.btn:hover { 
  background: var(--primary-dark); 
}

.btn-outline { 
  background: transparent; border: 1px solid var(--gray-300); color: var(--gray-600); 
}

.btn-outline:hover { 
  background: var(--gray-100); 
}

.btn-success { 
  background: var(--success); 
}

.btn-danger { 
  background: var(--danger); 
}
.text-center { 
  text-align: center; 
}



.close-modal, .effect-cursor {
    cursor: pointer;
    transition: 0.2s ease;
}

.close-modal:hover, .effect-cursor:hover {
    cursor: pointer;
    opacity: 0.8; /* Optional */
}

/* ===== PROFILE DROPDOWN ===== */
.profile-dropdown {
  position: relative;
  display: inline-block;
}

.profile-dropdown .avatar {
  cursor: pointer;
  transition: var(--transition);
}

.profile-dropdown .avatar:hover {
  opacity: 0.8;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  padding: 8px 0;
  z-index: 1000;
  animation: dropdownSlide 0.2s ease;
}

.dropdown-menu.show {
  display: block;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 12px;
}

.avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 40px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.dropdown-name {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 14px;
}

.dropdown-email {
  font-size: 12px;
  color: var(--gray-400);
}

.dropdown-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 4px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  color: var(--gray-600);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
}

.dropdown-item:hover {
  background: var(--gray-100);
  color: var(--gray-700);
}

.dropdown-item i {
  width: 18px;
  font-size: 14px;
}

.dropdown-item.text-danger {
  color: var(--danger);
}

.dropdown-item.text-danger:hover {
  background: hsl(0, 75%, 95%);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  transition: var(--transition);
}

.theme-toggle:hover {
  transform: rotate(20deg);
}

/* ===== DARK THEME OVERRIDES ===== */
body.dark-theme {
  --gray-50: hsl(0, 0%, 12%);
  --gray-100: hsl(0, 0%, 18%);
  --gray-200: hsl(0, 0%, 26%);
  --gray-300: hsl(0, 0%, 44%);
  --gray-400: hsl(0, 0%, 60%);
  --gray-500: hsl(0, 0%, 72%);
  --gray-600: hsl(0, 0%, 84%);
  --gray-700: hsl(0, 0%, 94%);
  --primary-light: hsl(var(--h-primary), var(--s-primary), 18%);
  --shadow: 0 4px 16px rgba(0,0,0,0.4);
}

body.dark-theme .topbar,
body.dark-theme .sidebar,
body.dark-theme .kpi-card,
body.dark-theme .table-wrap,
body.dark-theme .payroll-preview,
body.dark-theme .modal-box,
body.dark-theme .dropdown-menu {
  background: var(--gray-100);
}

body.dark-theme .topbar {
  border-bottom-color: var(--gray-200);
}

body.dark-theme .sidebar {
  border-right-color: var(--gray-200);
}

body.dark-theme table thead th {
  background: var(--gray-200);
}

body.dark-theme .dropdown-item:hover {
  background: var(--gray-200);
}

body.dark-theme .login-box {
  background: var(--gray-100);
}




/* ===== PAYROLL PAGE STYLES ===== */
.payroll-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.payroll-stat-card {
  background: var(--card-bg, white);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

.payroll-stat-card .label {
  color: var(--gray-400);
  font-weight: 500;
  font-size: 13px;
}

.payroll-stat-card .value {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-700);
}

.payroll-stat-card .trend {
  font-size: 13px;
}

/* Tax bracket styles */
.tax-bracket {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-200);
}

.tax-bracket:last-child {
  border-bottom: none;
}

.tax-rate {
  font-weight: 500;
}

.tax-rate.zero { color: var(--success); }
.tax-rate.low { color: var(--warning); }
.tax-rate.high { color: var(--danger); }

/* Modal theme overrides */
body.dark-theme .modal-content {
  background: var(--gray-100);
  color: var(--gray-600);
}

body.dark-theme .modal-header {
  border-bottom-color: var(--gray-300);
}

body.dark-theme .modal-footer {
  border-top-color: var(--gray-300);
}

body.dark-theme .modal-content .form-control {
  background: var(--gray-200);
  border-color: var(--gray-300);
  color: var(--gray-600);
}

body.dark-theme .modal-content .form-control:focus {
  background: var(--gray-200);
  border-color: var(--primary);
}

/* Payroll table footer */
tfoot {
  font-weight: 600;
}

tfoot td {
  padding: 12px 16px;
  border-top: 2px solid var(--gray-300);
}

body.dark-theme tfoot {
  background: var(--gray-200) !important;
}

body.dark-theme tfoot td {
  border-top-color: var(--gray-400);
}



.filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--modal-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.search-group {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.search-input {
    width: 100%;
    padding: 10px 10px 10px 36px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: var(--modal-input-bg);
    color: var(--modal-input-text);
}

.filter-select {
    padding: 10px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: var(--modal-input-bg);
    color: var(--modal-input-text);
}

.filter-btn {
    padding: 10px 20px;
}

/* Optional: improve focus styling */
.search-input:focus,
.filter-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}


/* ===== EMPLOYEE DASHBOARD STYLES ===== */
.employee-profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: var(--card-bg, white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.employee-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  flex-shrink: 0;
}

.employee-info h2 {
  margin-bottom: 4px;
  color: var(--text-primary, var(--gray-700));
}

.employee-info .employee-meta {
  color: var(--gray-400);
  font-size: 14px;
}

.employee-info .employee-meta span {
  margin-right: 16px;
}

.employee-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.employee-stat-card {
  background: var(--card-bg, white);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.employee-stat-card .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.employee-stat-card .stat-label {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 4px;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--card-bg, white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
}

.quick-action-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.quick-action-btn i {
  font-size: 16px;
}

.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.card {
  background: var(--card-bg, white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary, var(--gray-700));
}

.card h3 i {
  color: var(--primary);
}

.payslip-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
}

.payslip-item:last-child {
  border-bottom: none;
}

.payslip-item .payslip-date {
  font-weight: 500;
  color: var(--text-primary, var(--gray-700));
}

.payslip-item .payslip-amount {
  font-weight: 600;
  color: var(--success);
}

.payslip-item .btn-sm {
  padding: 4px 12px;
  font-size: 12px;
}

.masm-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--gray-100);
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.masm-status .masm-badge {
  padding: 4px 12px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 500;
}

.masm-status .masm-badge.active {
  background: hsl(142, 70%, 90%);
  color: var(--success);
}

.masm-status .masm-badge.pending {
  background: hsl(38, 92%, 90%);
  color: var(--warning);
}

.loan-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
}

.loan-item:last-child {
  border-bottom: none;
}

.loan-item .loan-type {
  font-weight: 500;
  color: var(--text-primary, var(--gray-700));
}

.loan-item .loan-balance {
  font-weight: 600;
}

.loan-item .loan-balance.positive {
  color: var(--danger);
}

.loan-item .loan-balance.negative {
  color: var(--success);
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}

.progress-bar .progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.progress-fill.primary { background: var(--primary); }
.progress-fill.success { background: var(--success); }
.progress-fill.warning { background: var(--warning); }
.progress-fill.danger { background: var(--danger); }

/* Dark theme overrides for employee dashboard */
body.dark-theme .employee-profile-header,
body.dark-theme .employee-stat-card,
body.dark-theme .card,
body.dark-theme .quick-action-btn {
  background: var(--gray-100);
}

body.dark-theme .employee-stat-card .stat-value {
  color: var(--primary-light);
}

body.dark-theme .payslip-item {
  border-bottom-color: var(--gray-300);
}

body.dark-theme .loan-item {
  border-bottom-color: var(--gray-300);
}

body.dark-theme .masm-status {
  background: var(--gray-200);
}

body.dark-theme .card h3 {
  color: var(--gray-600);
}

body.dark-theme .employee-info h2 {
  color: var(--gray-600);
}

body.dark-theme .employee-avatar-large {
  background: var(--primary-dark);
  color: var(--primary-light);
}

body.dark-theme .quick-action-btn {
  border-color: var(--gray-300);
  color: var(--gray-500);
}

body.dark-theme .quick-action-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary);
  color: var(--primary-light);
}




/* Add to your styles.css */
.breadcrumb {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    font-size: 14px;
}

.breadcrumb li a {
    color: var(--gray-500);
    text-decoration: none;
}

.breadcrumb li a:hover {
    color: var(--primary);
}

.breadcrumb .separator {
    color: var(--gray-300);
    margin: 0 8px;
}

.breadcrumb .current {
    color: var(--text-primary);
    font-weight: 500;
}





/* responsiveness */


@media (max-width: 768px) {
  .two-col-grid {
    grid-template-columns: 1fr;
  }
  .employee-profile-header {
    flex-direction: column;
    text-align: center;
  }
  .employee-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .employee-stats-grid {
    grid-template-columns: 1fr;
  }
  .quick-actions-grid {
    grid-template-columns: 1fr;
  }
}




/* Responsive payroll table */
@media (max-width: 768px) {
  .payroll-summary {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .payroll-summary {
    grid-template-columns: 1fr;
  }
}
