/* ===================================
   ZBHRMS - Modern Design System
   =================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ===================================
   CSS Variables & Design Tokens
   =================================== */
:root {
  /* Color Palette */
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-300: #7dd3fc;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --primary-900: #0c4a6e;
    
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    --success-50: #ecfdf5;
    --success-100: #d1fae5;
    --success-200: #a7f3d0;
    --success-300: #6ee7b7;
    --success-400: #34d399;
    --success-500: #10b981;
    --success-600: #059669;
    --success-700: #047857;
    --success-800: #065f46;
    --success-900: #064e3b;
    
    --warning-50: #fffbeb;
    --warning-100: #fef3c7;
    --warning-200: #fde68a;
    --warning-300: #fcd34d;
    --warning-400: #fbbf24;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --warning-700: #b45309;
    --warning-800: #92400e;
    --warning-900: #78350f;
    
    --danger-50: #fef2f2;
    --danger-100: #fee2e2;
    --danger-200: #fecaca;
    --danger-300: #fca5a5;
    --danger-400: #f87171;
    --danger-500: #ef4444;
    --danger-600: #dc2626;
    --danger-700: #b91c1c;
    --danger-800: #991b1b;
    --danger-900: #7f1d1d;
    
  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
    
      /* Z-Index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ===================================
   TOPBAR
   =================================== */
.topbar {
  position: fixed;
  top: 0;
  left: 280px;
  right: var(--space-4);
  height: 70px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  z-index: var(--z-fixed);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.topbar.collapsed {
  left: 80px;
  right: var(--space-4);
}

/* Sidebar Expand Button */
.sidebar-expand-btn {
  position: fixed;
  top: 80px;
  left: 90px;
  z-index: var(--z-fixed);
  background: var(--primary-600);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.2s ease;
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
}

.sidebar-expand-btn:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-xl);
}

.sidebar-expand-btn svg {
  width: 20px;
  height: 20px;
}

/* Show expand button when sidebar is collapsed */
.sidebar.collapsed ~ .content-wrapper .sidebar-expand-btn {
  display: flex !important;
}

/* Hide expand button by default */
.sidebar-expand-btn {
  display: none;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.topbar-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

.topbar-subtitle {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  margin: 0;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 400px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  min-width: 0;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  min-width: 0;
}

.topbar-user:hover {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.topbar-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-sm);
  flex-shrink: 0;
}

.topbar-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 150px;
}

