/* CSS Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Professional Design System Variables */
:root {
  /* Primary Color Palette */
  --primary: hsl(220, 70%, 50%);
  --primary-hover: hsl(220, 70%, 45%);
  --primary-light: hsl(220, 70%, 95%);
  --primary-gradient: linear-gradient(
    135deg,
    hsl(220, 70%, 50%),
    hsl(230, 70%, 60%)
  );

  /* Success/Accent Colors */
  --success: hsl(142, 71%, 45%);
  --success-light: hsl(142, 71%, 95%);
  --warning: hsl(38, 92%, 50%);
  --warning-light: hsl(38, 92%, 95%);
  --info: hsl(199, 89%, 48%);
  --info-light: hsl(199, 89%, 95%);
  --danger: hsl(0, 84%, 60%);
  --danger-light: hsl(0, 84%, 95%);

  /* Neutral Colors */
  --background: hsl(0, 0%, 100%);
  --background-alt: hsl(220, 14%, 96%);
  --surface: hsl(0, 0%, 100%);
  --surface-hover: hsl(220, 14%, 98%);

  /* Text Colors */
  --text-primary: hsl(220, 13%, 18%);
  --text-secondary: hsl(220, 9%, 46%);
  --text-muted: hsl(220, 9%, 64%);
  --text-white: hsl(0, 0%, 100%);

  /* Border Colors */
  --border: hsl(220, 14%, 91%);
  --border-light: hsl(220, 14%, 95%);
  --border-dark: hsl(220, 14%, 85%);

  /* Shadow System */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --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-primary: 0 10px 30px -10px hsl(220, 70%, 50% / 0.3);

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Transitions */
  --transition-fast: all 0.15s ease-in-out;
  --transition-normal: all 0.3s ease-in-out;
  --transition-slow: all 0.5s ease-in-out;

  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* Base Typography */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background-alt);
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Application Container */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: var(--space-2xl) 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.page-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.page-title i {
  font-size: var(--text-3xl);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.5;
}

/* Enhanced Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
  white-space: nowrap;
  min-height: 44px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-white);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* Enhanced Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.stat-icon-container {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.stat-icon-container.success {
  background: var(--success-light);
  color: var(--success);
}

.stat-icon-container.info {
  background: var(--info-light);
  color: var(--info);
}

.stat-icon {
  font-size: var(--text-xl);
}

.stat-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.stat-toggle-btn:hover {
  background: var(--surface-hover);
  color: var(--text-secondary);
}

.stat-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

.stat-value.stat-accent {
  color: var(--success);
}

.stat-description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.stat-trend-icon {
  color: var(--success);
}

/* Enhanced Card System */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.card-header {
  padding: var(--space-xl);
  border-bottom: 1px solid var(--border);
  background: var(--background-alt);
}

