/* Modern HR Solutions Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
  /* Enhanced Color Palette */
  --background: hsl(0 0% 100%);
  --foreground: hsl(210 25% 7.8431%);
  --card: hsl(0 0% 100%);
  --card-foreground: hsl(210 25% 7.8431%);
  --popover: hsl(0 0% 100%);
  --popover-foreground: hsl(210 25% 7.8431%);
  --primary: hsl(217 91% 60%);
  --primary-hover: hsl(217 91% 55%);
  --primary-foreground: hsl(0 0% 100%);
  --secondary: hsl(210 25% 7.8431%);
  --secondary-foreground: hsl(0 0% 100%);
  --muted: hsl(240 1.9608% 90%);
  --muted-foreground: hsl(210 25% 7.8431%);
  --accent: hsl(217 91% 95%);
  --accent-foreground: hsl(217 91% 60%);
  --destructive: hsl(0 84% 60%);
  --destructive-foreground: hsl(0 0% 100%);
  --border: hsl(220 13% 91%);
  --input: hsl(220 13% 95%);
  --ring: hsl(217 91% 60%);
  
  /* Status Colors */
  --success: hsl(142 76% 36%);
  --success-light: hsl(142 76% 95%);
  --warning: hsl(47 96% 53%);
  --warning-light: hsl(47 96% 95%);
  --danger: hsl(0 84% 60%);
  --danger-light: hsl(0 84% 95%);
  --info: hsl(217 91% 60%);
  --info-light: hsl(217 91% 95%);
  
  /* Chart Colors */
  --chart-1: hsl(217 91% 60%);
  --chart-2: hsl(142 76% 36%);
  --chart-3: hsl(47 96% 53%);
  --chart-4: hsl(142 70% 45%);
  --chart-5: hsl(341 75% 51%);
  
  /* Sidebar Colors */
  --sidebar: hsl(0 0% 100%);
  --sidebar-foreground: hsl(210 25% 7.8431%);
  --sidebar-primary: hsl(217 91% 60%);
  --sidebar-primary-foreground: hsl(0 0% 100%);
  --sidebar-accent: hsl(217 91% 95%);
  --sidebar-accent-foreground: hsl(217 91% 60%);
  --sidebar-border: hsl(220 13% 91%);
  --sidebar-ring: hsl(217 91% 60%);
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: Georgia, serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  
  /* Spacing & Sizing */
  --radius: 5px;
  --radius-sm: 5px;
  --radius-md: 5px;
  --radius-lg: 5px;
  --radius-xl: 5px;
  
  /* 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);
  
  /* Breakpoints */
  --mobile: 640px;
  --tablet: 768px;
  --laptop: 1024px;
  --desktop: 1280px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

.dark {
  --background: hsl(222 84% 4.9%);
  --foreground: hsl(210 40% 98%);
  --card: hsl(222 84% 4.9%);
  --card-foreground: hsl(210 40% 98%);
  --popover: hsl(222 84% 4.9%);
  --popover-foreground: hsl(210 40% 98%);
  --primary: hsl(217 91% 60%);
  --primary-hover: hsl(217 91% 65%);
  --primary-foreground: hsl(222 84% 4.9%);
  --secondary: hsl(217 32% 17%);
  --secondary-foreground: hsl(210 40% 98%);
  --muted: hsl(217 32% 17%);
  --muted-foreground: hsl(215 20% 65%);
  --accent: hsl(217 32% 17%);
  --accent-foreground: hsl(210 40% 98%);
  --destructive: hsl(0 62% 30%);
  --destructive-foreground: hsl(210 40% 98%);
  --border: hsl(217 32% 17%);
  --input: hsl(217 32% 17%);
  --ring: hsl(217 91% 60%);
  
  /* Dark theme status colors */
  --success: hsl(142 76% 36%);
  --success-light: hsl(142 76% 15%);
  --warning: hsl(47 96% 53%);
  --warning-light: hsl(47 96% 15%);
  --danger: hsl(0 84% 60%);
  --danger-light: hsl(0 84% 15%);
  --info: hsl(217 91% 60%);
  --info-light: hsl(217 91% 15%);
  
  --sidebar: hsl(222 84% 4.9%);
  --sidebar-foreground: hsl(210 40% 98%);
  --sidebar-primary: hsl(217 91% 60%);
  --sidebar-primary-foreground: hsl(222 84% 4.9%);
  --sidebar-accent: hsl(217 32% 17%);
  --sidebar-accent-foreground: hsl(210 40% 98%);
  --sidebar-border: hsl(217 32% 17%);
  --sidebar-ring: hsl(217 91% 60%);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.5;
  font-feature-settings: "rlig" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(to right, #f0f2f5, #e2e8f0);
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Selection styles */
::selection {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* Modern Layout System */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0.75rem;
  width: 100%;
}

@media (min-width: 640px) {
  .container {
    padding: 1rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 1.25rem;
  }
}

.page-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .page-header h1 {
    font-size: 1.875rem;
  }
}

.page-header p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 400;
}