.topbar-user-name {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-user-role {
  font-size: var(--font-size-xs);
  color: var(--gray-600);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-logout-btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: linear-gradient(135deg, var(--danger-500), var(--danger-600));
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  white-space: nowrap;
}

.topbar-logout-btn:hover {
  background: linear-gradient(135deg, var(--danger-600), var(--danger-700));
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.topbar-logout-icon {
  font-size: var(--font-size-sm);
}

/* Medium screens - hide subtitle */
@media (max-width: 1024px) {
  .topbar-subtitle {
    display: none;
  }
  
  .topbar-title {
    font-size: var(--font-size-lg);
    max-width: 200px;
  }
  
  .topbar-user-info {
    max-width: 120px;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .topbar {
    left: 0;
    right: var(--space-3);
    padding: 0 var(--space-3);
  }
  
  .topbar.collapsed {
    left: 0;
    right: var(--space-3);
  }
  
  .topbar-title {
    font-size: var(--font-size-lg);
  }
  
  .topbar-subtitle {
    display: none;
  }
  
  .topbar-title {
    font-size: var(--font-size-base);
    max-width: 150px;
  }
  
  .topbar-user-info {
    display: none;
  }
  
  .topbar-user {
    padding: var(--space-2);
  }
  
  .topbar-logout-btn {
    padding: var(--space-2);
  }
  
  .topbar-logout-btn span:not(.topbar-logout-icon) {
    display: none;
  }
  
  .sidebar-expand-btn {
    top: 70px;
    left: 10px;
  }
  
  .content-wrapper {
    margin-left: 0;
    width: 100vw;
  }
  
  .content-wrapper.sidebar-collapsed {
    margin-left: 0;
    width: 100vw;
  }
  
  .container {
    padding: 0 var(--space-4);
  }
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--gray-900);
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 30%, #f0f9ff 70%, #f8fafc 100%);
    min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Layout Components
   =================================== */
.page-wrapper {
    display: flex;
  min-height: 100vh;
}

.content-wrapper {
    flex: 1;
    margin-left: 280px;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    transition: margin-left 0.3s ease;
    width: calc(100vw - 280px);
}

.content-wrapper.sidebar-collapsed {
    margin-left: 80px;
    width: calc(100vw - 80px);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  width: 100%;
  margin-top: 1rem;
}

/* ===================================
   Page Header Styles
   =================================== */
.page-header {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header-left {
    flex: 1;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.page-subtitle {
    color: var(--gray-600);
    font-size: 1.125rem;
    margin: 0;
    line-height: 1.5;
}

.page-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Responsive styles for page header */
@media (max-width: 768px) {
    .page-header {
        margin-top: 1rem;
        margin-bottom: 1.5rem;
        padding: 1rem 0;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .container {
        margin-top: 0.5rem;
    }
}

/* ===================================
   Sidebar
   =================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-lg);
    z-index: var(--z-fixed);
  transition: all 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.sidebar.collapsed {
  width: 80px;
}

.sidebar.collapsed .sidebar-brand-text,
.sidebar.collapsed .sidebar-nav-text,
.sidebar.collapsed .sidebar-nav-title,
.sidebar.collapsed .sidebar-user-name,
.sidebar.collapsed .sidebar-user-role {
  display: none;
}

.sidebar.collapsed .sidebar-footer {
  padding: var(--space-4);
}

.sidebar.collapsed .sidebar-nav-link {
  justify-content: center;
  padding: var(--space-4);
}

.sidebar.collapsed .sidebar-nav-icon {
  margin: 0;
}

.sidebar.collapsed .sidebar-user {
  justify-content: center;
  padding: var(--space-3);
}

.sidebar.collapsed .sidebar-user-info {
  display: none;
}

.sidebar.collapsed .sidebar-user-avatar {
  margin: 0;
}

.sidebar.collapsed .sidebar-logout-btn {
  padding: var(--space-3);
  justify-content: center;
}

.sidebar.collapsed .sidebar-logout-btn span:not(.sidebar-logout-icon) {
  display: none;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
  gap: var(--space-3);
    text-decoration: none;
  color: var(--gray-900);
}

.sidebar-brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
  font-weight: 700;
  font-size: var(--font-size-lg);
}

.sidebar-brand-text {
  font-size: var(--font-size-xl);
    font-weight: 800;
  color: var(--gray-900);
    letter-spacing: -0.025em;
}

.sidebar-toggle {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--gray-100);
  border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  transition: all 0.2s ease;
  color: var(--gray-600);
}

.sidebar-toggle:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

.sidebar-nav {
  padding: var(--space-6);
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
}

.sidebar-nav-section {
  margin-bottom: var(--space-8);
}

.sidebar-nav-title {
  font-size: var(--font-size-xs);
    font-weight: 700;
  color: var(--gray-500);
    text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
  padding-left: var(--space-2);
}

.sidebar-nav-list {
    list-style: none;
}

.sidebar-nav-item {
  margin-bottom: var(--space-1);
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
    text-decoration: none;
  color: var(--gray-700);
    font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.sidebar-nav-link:hover {
  background: var(--gray-100);
  color: var(--gray-900);
    transform: translateX(4px);
}

.sidebar-nav-link.active {
  background: var(--primary-50);
  color: var(--primary-700);
    font-weight: 600;
}

.sidebar-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--primary-500);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.sidebar-nav-icon {
  width: 20px;
  height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  font-size: var(--font-size-lg);
}

.sidebar-nav-text {
  flex: 1;
  white-space: nowrap;
    overflow: hidden;
  text-overflow: ellipsis;
}

/* User Section Styling */
.sidebar-footer {
  margin-top: auto;
  padding: var(--space-6);
  border-top: 1px solid var(--gray-200);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(10px);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

/* Sidebar user styles - moved to topbar */
/* .sidebar-user {
    display: flex;
    align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  width: 100%;
  box-sizing: border-box;
}

.sidebar-user-info {
    display: flex;
    align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
  font-size: var(--font-size-base);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.sidebar-user-details {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
  font-size: var(--font-size-sm);
  font-weight: 700;
    color: var(--gray-900);
  margin-bottom: var(--space-1);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: var(--font-size-xs);
    color: var(--gray-600);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(135deg, var(--danger-500), var(--danger-600));
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
  position: relative;
    overflow: hidden;
} */

/* .sidebar-logout-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.sidebar-logout-btn:hover {
  background: linear-gradient(135deg, var(--danger-600), var(--danger-700));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.sidebar-logout-btn:hover::before {
  left: 100%;
}

.sidebar-logout-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.sidebar-logout-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
    justify-content: center;
  font-size: var(--font-size-sm);
} */

/* ===================================
   Dashboard Header
   =================================== */
.dashboard-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: var(--space-8) 0;
  margin-bottom: var(--space-8);
}

.dashboard-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-8);
}

.dashboard-header-left {
  flex: 1;
}

.dashboard-title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--space-2);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.dashboard-subtitle {
  font-size: var(--font-size-lg);
  color: var(--gray-600);
  font-weight: 400;
}

.dashboard-header-right {
  display: flex;
  align-items: center;
}

.dashboard-date {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.date-icon {
  font-size: var(--font-size-xl);
  color: var(--primary-500);
}

.date-info {
  display: flex;
  flex-direction: column;
}

.current-date {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--gray-900);
}

.current-time {
  font-size: var(--font-size-xs);
  color: var(--gray-500);
}

/* ===================================
   Dashboard Stats
   =================================== */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.stat-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
  opacity: 0;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-200);
  background: rgba(255, 255, 255, 0.95);
}

.stat-card:hover::before {
  opacity: 1;
  height: 6px;
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  position: relative;
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--font-size-xl);
  box-shadow: var(--shadow-md);
}

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

