:root {
  /* Colors */
  --primary-color: #059669; /* Emerald Green */
  --primary-light: #34d399;
  --primary-dark: #047857;
  --accent-color: #f59e0b; /* Gold/Amber */
  --bg-color: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  /* Status Colors */
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;

  /* Typography */
  --font-family: 'Outfit', 'Inter', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  /* Radii */
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;
  
  /* Layout */
  --sidebar-width: 260px;
}

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

html, body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-y: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Utilities */
.text-primary { color: var(--primary-color); }
.text-accent { color: var(--accent-color); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }

.bg-primary { background-color: var(--primary-color); color: white; }
.bg-white { background-color: var(--bg-card); }

.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.text-center { text-align: center; }

.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-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

.w-full { width: 100%; }

/* Responsive spacing utilities */
@media (max-width: 1279px) {
  .mt-6 { margin-top: 1.25rem; }
  .mb-6 { margin-bottom: 1.25rem; }
  .p-6 { padding: 1.25rem; }
}

@media (max-width: 767px) {
  .mt-4 { margin-top: 0.75rem; }
  .mt-6 { margin-top: 1rem; }
  .mb-4 { margin-bottom: 0.75rem; }
  .mb-6 { margin-bottom: 1rem; }
  .p-4 { padding: 0.75rem; }
  .p-6 { padding: 1rem; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  gap: 0.5rem;
  font-size: 0.95rem;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(5, 150, 105, 0.39);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.23);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-danger {
  background-color: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
}
.btn-danger:hover {
  background-color: var(--danger);
  color: white;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* Responsive buttons */
@media (max-width: 1279px) {
  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  
  .btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }
  
  /* Full width buttons on mobile when needed */
  .btn-mobile-full {
    width: 100%;
  }
}

/* Forms */
.form-group {
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
}

.form-label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-main);
  font-size: 0.95rem;
}

.form-control {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #fff;
  color: var(--text-main);
  width: 100%;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Responsive form grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 1279px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-grid-full {
  grid-column: 1 / -1;
}

/* Cards (Glassmorphism inspired light cards) */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Layout - Dashboard */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background-color: #fff;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: fixed;
  height: 100vh;
  z-index: 100;
}

.sidebar.collapsed {
  transform: translateX(-100%);
}

.sidebar-brand {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
}

.sidebar-brand i {
  font-size: 1.75rem;
  color: var(--accent-color);
}

.sidebar-menu {
  padding: 1rem 0;
  flex: 1;
  overflow-y: auto;
}