@media (min-width: 768px) {
  .page-header p {
    font-size: 1rem;
  }
}

/* Utility Classes */
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.25rem; }
.mb-8 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 0.75rem; }
.mt-6 { margin-top: 1rem; }
.text-center { text-align: center; }
.text-muted { color: var(--muted-foreground); }
.w-full { width: 100%; }

/* Card Styles */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--foreground);
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

/* Responsive Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.table th,
.table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table th {
  background: var(--muted);
  font-weight: 600;
  color: var(--foreground);
}

.table tr:last-child td {
  border-bottom: none;
}

/* Alias for legacy tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  background: var(--muted);
  font-weight: 600;
  color: var(--foreground);
}
.data-table tr:last-child td {
  border-bottom: none;
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  gap: 0.5rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.btn-secondary:hover {
  opacity: 0.9;
}

/* Modal styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--background);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(-20px);
  transition: transform var(--transition-fast);
}

.modal.active .modal-content {
  transform: translateY(0);
}

/* Responsive Grid Layouts */
.grid-cols-1 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Grid System */
.grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid {
    gap: 1.5rem;
  }
}

/* Responsive Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1600px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 600;
}

.nav-brand a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--foreground);
  text-decoration: none;
}

.logo-icon {
  color: var(--primary);
}

.nav-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--background);
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.nav-menu.active,
.nav-menu.show {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--foreground);
  text-decoration: none;
  border-radius: var(--radius);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}

.nav-link.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.nav-user {
  position: relative;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  border-radius: var(--radius);
}

.user-btn:hover {
  background: var(--accent);
}

.user-name {
  display: none;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 200px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  margin-top: 0.5rem;
}

.dropdown-menu.active {
  display: block;
}

/* Mobile menu toggle */
.menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--foreground);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
  
  .nav-menu {
    display: flex;
    position: static;
    padding: 0;
    border: none;
    box-shadow: none;
    flex-direction: row;
    gap: 0.5rem;
  }
  
  .user-name {
    display: block;
  }
  
  .nav-link {
    padding: 0.5rem 1rem;
  }
}

.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)); }

@media (min-width: 768px) {
  .md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Modern Navigation */
.navbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.nav-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  height: 4rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-brand a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--foreground);
  font-weight: 700;
  font-size: 1.5rem;
  transition: all var(--transition-fast);
}

.nav-brand a:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.nav-brand .logo-icon {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
  transition: all var(--transition-fast);
}

.nav-brand a:hover .logo-icon {
  transform: rotate(5deg) scale(1.1);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  text-decoration: none;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  font-weight: 500;
  font-size: 0.875rem;
  position: relative;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--foreground);
  background: var(--accent);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--primary);
  background: var(--accent);
  border-bottom-color: var(--primary);
}