.stat-icon-danger {
  background: linear-gradient(135deg, var(--danger-500), var(--danger-600));
}

.stat-icon-warning {
  background: linear-gradient(135deg, var(--warning-500), var(--warning-600));
}

.stat-icon-success {
  background: linear-gradient(135deg, var(--success-500), var(--success-600));
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius);
  font-size: var(--font-size-xs);
  font-weight: 600;
}

.stat-trend-up {
  background: var(--success-100);
  color: var(--success-700);
}

.stat-trend-down {
  background: var(--danger-100);
  color: var(--danger-700);
}

.stat-trend svg {
  width: 12px;
  height: 12px;
}

.stat-content {
  text-align: center;
}

.stat-number {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--space-2);
  line-height: 1;
}

.stat-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}

.stat-description {
  font-size: var(--font-size-xs);
  color: var(--gray-500);
  font-weight: 500;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
  transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
  line-height: 1;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-xs);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-base);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
    color: var(--gray-700);
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--gray-50);
    border-color: var(--gray-400);
  color: var(--gray-900);
    transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-success {
  background: var(--success-500);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-success:hover:not(:disabled) {
  background: var(--success-600);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
  background: var(--danger-500);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-danger:hover:not(:disabled) {
  background: var(--danger-600);
    transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  background: transparent;
    color: var(--primary-600);
    border-color: var(--primary-300);
}

.btn-outline-primary:hover:not(:disabled) {
  background: var(--primary-50);
  border-color: var(--primary-500);
    color: var(--primary-700);
}

.btn-outline-secondary {
  background: transparent;
  color: var(--gray-600);
  border-color: var(--gray-300);
}

.btn-outline-secondary:hover:not(:disabled) {
  background: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--gray-900);
}

/* ===================================
   Cards
   =================================== */
.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
    opacity: 0;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-200);
  background: rgba(255, 255, 255, 0.95);
}