.card-title-section {
  margin-bottom: var(--space-lg);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.card-title i {
  color: var(--primary);
}

.card-content {
  padding: 0;
}

/* Enhanced Filters */
.filters-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.search-container {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.search-input {
  width: 100%;
  padding: var(--space-md) var(--space-md) var(--space-md) 3rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: var(--transition-fast);
  min-height: 48px;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

.filter-row {
  display: flex;
  gap: var(--space-md);
}

.filter-select {
  padding: var(--space-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  min-height: 48px;
  min-width: 150px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

/* Enhanced Table */
.table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.data-table th {
  background: var(--background-alt);
  padding: var(--space-lg);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.data-table th i {
  margin-right: var(--space-xs);
  color: var(--primary);
}

.checkbox-column {
  width: 60px;
  text-align: center;
}

.data-table td {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table tbody tr {
  transition: var(--transition-fast);
}

.data-table tbody tr:hover {
  background: var(--surface-hover);
}

/* Enhanced Table Content */
.request-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 250px;
}

.request-id {
  font-weight: 700;
  color: var(--primary);
  font-size: var(--text-sm);
}

.request-description {
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: var(--space-xs);
}

.request-author {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}

.category-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.category-name {
  font-weight: 600;
  color: var(--text-primary);
}

.subcategory-name {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.financial-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.amount-quantity {
  font-size: var(--text-sm);
}

.amount-quantity .amount {
  font-weight: 700;
  color: var(--text-primary);
}

.amount-quantity .quantity {
  color: var(--text-muted);
  margin-left: var(--space-xs);
}

.transaction-cost {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.total-amount {
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--primary);
}

.status-date {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

/* Enhanced Badge System */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.badge-secondary {
  background: var(--warning-light);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.badge-accent {
  background: var(--success-light);
  color: var(--success);
  border: 1px solid var(--success);
}

.badge-default {
  background: var(--info-light);
  color: var(--info);
  border: 1px solid var(--info);
}

/* Enhanced No Results */
.no-results {
  text-align: center;
  padding: var(--space-2xl);
}

.no-results-content {
  max-width: 400px;
  margin: 0 auto;
}

.no-results-icon {
  font-size: var(--text-4xl);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.no-results-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.no-results-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-md);
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-controls {
    display: flex;
  }

  .page-title {
    font-size: var(--text-3xl);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .filters-container {
    gap: var(--space-md);
  }

  .filter-row {
    flex-direction: column;
  }

  .data-table {
    font-size: var(--text-xs);
  }

  .data-table th,
  .data-table td {
    padding: var(--space-md);
  }

  .footer-main {
    flex-direction: column;
    gap: var(--space-xl);
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: var(--space-sm) var(--space-md);
  }

  .container {
    padding: 0 var(--space-sm);
  }

  .main-content {
    padding: var(--space-lg) 0;
  }

  .page-title {
    font-size: var(--text-2xl);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .header-actions {
    width: 100%;
  }

  .btn {
    flex: 1;
    justify-content: center;
  }

  .stat-card {
    padding: var(--space-lg);
  }

  .card-header {
    padding: var(--space-lg);
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Styles */
button:focus,
input:focus,
select:focus,
a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .top-nav,
  .footer,
  .header-actions,
  .filters-container {
    display: none !important;
  }

  .main-content {
    padding: 0;
  }

  .card {
    border: 1px solid #000;
    box-shadow: none;
  }

  .data-table th,
  .data-table td {
    border: 1px solid #000;
  }
}
/* Enhanced Table Content for Items */
.item-details-list {
  list-style-type: none;
  padding-left: var(--space-md);
  margin-top: var(--space-md);
  border-left: 2px solid var(--border-light);
}

.item-detail {
  padding: var(--space-sm) 0;
  border-bottom: 1px dashed var(--border-light);
}
.item-detail:last-child {
  border-bottom: none;
}

.item-description {
  font-weight: 600;
  color: var(--text-primary);
}

.item-meta {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-xs);
}

.item-subcategory {
  background-color: var(--background-alt);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* Loading Spinner */
.loading-spinner {
  border: 4px solid var(--border-light);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: var(--space-2xl) auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.stat-value div {
  font-size: var(--text-2xl); /* Adjust size for multiple lines */
  line-height: 1.4;
  margin-bottom: var(--space-xs);
}

.stat-value div:last-child {
  margin-bottom: 0;
}
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-tooltip);
  min-width: 300px;
  animation: slideIn 0.3s ease-out;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.notification-success {
  border-left: 4px solid var(--success);
}

.notification-error {
  border-left: 4px solid var(--danger);
}

.notification-warning {
  border-left: 4px solid var(--warning);
}

.notification-info {
  border-left: 4px solid var(--info);
}

/* Animations */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}
/* ===============================================
   REQUIRED ACTION COLUMN STYLES
   =============================================== */

/* Action Column Container */
.action-cell {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
  min-width: 180px;
}

/* Action Buttons */
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
  white-space: nowrap;
  min-height: 36px;
  width: 100%;
}

.action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Approve Button */
.action-btn-approve {
  background: linear-gradient(135deg, #10b981, #059669);
  color: var(--text-white);
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.action-btn-approve:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

/* Reject Button */
.action-btn-reject {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: var(--text-white);
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.action-btn-reject:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

/* Primary Action Button (View, Upload, Clear) */
.action-btn-primary {
  background: var(--primary-gradient);
  color: var(--text-white);
  box-shadow: var(--shadow-primary);
}

.action-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* Secondary/Info Text */
.action-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
  padding: var(--space-sm);
}

/* Loading State */
.action-btn-loading {
  position: relative;
  pointer-events: none;
}

.action-btn-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: var(--text-white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: var(--space-sm);
}

/* Modal Styles for "Coming Soon" */
.coming-soon-modal {
  display: none;
  position: fixed;
  z-index: var(--z-modal);
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-in-out;
}

.coming-soon-content {
  position: relative;
  background-color: var(--surface);
  margin: 15% auto;
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: slideDown 0.3s ease-in-out;
}

.coming-soon-icon {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: var(--space-lg);
}

.coming-soon-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.coming-soon-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.coming-soon-close {
  background: var(--primary-gradient);
  color: var(--text-white);
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.coming-soon-close:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .action-cell {
    min-width: 150px;
  }

  .action-btn {
    font-size: var(--text-xs);
    padding: var(--space-xs) var(--space-sm);
    min-height: 32px;
  }

  .coming-soon-content {
    width: 95%;
    padding: var(--space-xl);
  }
}
/* ===============================================
   ENHANCED RESPONSIVE DESIGN
   =============================================== */

/* Large Tablets and Small Desktops (1024px and below) */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-md);
  }

  .page-title {
    font-size: var(--text-3xl);
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
  }

  .data-table {
    font-size: var(--text-xs);
  }

  .data-table th,
  .data-table td {
    padding: var(--space-md);
  }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
  .main-content {
    padding: var(--space-xl) 0;
  }

  .page-title {
    font-size: var(--text-2xl);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .page-title i {
    font-size: var(--text-2xl);
  }

  .header-content {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-lg);
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .stat-card {
    padding: var(--space-lg);
  }

  .filters-container {
    gap: var(--space-md);
  }

  .filter-row {
    flex-direction: column;
    gap: var(--space-md);
  }

  .filter-select {
    width: 100%;
    min-width: auto;
  }

  /* Make table scrollable horizontally on small screens */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .data-table {
    min-width: 900px; /* Ensure table doesn't collapse */
  }

  /* Adjust action buttons for mobile */
  .action-cell {
    min-width: 140px;
    gap: var(--space-xs);
  }

  .action-btn {
    font-size: 0.75rem;
    padding: var(--space-xs) var(--space-sm);
    min-height: 32px;
  }

  .action-btn i {
    font-size: 0.875rem;
  }
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }

  .main-content {
    padding: var(--space-lg) 0;
  }

  .page-title {
    font-size: var(--text-xl);
  }

  .page-subtitle {
    font-size: var(--text-sm);
  }

  .stat-card {
    padding: var(--space-md);
  }

  .stat-icon-container {
    width: 40px;
    height: 40px;
  }

  .stat-icon {
    font-size: var(--text-lg);
  }

  .stat-value {
    font-size: var(--text-2xl);
  }

  .card-header {
    padding: var(--space-md);
  }

  .card-title {
    font-size: var(--text-base);
  }

  .search-input {
    font-size: var(--text-sm);
    padding: var(--space-sm) var(--space-sm) var(--space-sm) 2.5rem;
  }

  .filter-select {
    font-size: var(--text-sm);
    padding: var(--space-sm);
  }

  /* Further reduce table size on very small screens */
  .data-table {
    font-size: 0.7rem;
  }

  .data-table th,
  .data-table td {
    padding: var(--space-sm);
  }

  .request-details,
  .category-details,
  .financial-details {
    font-size: 0.7rem;
  }

  .request-id {
    font-size: 0.75rem;
  }

  .badge {
    font-size: 0.625rem;
    padding: 2px 6px;
  }

  /* Stack action buttons vertically on very small screens */
  .action-cell {
    min-width: 120px;
  }

  .action-btn {
    font-size: 0.7rem;
    padding: 6px 8px;
    min-height: 28px;
  }

  /* Make coming soon modal more mobile-friendly */
  .coming-soon-content {
    width: 95%;
    padding: var(--space-lg);
    margin: 20% auto;
  }

  .coming-soon-title {
    font-size: var(--text-xl);
  }

  .coming-soon-icon {
    font-size: 36px;
  }
}

/* Extra Small Devices (360px and below) */
@media (max-width: 360px) {
  .page-title {
    font-size: var(--text-lg);
  }

  .stat-value {
    font-size: var(--text-xl);
  }

  .data-table {
    min-width: 800px;
  }

  .action-btn {
    font-size: 0.65rem;
    padding: 4px 6px;
  }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .main-content {
    padding: var(--space-md) 0;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }

  .stat-card {
    padding: var(--space-sm);
  }

  .coming-soon-content {
    margin: 5% auto;
    padding: var(--space-md);
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Increase touch targets */
  .action-btn {
    min-height: 44px;
    min-width: 44px;
  }

  .filter-select,
  .search-input {
    min-height: 44px;
  }

  /* Add more spacing for better touch accuracy */
  .action-cell {
    gap: var(--space-sm);
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .data-table {
    /* Ensure text remains crisp on high-DPI screens */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}
/* Scroll indicator for mobile table */
@media (max-width: 768px) {
  .table-container::after {
    content: "← Scroll to see more →";
    display: block;
    text-align: center;
    padding: var(--space-sm);
    color: var(--text-muted);
    font-size: var(--text-xs);
    background: var(--background-alt);
    border-top: 1px solid var(--border);
  }

  .table-container::-webkit-scrollbar {
    height: 8px;
  }

  .table-container::-webkit-scrollbar-track {
    background: var(--background-alt);
  }

  .table-container::-webkit-scrollbar-thumb {
    background: var(--border-dark);
    border-radius: 4px;
  }

  .table-container::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
  }
}
/* ===============================================
   FIX: PREVENT HORIZONTAL PAGE SCROLL
   =============================================== */

/* Ensure body and html don't overflow horizontally */
html {
  overflow-x: hidden;
  width: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Ensure app container doesn't cause horizontal scroll */
.app-container {
  width: 100%;
  overflow-x: hidden;
}

/* Ensure main content doesn't overflow */
.main-content {
  width: 100%;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1400px;
  overflow-x: hidden;
}

/* ===============================================
   FIX: TABLE SCROLLING ONLY
   =============================================== */

/* Card should contain the overflow */
.card {
  width: 100%;
  overflow: hidden; /* Changed from visible to hidden */
}

.card-content {
  width: 100%;
  overflow: hidden;
}

/* Table container handles horizontal scrolling */
.table-container {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  /* Add scrollbar styling for better UX */
  scrollbar-width: thin;
  scrollbar-color: var(--border-dark) var(--background-alt);
}

/* Ensure table maintains minimum width on mobile */
.data-table {
  width: 100%;
  min-width: 900px; /* Minimum width to show all columns properly */
}

/* ===============================================
   MOBILE SPECIFIC FIXES
   =============================================== */

@media (max-width: 768px) {
  /* Ensure no elements exceed viewport width */
  * {
    max-width: 100vw;
  }
  
  /* Fix header to prevent horizontal movement */
  .top-nav {
    position: sticky;
    width: 100%;
    left: 0;
    right: 0;
    overflow-x: hidden;
  }
  
  /* Fix footer to prevent horizontal movement */
  footer {
    width: 100%;
    overflow-x: hidden;
    position: relative;
    left: 0;
    right: 0;
  }
  
  /* Ensure main sections don't overflow */
  .page-title,
  .page-subtitle,
  .stats-grid,
  .filters-container {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Card header should not overflow */
  .card-header {
    width: 100%;
    overflow-x: hidden;
  }
  
  /* Table container with clear scroll indication */
  .table-container {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
  }
  
  /* Enhanced scrollbar for mobile */
  .table-container::-webkit-scrollbar {
    height: 10px;
  }
  
  .table-container::-webkit-scrollbar-track {
    background: var(--background-alt);
    border-radius: 5px;
  }
  
  .table-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
  }
  
  .table-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
  }
  
  /* Scroll indicator */
  .table-container::after {
    content: "← Scroll to see more →";
    display: block;
    text-align: center;
    padding: var(--space-sm);
    color: var(--text-muted);
    font-size: var(--text-xs);
    background: var(--background-alt);
    border-top: 1px solid var(--border);
    position: sticky;
    left: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  /* Further ensure no horizontal overflow on very small screens */
  body {
    max-width: 100vw;
  }
  
  .container {
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
  }
  
  /* Reduce table minimum width slightly for very small screens */
  .data-table {
    min-width: 800px;
  }
  
  /* Ensure buttons don't cause overflow */
  .btn,
  .action-btn {
    max-width: 100%;
  }
}

/* ===============================================
   TABLET SPECIFIC FIXES
   =============================================== */

@media (min-width: 769px) and (max-width: 1024px) {
  /* Ensure proper containment on tablets */
  .table-container {
    border-radius: var(--radius-lg);
  }
  
  .data-table {
    min-width: 100%;
  }
}