.nav-link i {
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.nav-link:hover i {
  transform: scale(1.1);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.user-dropdown {
  position: relative;
}

.user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border);
  padding: 0.625rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 500;
  font-size: 0.875rem;
  box-shadow: var(--shadow-sm);
}

.user-btn:hover {
  background: var(--accent);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.user-btn i {
  font-size: 0.875rem;
  transition: transform var(--transition-fast);
}

.user-btn:hover i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  display: none;
  min-width: 12rem;
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.2s ease-out forwards;
  z-index: 50;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--foreground);
  text-decoration: none;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  font-size: 0.875rem;
  font-weight: 500;
}

.dropdown-menu a:hover {
  background: var(--accent);
  color: var(--accent-foreground);
  transform: translateX(4px);
}

.dropdown-menu a i {
  font-size: 1rem;
  width: 1rem;
  text-align: center;
}
/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  padding: 0.25rem;
  position: relative;
  z-index: 60;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

/* Hide legacy duplicate button if present */
.menu-toggle { display: none !important; }

.nav-toggle:hover {
  background: var(--accent);
}

.hamburger-icon {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--foreground);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all var(--transition-normal);
  border-radius: 5px;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--foreground);
  position: absolute;
  left: 0;
  transition: all var(--transition-normal);
  border-radius: 1px;
}

.hamburger-icon::before {
  top: -6px;
}

.hamburger-icon::after {
  top: 6px;
}

.nav-toggle.open .hamburger-icon {
  background-color: transparent;
}

.nav-toggle.open .hamburger-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle.open .hamburger-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Mobile Menu Responsive */
@media (max-width: 992px) {
  .nav-container {
    padding: 1rem;
  }
  .page-header h1 {
    font-size: 1.8rem;
  }
  .page-header p {
    font-size: 1rem;
  }
  .container {
    padding: 1.5rem 1rem;
  }
  .grid-cols-2, .grid-cols-3, .grid-cols-4,
  .md\:grid-cols-2, .md\:grid-cols-3, .md\:grid-cols-4,
  .lg\:grid-cols-2, .lg\:grid-cols-3, .lg\:grid-cols-4 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  .dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.2s ease-out forwards;
  }
  
  .nav-menu.show {
    display: flex;
  }
  
  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border-bottom: none;
  }
  
  .nav-link.active {
    background: var(--primary);
    color: var(--primary-foreground);
  }

  /* Prevent overlap between profile button and hamburger on mobile */
  .nav-container { gap: 0.5rem; justify-content: flex-start; }
  .nav-brand { flex: 1 1 auto; }
  .nav-user { margin-left: 0; flex-shrink: 0; }
  .nav-toggle { margin-left: 0.5rem; flex-shrink: 0; }

  .stats-grid, .quick-actions-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
  }

  .stat-card, .action-card {
    padding: 1rem;
  }

  .table-container {
    overflow-x: auto;
  }

  .data-table {
    min-width: 600px;
  }

  .btn {
    padding: 0.625rem 1rem;
  }
}

@media (max-width: 480px) {
    body { font-size: 14px; }
    .page-header h1 { font-size: 1.5rem; }
    .container { padding: 1rem 0.5rem; }
    .nav-brand a { font-size: 1.2rem; }
    .user-btn { padding: 0.5rem 0.75rem; }

    /* Make headers and action sections consistently centered on small screens */
    .page-header, .check-action-card, .card-header h2 { text-align: center; }
    .card-header { padding: 1rem; justify-content: center; }
    .card-header .page-actions { justify-content: center; }

    .stat-card-info p { font-size: 1.5rem; }
    .action-card h3 { font-size: 1.1rem; }
    .card-body { padding: 1rem; }
    .btn { width: 100%; margin-bottom: 0.5rem; }
    .table-actions .btn { width: auto; margin-bottom: 0; }
}
/* Modern Dashboard Components */
.dashboard-section {
  margin-bottom: 2rem;
}