.card:hover::before {
    opacity: 1;
    height: 4px;
}

.card-header {
  padding: var(--space-6) var(--space-8);
  border-bottom: 1px solid var(--gray-200);
  background: rgba(255, 255, 255, 0.5);
}

.card-title {
  font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.card-subtitle {
  font-size: var(--font-size-sm);
    color: var(--gray-600);
  margin: var(--space-1) 0 0 0;
}

.card-body {
  padding: var(--space-8);
}

.card-footer {
  padding: var(--space-6) var(--space-8);
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}

/* ===================================
   Forms
   =================================== */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-weight: 400;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
  color: var(--gray-900);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.form-input:hover:not(:focus),
.form-select:hover:not(:focus),
.form-textarea:hover:not(:focus) {
  border-color: var(--gray-300);
  background: rgba(255, 255, 255, 0.95);
}

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

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right var(--space-3) center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  padding-right: var(--space-10);
}

.form-checkbox,
.form-radio {
  width: 16px;
  height: 16px;
  border: 2px solid var(--gray-300);
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-checkbox {
  border-radius: var(--radius);
}

.form-radio {
  border-radius: 50%;
}

.form-checkbox:checked,
.form-radio:checked {
  background: var(--primary-500);
  border-color: var(--primary-500);
}

/* ===================================
   Badges
   =================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  border: 1px solid transparent;
}

.badge-primary {
  background: var(--primary-100);
  color: var(--primary-700);
  border-color: var(--primary-200);
}

.badge-success {
  background: var(--success-100);
  color: var(--success-700);
  border-color: var(--success-200);
}

.badge-warning {
  background: var(--warning-100);
  color: var(--warning-700);
  border-color: var(--warning-200);
}

.badge-danger {
  background: var(--danger-100);
  color: var(--danger-700);
  border-color: var(--danger-200);
}

/* ===================================
   Tables
   =================================== */
.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

    .table th,
    .table td {
  padding: var(--space-4) var(--space-6);
  text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-700);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table tr:hover {
  background: var(--gray-50);
}

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

/* ===================================
   Alerts
   =================================== */
.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-6);
  border: 1px solid transparent;
  font-weight: 500;
}

.alert-success {
  background: var(--success-50);
  color: var(--success-700);
  border-color: var(--success-200);
}

.alert-warning {
  background: var(--warning-50);
  color: var(--warning-700);
  border-color: var(--warning-200);
}

.alert-danger {
  background: var(--danger-50);
  color: var(--danger-700);
  border-color: var(--danger-200);
}

.alert-info {
  background: var(--primary-50);
  color: var(--primary-700);
  border-color: var(--primary-200);
}

/* ===================================
   Utilities
   =================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }
.text-4xl { font-size: var(--font-size-4xl); }

.text-gray-500 { color: var(--gray-500); }
.text-gray-600 { color: var(--gray-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-900 { color: var(--gray-900); }
.text-primary { color: var(--primary-600); }
.text-success { color: var(--success-600); }
.text-warning { color: var(--warning-600); }
.text-danger { color: var(--danger-600); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

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

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .dashboard-stats {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
    }
    
    .stat-card {
    padding: var(--space-6);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1100;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .content-wrapper {
        margin-left: 0;
  }
  
  .dashboard-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
  }
  
  .dashboard-title {
    font-size: var(--font-size-3xl);
  }
  
  .dashboard-stats {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  
  .container {
    padding: 0 var(--space-4);
  }
  
  .stat-card {
    padding: var(--space-5);
  }
  
  .card-body {
    padding: var(--space-6);
  }
  
  .card-header {
    padding: var(--space-5) var(--space-6);
  }
}

@media (max-width: 480px) {
    .dashboard-title {
    font-size: var(--font-size-2xl);
  }
  
  .stat-number {
    font-size: var(--font-size-3xl);
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.4s ease-out;
}

/* ===================================
   Dashboard Specific Styles
   =================================== */
.metrics-overview {
  margin-bottom: var(--space-12);
}