.menu-label {
  padding: 0.5rem 1.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 1rem;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  color: var(--text-main);
  gap: 1rem;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.menu-item i {
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.menu-item:hover, .menu-item.active {
  background-color: rgba(5, 150, 105, 0.05);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
}

.menu-item:hover i, .menu-item.active i {
  color: var(--primary-color);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: all 0.3s ease;
}

.main-content.expanded {
  margin-left: 0;
}

/* Topbar */
.topbar {
  height: 70px;
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.toggle-sidebar {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: background 0.2s;
}

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

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
}

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

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
}

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

/* Page Content */
.page-content {
  padding: 1.5rem;
  flex: 1;
  overflow-x: hidden;
}

.page-header {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  min-height: 50px;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  flex: 1;
  min-width: 200px;
}

.page-header .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Responsive page content */
@media (max-width: 1279px) {
  .page-content {
    padding: 1.25rem;
  }
  
  .page-title {
    font-size: 1.35rem;
  }
}

@media (max-width: 1023px) {
  .page-content {
    padding: 1rem;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .page-title {
    font-size: 1.25rem;
    width: 100%;
  }
  
  .page-header .btn {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .page-content {
    padding: 0.75rem;
  }
  
  .page-header {
    margin-bottom: 1rem;
  }
  
  .page-title {
    font-size: 1.15rem;
  }
  
  .page-header .btn {
    width: 100%;
  }
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  display: flex;
  align-items: flex-start;
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  min-height: 130px;
  width: 100%;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-right: 1.25rem;
  flex-shrink: 0;
}

.stat-icon.primary { background-color: rgba(5, 150, 105, 0.1); color: var(--primary-color); }
.stat-icon.accent { background-color: rgba(245, 158, 11, 0.1); color: var(--accent-color); }
.stat-icon.danger { background-color: rgba(239, 68, 68, 0.1); color: var(--danger); }
.stat-icon.info { background-color: rgba(59, 130, 246, 0.1); color: var(--info); }

.stat-details {
  flex: 1;
  min-width: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-details h3 {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.stat-details p {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
  table-layout: auto;
}

.table th, .table td {
  padding: 1rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
  vertical-align: middle;
}

.table th {
  background-color: var(--bg-color);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
  z-index: 10;
}

.table tbody tr {
  transition: background-color 0.2s;
}

.table tbody tr:hover {
  background-color: rgba(5, 150, 105, 0.02);
}

/* Allow text wrapping in specific columns */
.table td:nth-child(2),
.table td:nth-child(3) {
  white-space: normal;
  word-wrap: break-word;
  max-width: 200px;
}

/* Responsive table adjustments */
@media (max-width: 1439px) {
  .table {
    font-size: 0.9rem;
    min-width: 900px;
  }
  
  .table th, .table td {
    padding: 0.75rem 0.5rem;
  }
}

@media (max-width: 1279px) {
  .table {
    font-size: 0.85rem;
    min-width: 850px;
  }
  
  .table th, .table td {
    padding: 0.65rem 0.4rem;
  }
}

@media (max-width: 1023px) {
  .table {
    font-size: 0.8rem;
    min-width: 800px;
  }
  
  .table th, .table td {
    padding: 0.5rem 0.35rem;
  }
}

@media (max-width: 767px) {
  .table {
    font-size: 0.75rem;
    min-width: 700px;
  }
  
  .table th, .table td {
    padding: 0.5rem 0.3rem;
  }
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-success { background-color: rgba(16, 185, 129, 0.1); color: var(--success); }
.badge-danger { background-color: rgba(239, 68, 68, 0.1); color: var(--danger); }
.badge-warning { background-color: rgba(245, 158, 11, 0.1); color: var(--warning); }
.badge-info { background-color: rgba(59, 130, 246, 0.1); color: var(--info); }

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  transform: translateY(-20px) scale(0.95);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-close:hover {
  color: var(--danger);
}

.modal-body {
  padding: 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  flex-shrink: 0;
}

/* Responsive modals */
@media (max-width: 1023px) {
  .modal {
    max-width: 600px;
  }
}

@media (max-width: 767px) {
  .modal-overlay {
    padding: 0.5rem;
  }
  
  .modal {
    width: 100%;
    max-width: none;
    max-height: 95vh;
  }
  
  .modal-header {
    padding: 1rem;
  }
  
  .modal-title {
    font-size: 1.1rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .modal-footer {
    padding: 1rem;
    flex-direction: column;
  }
  
  .modal-footer .btn {
    width: 100%;
  }
}

/* Authentication Layout */
.auth-container {
  display: flex;
  height: 100vh;
  background-color: var(--bg-color);
  overflow: hidden;
}

.auth-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  position: relative;
  overflow: hidden;
  min-width: 400px;
}

.auth-left::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="%23ffffff" fill-opacity="0.05" d="M30,50 L50,30 L70,50 L50,70 Z"/></svg>');
  background-size: 150px;
}

.auth-left-content {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0 auto;
}

.auth-left h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-left p {
  font-size: 1rem;
  opacity: 0.9;
}

.auth-left-content .mt-6 i {
  font-size: 4rem !important;
}

.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background-color: #fff;
  overflow-y: auto;
  min-width: 400px;
}

.auth-form-wrapper {
  width: 100%;
  max-width: 400px;
  margin: auto 0;
}

.auth-form-wrapper h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.auth-form-wrapper p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.auth-form-wrapper .form-group {
  margin-bottom: 0.8rem;
}

.auth-form-wrapper .form-label {
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

.auth-form-wrapper .form-control {
  padding: 0.5rem 0.8rem;
  font-size: 0.95rem;
}

.auth-form-wrapper .btn {
  padding: 0.6rem 1.5rem;
  margin-top: 0.5rem !important;
}

.auth-form-wrapper .mt-6 {
  margin-top: 1rem !important;
}

.auth-form-wrapper .mb-4 {
  margin-bottom: 0.75rem !important;
}

/* Responsive auth layout */
@media (max-width: 1279px) {
  .auth-left {
    min-width: 350px;
  }
  
  .auth-left h1 {
    font-size: 2rem;
  }
  
  .auth-left p {
    font-size: 0.95rem;
  }
  
  .auth-right {
    min-width: 350px;
  }
}

@media (max-width: 1023px) {
  .auth-container {
    flex-direction: column;
  }
  
  .auth-left {
    min-width: auto;
    min-height: 250px;
    padding: 2rem 1.5rem;
  }
  
  .auth-left h1 {
    font-size: 1.75rem;
  }
  
  .auth-right {
    min-width: auto;
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 767px) {
  .auth-left {
    min-height: 200px;
    padding: 2rem 1rem;
  }
  
  .auth-left h1 {
    font-size: 1.5rem;
  }
  
  .auth-left p {
    font-size: 0.85rem;
  }
  
  .auth-left-content .mt-6 i {
    font-size: 3rem !important;
  }
  
  .auth-right {
    padding: 1.5rem 1rem;
  }
  
  .auth-form-wrapper {
    max-width: 100%;
  }
}

/* Alert/Toast Elements */
.alert {
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.alert-success { background-color: rgba(16, 185, 129, 0.1); color: var(--success); border-left: 4px solid var(--success); }
.alert-danger { background-color: rgba(239, 68, 68, 0.1); color: var(--danger); border-left: 4px solid var(--danger); }

/* Landing Page Styles */
.landing-header { 
  background-color: var(--primary-color); 
  color: white; 
  padding: 1rem 5%; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  box-shadow: var(--shadow-sm); 
}

.landing-brand { 
  font-size: 1.5rem; 
  font-weight: 700; 
  display: flex; 
  align-items: center; 
  gap: 0.5rem; 
}

.landing-nav { 
  display: flex; 
  gap: 1rem; 
}

.hero-section { 
  background: linear-gradient(135deg, rgba(5,150,105,0.1) 0%, rgba(5,150,105,0) 100%); 
  padding: 5rem 5%; 
  text-align: center; 
}

.hero-title { 
  font-size: 3rem; 
  color: var(--primary-dark); 
  margin-bottom: 1rem; 
  font-weight: 700; 
}

.hero-subtitle { 
  font-size: 1.2rem; 
  color: var(--text-muted); 
  max-width: 600px; 
  margin: 0 auto 2rem; 
}

.report-section { 
  padding: 4rem 5%; 
}

.filter-bar { 
  display: flex; 
  gap: 1rem; 
  margin-bottom: 2rem; 
  flex-wrap: wrap; 
}

/* Responsive Landing Page */
@media (max-width: 1279px) {
  .landing-header {
    padding: 1rem 3%;
  }
  
  .hero-section {
    padding: 4rem 3%;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .report-section {
    padding: 3rem 3%;
  }
}

@media (max-width: 1023px) {
  .landing-header {
    padding: 1rem 2%;
  }
  
  .landing-brand {
    font-size: 1.25rem;
  }
  
  .hero-section {
    padding: 3rem 2%;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .report-section {
    padding: 2rem 2%;
  }
}

@media (max-width: 767px) {
  .landing-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .landing-nav {
    width: 100%;
    justify-content: center;
  }
  
  .landing-nav .btn {
    flex: 1;
  }
  
  .hero-section {
    padding: 2rem 1rem;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
  }
  
  .report-section {
    padding: 1.5rem 1rem;
  }
  
  .filter-bar {
    flex-direction: column;
  }
  
  .filter-bar .form-group {
    width: 100%;
  }
  
  .filter-bar .form-control {
    width: 100%;
  }
  
  .filter-bar .btn {
    width: 100%;
  }
}

/* Responsive adjustments */

/* Extra Large Screens (1920px+) */
@media (min-width: 1920px) {
  :root {
    --sidebar-width: 280px;
  }
  
  .page-content {
    max-width: 1800px;
    margin: 0 auto;
    padding: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
  
  .card {
    padding: 2rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
}

/* Large Screens (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
  .page-content {
    padding: 1.75rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* Medium Laptop (1280px - 1439px) */
@media (min-width: 1280px) and (max-width: 1439px) {
  .page-content {
    padding: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
  }
  
  .stat-card {
    padding: 1.25rem;
    min-height: 120px;
  }
  
  .stat-details h3 {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .stat-details p {
    font-size: 1.35rem;
  }
}

/* Small Laptop (1024px - 1279px) */
@media (min-width: 1024px) and (max-width: 1279px) {
  :root {
    --sidebar-width: 240px;
  }
  
  .page-content {
    padding: 1.25rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .stat-card {
    padding: 1.25rem;
    min-height: 120px;
    align-items: flex-start;
  }
  
  .stat-icon {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
    margin-right: 1rem;
  }
  
  .stat-details h3 {
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: normal;
  }
  
  .stat-details p {
    font-size: 1.3rem;
    line-height: 1.3;
  }
  
  .page-title {
    font-size: 1.35rem;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  .table {
    min-width: 900px;
  }
  
  .table th, .table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }
  
  .form-control {
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
  }
  
  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }
  
  /* Adjust auth pages for small laptops */
  .auth-left h1 {
    font-size: 2rem;
  }
  
  .auth-left p {
    font-size: 0.95rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
}

/* Tablet & Mobile (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --sidebar-width: 220px;
  }
  
  .sidebar {
    transform: translateX(-100%);
    z-index: 1000;
  }
  
  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .page-content {
    padding: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .stat-card {
    min-height: 120px;
    align-items: flex-start;
  }
  
  .stat-details h3 {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .topbar {
    padding: 0 1rem;
  }
  
  .topbar-left .form-control {
    width: 180px;
  }
  
  .auth-container {
    flex-direction: column;
  }
  
  .auth-left {
    padding: 2rem;
    text-align: center;
  }
  
  .auth-right {
    padding: 2rem 1.5rem;
  }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    z-index: 1000;
  }
  
  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .page-content {
    padding: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .stat-card {
    flex-direction: row;
    align-items: flex-start;
    min-height: 110px;
  }
  
  .stat-details h3 {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  
  .stat-details p {
    font-size: 1.25rem;
  }
  
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .page-title {
    font-size: 1.25rem;
  }
  
  .topbar {
    padding: 0 0.75rem;
    height: 60px;
  }
  
  .topbar-left .form-group {
    display: none;
  }
  
  .user-info {
    display: none;
  }
  
  .auth-container {
    flex-direction: column;
  }
  
  .auth-left {
    padding: 2rem 1rem;
    text-align: center;
    min-height: 200px;
  }
  
  .auth-left h1 {
    font-size: 1.75rem;
  }
  
  .auth-left p {
    font-size: 0.9rem;
  }
  
  .auth-right {
    padding: 2rem 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  
  .form-control {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .card {
    padding: 1rem;
  }
  
  .modal {
    width: 95%;
    max-width: none;
  }
}

/* Utility classes for responsive layouts */
.flex-wrap {
  flex-wrap: wrap;
}

.flex-responsive {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Text overflow utilities */
.text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.text-wrap {
  white-space: normal;
  word-wrap: break-word;
}

@media (max-width: 1023px) {
  .flex-responsive {
    flex-direction: column;
  }
  
  .flex-responsive > * {
    width: 100% !important;
    min-width: 100% !important;
  }
}

/* Grid responsive utilities */
.grid-responsive-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.grid-responsive-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 1279px) {
  .grid-responsive-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .grid-responsive-2,
  .grid-responsive-3 {
    grid-template-columns: 1fr;
  }
}

/* Container max-width for better readability on large screens */
.container-responsive {
  max-width: 1600px;
  margin: 0 auto;
}

@media (min-width: 1920px) {
  .container-responsive {
    max-width: 1800px;
  }
}