.dashboard-section h2 {
  color: var(--foreground);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-section h2::before {
  content: '';
  width: 3px;
  height: 1.25rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  border-radius: 5px;
}

/* Modern Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--chart-2), var(--chart-3));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--primary);
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.stat-card:hover .stat-card-icon {
  background: var(--primary);
  color: var(--primary-foreground);
  transform: scale(1.05);
}

.stat-card-info h3 {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 500;
  margin: 0 0 0.25rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-card-info p {
  color: var(--foreground);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1;
}

/* Modern Quick Actions Grid */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.action-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.action-card:hover::before {
  left: 100%;
}

.action-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.action-card-icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: var(--primary-foreground);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.action-card:hover .action-card-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-lg);
}

.action-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 0.75rem 0;
  transition: color var(--transition-fast);
}

.action-card:hover h3 {
  color: var(--primary);
}

.action-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
  line-height: 1.5;
}

/* Dashboard Grid for Recent Activity */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

/* Modern Card Components */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--muted);
  position: relative;
}

.card-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--chart-2));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card:hover .card-header::before {
  opacity: 1;
}

.card-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-header h2 i {
  color: var(--primary);
  font-size: 1.125rem;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Modern Data Tables */
.table-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.data-table thead th {
  background: var(--muted);
  color: var(--foreground);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: sticky;
  top: 0;
  z-index: 10;
}

.data-table tbody tr {
  transition: all var(--transition-fast);
}

.data-table tbody tr:hover {
  background: var(--accent);
  transform: scale(1.01);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Table Actions */
.table-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.table-actions .btn {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.active {
  background: var(--success-light);
  color: var(--success);
}

.status-badge.inactive {
  background: var(--danger-light);
  color: var(--danger);
}

.status-badge.pending {
  background: var(--warning-light);
  color: var(--warning);
}

.status-badge.approved {
  background: var(--success-light);
  color: var(--success);
}

.status-badge.rejected {
  background: var(--danger-light);
  color: var(--danger);
}

/* Modern Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-sans);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}

.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 ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn:disabled:hover::before {
  left: -100%;
}

/* Button Variants */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: var(--primary-foreground);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #38a169);
  color: white;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #e53e3e);
  color: white;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning), #d69e2e);
  color: white;
}

.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Request Filters Styling */
.request-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.75rem;
}

.request-filters span {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-right: 0.25rem;
    flex-shrink: 0;
}

.request-filters .btn {
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-weight: 500;
}

.request-filters .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Action Buttons Container */
.page-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.page-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-weight: 500;
    border-radius: var(--radius-md);
}

/* Button Sizes */
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  min-width: auto;
}

/* Form controls */
.form-group select,
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
  font-size: 0.95rem;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-icon {
  padding: 0.75rem;
  aspect-ratio: 1;
}

/* Modern Form System */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.form-group label.required::after {
  content: '*';
  color: var(--danger);
  margin-left: 0.25rem;
}

.form-control,
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  font-size: 0.875rem;
  font-family: var(--font-sans);
  transition: all var(--transition-fast);
  position: relative;
}

.form-control:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.form-control:hover,
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--primary);
}