.metrics-header {
    text-align: center;
  margin-bottom: var(--space-8);
}

.metrics-title {
  font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--gray-900);
  margin-bottom: var(--space-2);
    letter-spacing: -0.025em;
}

.metrics-subtitle {
  font-size: var(--font-size-lg);
    color: var(--gray-600);
    font-weight: 400;
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.quick-actions-section,
.recent-employees-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
  border: 2px solid rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.recent-employees-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--success-500));
  opacity: 0.8;
}

.section-header {
  margin-bottom: var(--space-6);
}

.section-title {
  font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--gray-900);
  margin-bottom: var(--space-1);
}

.section-subtitle {
  font-size: var(--font-size-sm);
    color: var(--gray-600);
    font-weight: 400;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  background: var(--primary-50);
  color: var(--primary-700);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-sm);
    font-weight: 600;
    text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--primary-200);
}

.section-link:hover {
  background: var(--primary-100);
  color: var(--primary-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.quick-actions {
    display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
}

.quick-action {
    display: flex;
    align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
    text-decoration: none;
  color: var(--gray-700);
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.quick-action:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
    color: var(--gray-900);
  border-color: var(--primary-200);
}

.quick-action-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
  font-size: var(--font-size-xl);
    flex-shrink: 0;
}

.quick-action-content {
    flex: 1;
}

.quick-action-title {
  font-size: var(--font-size-base);
  font-weight: 600;
    color: var(--gray-900);
  margin-bottom: var(--space-1);
}

.quick-action-description {
  font-size: var(--font-size-sm);
    color: var(--gray-600);
  line-height: 1.4;
}

.recent-employees-list {
    display: flex;
    flex-direction: column;
  gap: var(--space-3);
}

.recent-employee-item {
    display: flex;
    align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.recent-employee-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(4px);
}

.recent-employee-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
  font-weight: 600;
  font-size: var(--font-size-sm);
    flex-shrink: 0;
}

.recent-employee-info {
    flex: 1;
}

.recent-employee-name {
  font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-900);
  margin-bottom: var(--space-1);
}

.recent-employee-role {
  font-size: var(--font-size-xs);
    color: var(--gray-600);
}

.recent-employee-date {
  font-size: var(--font-size-xs);
  color: var(--gray-500);
  text-align: right;
}

/* Enhanced Recent Employees Styling */
.recent-employee-item {
  display: flex;
    align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.recent-employee-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--success-500), var(--success-600));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.recent-employee-item:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-color: var(--success-200);
}

.recent-employee-item:hover::before {
  opacity: 1;
}

.recent-employee-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border-radius: 50%;
    display: flex;
    align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: var(--font-size-base);
    flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.recent-employee-info {
    flex: 1;
    min-width: 0;
}

.recent-employee-name {
  font-size: var(--font-size-base);
  font-weight: 700;
    color: var(--gray-900);
  margin-bottom: var(--space-1);
  line-height: 1.3;
}

.recent-employee-role {
  font-size: var(--font-size-sm);
    color: var(--gray-600);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.recent-employee-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  background: var(--success-100);
  color: var(--success-700);
  border-radius: var(--radius);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--success-200);
}

.recent-employee-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--success-500);
  border-radius: 50%;
  display: inline-block;
}

/* System Health Card Styling */
.system-health-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
  border: 2px solid rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.system-health-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--success-500), var(--primary-500), var(--warning-500));
  opacity: 0.8;
}

.system-health-list {
  display: flex;
        flex-direction: column;
  gap: var(--space-4);
}

.system-health-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
  overflow: hidden;
}

.system-health-item::before {
    content: '';
    position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--success-500), var(--success-600));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.system-health-item:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: var(--success-200);
}

.system-health-item:hover::before {
  opacity: 1;
}

.system-health-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--success-500), var(--success-600));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--font-size-lg);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.system-health-icon.warning {
  background: linear-gradient(135deg, var(--warning-500), var(--warning-600));
}

.system-health-icon.danger {
  background: linear-gradient(135deg, var(--danger-500), var(--danger-600));
}