.form-control.error,
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
  color: var(--danger);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.form-error i {
  font-size: 0.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Input Groups */
.input-group {
  display: flex;
  align-items: stretch;
}

.input-group .form-control {
  border-radius: 0;
  border-right: none;
}

.input-group .form-control:first-child {
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}

.input-group .form-control:last-child {
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  border-right: 1px solid var(--border);
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--muted);
  border: 1px solid var(--border);
  border-left: none;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.input-group-text:first-child {
  border-left: 1px solid var(--border);
  border-right: none;
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}

.input-group-text:last-child {
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

/* Auth-specific input group tweaks */
.auth-container .input-group { align-items: center; }
.auth-container .input-group .form-control { padding-right: 2.75rem; }
.auth-container .input-group .toggle-password { cursor: pointer; border-left: none; background: var(--background); color: var(--muted-foreground); }
.auth-container .input-group .toggle-password:hover { color: var(--foreground); }
.auth-container .input-group .toggle-password { border-top-right-radius: var(--radius); border-bottom-right-radius: var(--radius); }
/* Modern Modal System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  margin: 1rem;
  overflow: hidden;
  transform: scale(0.9) translateY(20px);
  transition: all var(--transition-normal);
  border: 1px solid var(--border);
}

.modal-overlay.show .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--muted);
  position: relative;
}

.modal-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--chart-2));
}

.modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-title i {
  color: var(--primary);
  font-size: 1.25rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
}

.modal-close:hover {
  background: var(--accent);
  color: var(--foreground);
  transform: scale(1.1);
}

.modal-body {
  padding: 2rem;
  max-height: 60vh;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--muted);
}

/* Modal Sizes */
.modal-sm {
  max-width: 400px;
}

.modal-md {
  max-width: 600px;
}

.modal-lg {
  max-width: 800px;
}

.modal-xl {
  max-width: 1200px;
}

/* Modern Alert System */
.alert {
  display: flex;
  align-items: center; /* Changed from flex-start to center */
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm); /* Added shadow */
}

.alert::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: currentColor;
  border-radius: var(--radius-sm); /* Added border-radius */
}

.alert-icon {
  font-size: 1.25rem;
  /* margin-top: 0.125rem; Removed margin-top */
  flex-shrink: 0;
}

.alert-content {
  flex: 1;
}

.alert-title {
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  font-size: 0.875rem;
}

.alert-message {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.9;
}

.alert-success {
  color: var(--success);
  background: var(--success-light);
  border-color: var(--success);
}

.notification-success {
    background-color: var(--success-light);
    color: var(--success);
    border: 1px solid var(--success);
}

.alert-danger {
  color: var(--danger);
  background: var(--danger-light);
  border-color: var(--danger);
}

.notification-danger {
    background-color: var(--danger-light);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.alert-warning {
  color: var(--warning);
  background: var(--warning-light);
  border-color: var(--warning);
}

.notification-warning {
    background-color: var(--warning-light);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.alert-info {
  color: var(--info);
  background: var(--info-light);
  border-color: var(--info);
}

.notification-info {
    background-color: var(--info-light);
    color: var(--info);
    border: 1px solid var(--info);
}

/* Loading States */
.loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.btn .spinner {
  width: 0.875rem;
  height: 0.875rem;
}

/* Utilities */
.text-muted { color: var(--muted-foreground); }
.table-responsive { 
  width: 100%; 
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -8px, 0);
  }
  70% {
    transform: translate3d(0, -4px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

/* Animation Classes */
.animate-fadeIn {
  animation: fadeIn 0.3s ease-out forwards;
}

.animate-slideDown {
  animation: slideDown 0.3s ease-out forwards;
}

.animate-slideUp {
  animation: slideUp 0.3s ease-out forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.3s ease-out forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.3s ease-out forwards;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 1.5rem 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .quick-actions-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Laptop specific (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 2rem 1.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .quick-actions-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-header h1 {
    font-size: 2rem;
  }

  /* Auth page adjustments for laptop screens */
  .auth-page {
    padding: 2rem 1rem;
    align-items: flex-start;
    padding-top: 4rem;
  }

  .auth-container {
    max-width: 450px;
  }
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 1.875rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .quick-actions-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  
  .modal {
    margin: 0.5rem;
    max-width: calc(100vw - 1rem);
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem 1.5rem;
  }
  
  .table-responsive {
    font-size: 0.75rem;
  }
  
  .data-table th,
  .data-table td {
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem 0.75rem;
  }
  
  .page-header h1 {
    font-size: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    padding: 1.5rem;
  }
  
  .action-card {
    padding: 1.5rem;
  }
  
  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }
  
  .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .nav-toggle,
  .btn,
  .form-actions,
  .modal-overlay {
    display: none !important;
  }
  
  .container {
    max-width: none;
    margin: 0;
    padding: 0;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #000;
  }
  
  .page-header {
    border-bottom: 2px solid #000;
    margin-bottom: 1rem;
  }
}

/* Authentication Page Specific Styles */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--chart-2) 100%);
  padding: 1rem;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
}

.auth-container .card {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-2xl);
}

.auth-container .card-header {
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-container .card-footer {
  background: rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-container .form-control {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-container .form-control:focus {
  background: rgba(255, 255, 255, 1);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-container .input-group-text {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Dark theme adjustments for auth page */
.dark .auth-container .card {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .auth-container .card-header,
.dark .auth-container .card-footer {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark .auth-container .form-control {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--foreground);
}

.dark .auth-container .form-control:focus {
  background: rgba(15, 23, 42, 1);
}

.dark .auth-container .input-group-text {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.auth-container { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--border); border-radius: 5px; padding: 24px; }

/* Auth brand/header */
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 1rem; }
.auth-brand .brand-logo { width: 64px; height: 64px; border-radius: 12px; object-fit: contain; box-shadow: var(--shadow-sm); }
.auth-brand .brand-title { margin: 0; font-size: 1.5rem; font-weight: 700; }
.auth-brand .brand-subtitle { margin: 0; color: var(--muted-foreground); font-size: 0.95rem; }

/* Auth form adjustments */
.auth-container .form-actions { border-top: none; padding-top: 0.5rem; margin-top: 1rem; }

/* Attendance Page Specific Styles */
.check-in-out-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.check-action-card {
  text-align: center;
  padding: 2.5rem;
  border-radius: 5px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  max-width: 450px;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.check-action-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }

.check-action-card h3 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.check-action-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.check-action-card .btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.check-form-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  max-width: 550px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border-radius: 1rem;
  animation: fadeInScale 0.3s ease-out forwards;
  background: var(--card);
  border: 1px solid var(--border);
}

.check-form-card .card-header {
  background: var(--primary);
  color: #fff;
  border-bottom: none;
  padding: 1rem 1.5rem;
  border-radius: 1rem 1rem 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.check-form-card .card-header h2 {
  color: #fff;
  font-size: 1.25rem;
}

.check-form-card .close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.check-form-card .close-btn:hover {
  transform: rotate(90deg);
}

.check-form-card .card-body {
  padding: 1.5rem;
}

.check-form-card .form-group label {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.check-form-card .form-control, .check-form-card input[type="file"] {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
}

.check-form-card .btn[type="submit"] {
  width: 100%;
  padding: 0.75rem;
    font-size: 18px;
    margin-top: 20px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px); /* Start off-screen */
    /* background-color: var(--primary-color); */ /* Removed background color */
    /* color: var(--text-color-light); */ /* Removed text color */
    padding: 10px 20px;
    border-radius: var(--radius); /* Changed border-radius */
    box-shadow: var(--shadow-md); /* Changed shadow */
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, visibility 0.4s ease-out;
    border: 1px solid transparent; /* Added border */
}

.notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* Slide into view */
}

/* Modals */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
    backdrop-filter: blur(5px); /* Blur effect */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--background-card);
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 500px;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    color: var(--foreground-heading);
}

.close-btn {
    color: var(--foreground-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--color-danger);
    text-decoration: none;
    cursor: pointer;
}

/* Camera Styles for Attendance */
.camera-section {
  margin-bottom: 1.5rem;
}

.camera-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 1rem;
  border: 2px dashed var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--muted);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--muted-foreground);
}

.camera-placeholder p {
  margin-top: 1rem;
  font-size: 0.9rem;
}

#checkinVideo, #checkoutVideo {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.selfie-preview {
  width: 100%;
  text-align: center;
  padding: 0;
}