.system-health-icon.info {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
}

.system-health-content {
  flex: 1;
  min-width: 0;
}

.system-health-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-1);
  line-height: 1.3;
}

.system-health-description {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  font-weight: 500;
  line-height: 1.4;
}

/* Stat card variants */
.stat-card-primary .stat-icon {
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
}

.stat-card-success .stat-icon {
  background: linear-gradient(135deg, var(--success-500), var(--success-600));
}

.stat-card-warning .stat-icon {
  background: linear-gradient(135deg, var(--warning-500), var(--warning-600));
}

.stat-card-danger .stat-icon {
  background: linear-gradient(135deg, var(--danger-500), var(--danger-600));
}

.stat-trend-neutral {
  background: var(--gray-100);
    color: var(--gray-600);
}

/* Employee Dashboard Specific Styles */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.quick-action {
    display: flex;
    align-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-2xl);
  text-decoration: none;
  color: var(--gray-700);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.quick-action:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
  border-color: var(--primary-200);
  background: rgba(255, 255, 255, 0.95);
  color: var(--gray-900);
}

.quick-action-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
  font-size: var(--font-size-2xl);
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.quick-action-content {
  flex: 1;
}

.quick-action-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
    color: var(--gray-900);
  margin-bottom: var(--space-1);
}

.quick-action-description {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  line-height: 1.5;
}

/* Stat badge styles */
.stat-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
    display: flex;
    align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: white;
    box-shadow: var(--shadow-md);
  animation: pulse 2s infinite;
}

.stat-badge-danger {
  background: var(--danger-500);
}

.stat-badge-warning {
  background: var(--warning-500);
}

.stat-badge-success {
  background: var(--success-500);
}

.stat-badge-primary {
  background: var(--primary-500);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .dashboard-content-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .quick-actions {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .metrics-title {
    font-size: var(--font-size-2xl);
  }
  
  .quick-actions {
    grid-template-columns: 1fr;
  }
  
  .quick-action {
    padding: var(--space-4);
  }
  
  .quick-action-icon {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-lg);
  }
  
  .recent-employee-item {
    padding: var(--space-3) var(--space-4);
  }
  
  .recent-employee-avatar {
    width: 36px;
    height: 36px;
    font-size: var(--font-size-sm);
  }
  
  .system-health-item {
    padding: var(--space-3) var(--space-4);
  }
  
  .system-health-icon {
    width: 36px;
    height: 36px;
    font-size: var(--font-size-base);
  }
  
  .sidebar-user-section {
    padding: var(--space-4);
  }
  
  .sidebar-logout-btn {
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-xs);
  }
}

/* ===================================
   Debug & Fix Styles
   =================================== */
/* Remove any potential broken elements */
* {
  box-sizing: border-box;
}

/* Ensure no broken images or elements */
img {
  max-width: 100%;
  height: auto;
}

/* Fix any potential layout issues */
.page-wrapper {
  min-height: 100vh;
  overflow-x: hidden;
}

.content-wrapper {
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ensure proper stacking context */
.sidebar {
  z-index: var(--z-fixed);
}

/* Fix any potential CSS conflicts */
.dashboard-stats,
.quick-actions,
.dashboard-content-grid {
  position: relative;
  z-index: 1;
}

/* Ensure proper content flow */
.container {
  position: relative;
  z-index: 1;
}

/* Fix any potential overflow issues */
body {
  overflow-x: hidden;
}

/* Ensure proper background */
.page-wrapper {
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 30%, #f0f9ff 70%, #f8fafc 100%);
  min-height: 100vh;
}

/* Remove any potential broken elements */
*::before,
*::after {
  box-sizing: border-box;
}

/* Ensure proper text rendering */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Print Styles
   =================================== */
@media print {
  .sidebar,
  .btn,
  .dashboard-header {
    display: none !important;
  }
  
  .content-wrapper {
    margin-left: 0 !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #000 !important;
  }
  
  .table {
    font-size: 12px !important;
  }
  
  .page-wrapper {
    background: white !important;
  }
}