.selfie-preview img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.camera-controls {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.camera-controls .btn {
  min-width: 120px;
  font-size: 0.9rem;
}

/* Mobile responsive for camera */
@media (max-width: 768px) {
  .camera-container {
    max-width: 100%;
    min-height: 180px;
  }

  .camera-controls {
    flex-direction: column;
    gap: 0.75rem;
  }

  .camera-controls .btn {
    width: 100%;
    min-width: auto;
  }

  .camera-placeholder {
    padding: 2rem 1rem;
  }

  #checkinVideo, #checkoutVideo {
    max-height: 250px;
  }

  .selfie-preview img {
    max-height: 250px;
  }
}

/* Enhanced Mobile Styles (320px - 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0.75rem 0.5rem;
  }

  .page-header {
    text-align: center;
    margin-bottom: 0.75rem;
  }

  .page-header h1 {
    font-size: 1.375rem;
    margin-bottom: 0.375rem;
  }

  .page-header p {
    font-size: 0.875rem;
  }

  /* Form grids stack on mobile */
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Form actions stack */
  .form-actions {
    flex-direction: column;
    gap: 0.625rem;
  }

  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Card improvements */
  .card {
    margin: 0.375rem 0;
    padding: 0.875rem;
  }

  .card-header {
    padding: 0.875rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
  }

  .card-header h2 {
    font-size: 1.125rem;
  }

  .card-body {
    padding: 0.875rem;
  }

  /* Button improvements */
  .btn {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
  }

  .btn-sm {
    padding: 0.4375rem 0.625rem;
    font-size: 0.75rem;
  }

  /* Table improvements */
  .data-table th,
  .data-table td {
    padding: 0.625rem 0.375rem;
    font-size: 0.8125rem;
  }

  /* Stats cards */
  .stat-card {
    padding: 1.25rem;
  }

  .stat-card-info h3 {
    font-size: 0.75rem;
  }

  .stat-card-info p {
    font-size: 1.5rem;
  }

  /* Action cards */
  .action-card {
    padding: 1.25rem;
  }

  .action-card h3 {
    font-size: 1rem;
  }

  .action-card p {
    font-size: 0.8125rem;
  }

  /* Navigation improvements */
  .nav-container {
    padding: 0.625rem 0.875rem;
  }

  .nav-brand a {
    font-size: 1.125rem;
  }

  .user-btn {
    padding: 0.4375rem;
  }

  /* Mobile navigation enhancements */
  .nav-menu.show {
    max-height: 50vh;
    overflow-y: auto;
  }

  .nav-link {
    padding: 0.75rem 0.875rem;
    border-radius: 0.375rem;
    margin-bottom: 0.1875rem;
  }

  .nav-link:hover {
    background: var(--accent);
    transform: none;
  }

  .user-dropdown {
    position: relative;
  }

  .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 160px;
    box-shadow: var(--shadow-lg);
  }

  .dropdown-menu.show {
    animation: slideDown 0.2s ease-out;
  }

  .dropdown-menu a {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
  }

  /* Modal improvements */
  .modal {
    margin: 1rem;
    max-width: calc(100vw - 2rem);
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem 1.25rem;
  }

  .modal-title {
    font-size: 1.25rem;
  }
}

/* Small mobile (320px - 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0.625rem 0.375rem;
  }

  .page-header h1 {
    font-size: 1.25rem;
  }

  .stat-card-info p {
    font-size: 1.375rem;
  }

  .action-card-icon {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.375rem;
  }

  .action-card h3 {
    font-size: 0.9375rem;
  }

  .btn {
    padding: 0.5625rem 0.8125rem;
    font-size: 0.8125rem;
  }

  .btn-sm {
    padding: 0.375rem 0.625rem;
    font-size: 0.6875rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.5rem 0.25rem;
    font-size: 0.75rem;
  }

  .card {
    margin: 0.25rem 0;
    padding: 0.75rem;
  }

  .card-header,
  .card-body {
    padding: 0.75rem;
  }

  .nav-container {
    padding: 0.5rem 0.75rem;
  }

  .nav-brand a {
    font-size: 1rem;
  }
}

/* Page Actions */
.page-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .page-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .page-actions .btn {
    flex: 1;
    min-width: 0;
  }
}
