/* Clean, Neat & Modern UI Design */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Deep Red & Maroon Color Palette */
:root {
  /* Primary Colors - Deep Red & Maroon */
  --primary-50: #fef2f2;
  --primary-100: #fee2e2;
  --primary-200: #fecaca;
  --primary-300: #fca5a5;
  --primary-400: #f87171;
  --primary-500: #ef4444;
  --primary-600: #dc2626;
  --primary-700: #b91c1c;
  --primary-800: #991b1b;
  --primary-900: #7f1d1d;
  --primary-950: #450a0a;
  
  /* Neutral Colors - Warm Gray */
  --neutral-50: #fafaf9;
  --neutral-100: #f5f5f4;
  --neutral-200: #e7e5e4;
  --neutral-300: #d6d3d1;
  --neutral-400: #a8a29e;
  --neutral-500: #78716c;
  --neutral-600: #57534e;
  --neutral-700: #44403c;
  --neutral-800: #292524;
  --neutral-900: #1c1917;
  --neutral-950: #0c0a09;
  
  /* Accent Colors - Complementary */
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;
  --accent-indigo: #4f46e5;
  --accent-purple: #7c3aed;
  --accent-cyan: #0891b2;
  
  /* Deep Red & Maroon Gradients */
  --gradient-primary: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  --gradient-secondary: linear-gradient(135deg, #7c3aed 0%, #dc2626 100%);
  --gradient-success: linear-gradient(135deg, #059669 0%, #047857 100%);
  --gradient-warning: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  --gradient-danger: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  --gradient-info: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  
  /* Enhanced Shadows with Red Tint */
  --shadow-xs: 0 1px 3px 0 rgba(220, 38, 38, 0.1), 0 1px 2px 0 rgba(220, 38, 38, 0.06);
  --shadow-sm: 0 1px 3px 0 rgba(220, 38, 38, 0.1), 0 1px 2px -1px rgba(220, 38, 38, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(220, 38, 38, 0.1), 0 2px 4px -1px rgba(220, 38, 38, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(220, 38, 38, 0.1), 0 4px 6px -2px rgba(220, 38, 38, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(220, 38, 38, 0.1), 0 8px 10px -6px rgba(220, 38, 38, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(220, 38, 38, 0.25);
}

/* Light Theme Only - Deep Red & Maroon */
/* Dark theme functionality removed - always uses light theme */

/* Force light theme regardless of device settings */
html, html[data-theme="dark"], html.theme-dark {
  /* Override any dark theme classes or attributes */
  color-scheme: light !important;
  forced-color-adjust: none;
}

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

html, body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--neutral-50);
  color: var(--neutral-900);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Mobile-first container */
.container {
  width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Clean Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--neutral-900);
  letter-spacing: -0.025em;
}

/* Dark theme rules removed - always uses light theme */

h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.25rem; font-weight: 600; }
h3 { font-size: 1.875rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 600; }
h5 { font-size: 1.25rem; font-weight: 500; }
h6 { font-size: 1.125rem; font-weight: 500; }

/* Clean Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
  outline: none;
}

.navbar-toggler-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Dark theme navbar rules removed - always uses light theme */

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-600);
  text-decoration: none;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--neutral-600) !important;
  transition: all 0.2s ease;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 0 0.25rem;
}

/* Dark theme nav-link rules removed - always uses light theme */

.navbar-nav .nav-link:hover {
  color: var(--primary-600) !important;
  background: var(--primary-50);
  transform: translateY(-1px);
}

/* Dark theme nav-link hover rules removed - always uses light theme */

.navbar-nav .nav-link.active {
  color: var(--primary-600) !important;
  background: var(--primary-50);
  font-weight: 600;
}

/* Dark theme nav-link active rules removed - always uses light theme */



/* Website Header */
.website-title {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 4px rgba(220, 38, 38, 0.2);
  position: relative;
}

.website-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  box-shadow: var(--shadow-md);
}

.website-subtitle {
  font-size: 1.25rem;
  color: var(--neutral-600);
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Dark theme website title/subtitle rules removed - always uses light theme */

/* Clean Cards */
.filter-section, .schedule-table, .umpire-request-form {
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: all 0.2s ease;
}

/* Dark theme filter-section rules removed - always uses light theme */

.filter-section:hover, .schedule-table:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-300);
}

/* Clean Tables */
.table-container {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
  margin-bottom: 1rem;
}

/* Mobile table improvements */
.table-responsive {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
}

/* Dark theme table-responsive rules removed - always uses light theme */

/* CRITICAL FIX: Ensure tables scroll horizontally on desktop */
.table-responsive {
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: var(--neutral-200);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: var(--neutral-400);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--neutral-500);
}

/* Ensure tables can scroll horizontally */
.table {
  min-width: 100%;
  width: max-content;
}

.table th,
.table td {
  white-space: nowrap;
  min-width: 120px;
}

/* Dark theme table-container rules removed - always uses light theme */

.table {
  margin: 0;
  color: var(--neutral-900);
  border-collapse: separate;
  border-spacing: 0;
}

/* Dark theme table rules removed - always uses light theme */

.table th {
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  padding: 1.25rem 1rem;
  border: none;
  position: sticky;
  top: 0;
  z-index: 10;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table th:first-child {
  border-top-left-radius: 12px;
}

.table th:last-child {
  border-top-right-radius: 12px;
}

.table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--neutral-200);
  vertical-align: middle;
  transition: all 0.2s ease;
}

/* Dark theme table td rules removed - always uses light theme */

.table tbody tr {
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background: var(--primary-50);
  transform: none;
}

/* Dark theme table tbody tr hover rules removed - always uses light theme */

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

/* Clean Buttons */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.95rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Mobile button improvements */
@media (max-width: 767.98px) {
  .btn {
    min-height: 44px;
    justify-content: center;
    text-align: center;
  }
  
  .btn-group {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  
  .btn-group .btn {
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
  }
  
  .btn-group .btn:last-child {
    margin-bottom: 0;
  }
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  background: var(--primary-700);
  box-shadow: var(--shadow-md);
}

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

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

.btn-outline-info {
  background: transparent;
  color: var(--accent-cyan);
  border: 2px solid var(--accent-cyan);
}

.btn-outline-info:hover {
  background: var(--accent-cyan);
  color: white;
}

.btn-outline-success {
  background: transparent;
  color: var(--accent-emerald);
  border: 2px solid var(--accent-emerald);
}

.btn-outline-success:hover {
  background: var(--accent-emerald);
  color: white;
}

.btn-outline-warning {
  background: transparent;
  color: var(--accent-amber);
  border: 2px solid var(--accent-amber);
}

.btn-outline-warning:hover {
  background: var(--accent-amber);
  color: white;
}

.btn-outline-danger {
  background: transparent;
  color: var(--accent-rose);
  border: 2px solid var(--accent-rose);
}

.btn-outline-danger:hover {
  background: var(--accent-rose);
  color: white;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

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

/* Clean Badges */
.badge {
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.badge.bg-primary {
  background: var(--primary-600) !important;
}

.badge.bg-success {
  background: var(--accent-emerald) !important;
}

.badge.bg-warning {
  background: var(--accent-amber) !important;
}

.badge.bg-danger {
  background: var(--accent-rose) !important;
}

.badge.bg-info {
  background: var(--accent-cyan) !important;
}

.badge.bg-secondary {
  background: var(--neutral-600) !important;
}

/* Clean Forms */
.form-control, .form-select {
  background: white;
  border: 2px solid var(--neutral-300);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  color: var(--neutral-900);
  font-size: 1rem;
  transition: all 0.2s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
  width: 100%;
  max-width: 100%;
}

/* Mobile form improvements */
@media (max-width: 767.98px) {
  .form-control, .form-select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem;
  }
  
  .form-control:focus, .form-select:focus {
    font-size: 16px;
  }
}

/* Dark theme form-control rules removed - always uses light theme */

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

.form-control::placeholder {
  color: var(--neutral-500);
}

.form-label {
  font-weight: 500;
  color: var(--neutral-700);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Dark theme form-label rules removed - always uses light theme */

/* Clean Alerts */
.alert {
  border-radius: 8px;
  padding: 1rem 1.5rem;
  border: none;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  position: relative;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Mobile alert improvements */
@media (max-width: 767.98px) {
  .alert {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
  }
  
  .alert-dismissible {
    padding-right: 3rem;
  }
  
  .alert-dismissible .btn-close {
    padding: 0.75rem;
    right: 0.5rem;
  }
}

.alert-primary {
  background: var(--primary-50);
  color: var(--primary-800);
  border-left: 4px solid var(--primary-500);
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border-left: 4px solid var(--accent-emerald);
}

.alert-warning {
  background: #fffbeb;
  color: #92400e;
  border-left: 4px solid var(--accent-amber);
}

.alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border-left: 4px solid var(--accent-rose);
}

.alert-info {
  background: #eff6ff;
  color: #1e40af;
  border-left: 4px solid var(--accent-cyan);
}

/* CSV Upload Area */
.csv-upload-area {
  border: 2px dashed var(--neutral-300);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  background: var(--neutral-50);
  transition: all 0.2s ease;
  cursor: pointer;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Mobile CSV upload improvements */
@media (max-width: 767.98px) {
  .csv-upload-area {
    padding: 2rem 1rem;
    min-height: 150px;
  }
  
  .csv-upload-area h5 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  .csv-upload-area p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }
}

/* Dark theme csv-upload-area rules removed - always uses light theme */

.csv-upload-area:hover {
  border-color: var(--primary-500);
  background: var(--primary-50);
  transform: translateY(-2px);
}

/* Dark theme csv-upload-area hover rules removed - always uses light theme */

/* Concession Info */
.concession-info {
  min-width: 180px;
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  border: 1px solid var(--neutral-200);
  margin-bottom: 1rem;
}

/* Mobile concession info improvements */
@media (max-width: 767.98px) {
  .concession-info {
    min-width: auto;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .concession-info h6 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .concession-info .badge {
    font-size: 0.7rem;
    padding: 0.375rem 0.5rem;
  }
}

/* Dark theme concession-info rules removed - always uses light theme */

.concession-info:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.concession-info .staff-info {
  background: #ecfdf5;
  border-left: 3px solid var(--accent-emerald);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  font-weight: 500;
  color: #065f46;
}

/* Dark theme concession-info staff-info rules removed - always uses light theme */

/* Status Indicators */
.status-pending {
  background: var(--accent-amber);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-approved {
  background: var(--accent-emerald);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-rejected {
  background: var(--accent-rose);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Loading and No Data States */
.loading, .no-data {
  color: var(--neutral-500);
  text-align: center;
  padding: 2rem;
  font-style: italic;
  font-size: 1rem;
}

.loading i {
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
  color: var(--primary-500);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Filter Section */
.filter-section {
  background: white;
}

/* Dark theme filter-section rules removed - always uses light theme */

.filter-section h5 {
  color: var(--neutral-900);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
}

/* Dark theme filter-section h5 rules removed - always uses light theme */

.filter-section h5 i {
  color: var(--primary-500);
  font-size: 1.25rem;
}

/* Game Schedules Specific Styles */
.schedule-table {
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
  overflow: hidden;
}

/* Dark theme schedule-table rules removed - always uses light theme */

.schedule-table .table {
  margin: 0;
  min-width: 100%;
  width: max-content;
}

/* CRITICAL FIX: Schedule table horizontal scrolling */
.schedule-table .table-responsive {
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  border: none;
  box-shadow: none;
}

.schedule-table .table th,
.schedule-table .table td {
  white-space: nowrap;
  min-width: 120px;
}

.schedule-table .table th {
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  padding: 1rem 0.75rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.schedule-table .table td {
  padding: 1rem 0.75rem;
  font-size: 0.9rem;
  vertical-align: middle;
}

.schedule-table .table td:first-child {
  font-weight: 600;
  color: var(--primary-600);
}

.schedule-table .table td:nth-child(2),
.schedule-table .table td:nth-child(3) {
  font-weight: 500;
}

.schedule-table .table td:nth-child(4),
.schedule-table .table td:nth-child(5) {
  color: var(--neutral-600);
  font-size: 0.85rem;
}

.schedule-table .table td:nth-child(6) {
  text-align: center;
}

.schedule-table .table td:last-child {
  text-align: center;
  white-space: nowrap;
}

/* Filter Controls */
.filter-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* Mobile filter controls improvements */
@media (max-width: 767.98px) {
  .filter-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .filter-controls .form-group {
    margin-bottom: 0.75rem;
  }
  
  .filter-controls .form-control,
  .filter-controls .form-select {
    width: 100%;
  }
  
  .filter-controls .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

.filter-controls .form-group {
  margin-bottom: 0;
  min-width: 150px;
}

.filter-controls .form-label {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: var(--neutral-600);
}

.filter-controls .form-control,
.filter-controls .form-select {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

/* Mobile-First Responsive Design */
/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  .website-title {
    font-size: 2rem;
    text-align: center;
  }
  
  .website-subtitle {
    font-size: 1rem;
    text-align: center;
  }
  
  .filter-section, .schedule-table, .umpire-request-form {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 12px;
  }
  
  .table-responsive {
    font-size: 0.75rem;
  }
  
  .btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .btn-group .btn {
    width: auto;
    margin-bottom: 0;
  }
  
  .filter-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  
  .filter-controls .form-group {
    min-width: auto;
    margin-bottom: 0.75rem;
  }
  
  .form-control, .form-select {
    padding: 0.75rem;
    font-size: 0.875rem;
  }
  
  .table th, .table td {
    padding: 0.5rem 0.25rem;
    font-size: 0.75rem;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0.75rem;
    text-align: center;
  }
  
  .alert {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
  
  .badge {
    font-size: 0.7rem;
    padding: 0.375rem 0.5rem;
  }
  
  .concession-info {
    min-width: auto;
    margin-bottom: 1rem;
  }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .website-title {
    font-size: 2.5rem;
  }
  
  .website-subtitle {
    font-size: 1.1rem;
  }
  
  .filter-section, .schedule-table, .umpire-request-form {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .table-responsive {
    font-size: 0.875rem;
  }
  
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }
  
  .filter-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-controls .form-group {
    min-width: auto;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .website-title {
    font-size: 3rem;
  }
  
  .website-subtitle {
    font-size: 1.2rem;
  }
  
  .filter-controls {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .filter-controls .form-group {
    min-width: 180px;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .website-title {
    font-size: 3.25rem;
  }
  
  .filter-controls {
    gap: 1.5rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .website-title {
    font-size: 3.5rem;
  }
  
  .filter-controls {
    gap: 2rem;
  }
}

/* Mobile Navigation Improvements */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
  }
  
  /* Dark theme navbar-collapse rules removed - always uses light theme */
  
  .navbar-nav .nav-link {
    text-align: center;
    margin: 0.25rem 0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
  }
  
  .navbar-nav .nav-link:hover {
    background: var(--primary-50);
    transform: translateY(-1px);
  }
  
  /* Dark theme navbar-nav nav-link hover rules removed - always uses light theme */
  
  .navbar-nav .nav-link.active {
    background: var(--primary-50);
    color: var(--primary-600) !important;
    font-weight: 600;
  }
  
  /* Dark theme navbar-nav nav-link active rules removed - always uses light theme */
}

/* Mobile navbar brand improvements */
@media (max-width: 767.98px) {
  .navbar-brand {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .navbar-brand i {
    font-size: 1.5rem;
  }
  
  .navbar-toggler {
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    outline: none;
  }
  
  .navbar-toggler-icon {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* Mobile Table Improvements */
@media (max-width: 767.98px) {
  .table-responsive {
    border-radius: 12px;
    overflow: hidden;
  }
  
  .table th {
    font-size: 0.75rem;
    padding: 0.75rem 0.5rem;
    white-space: nowrap;
  }
  
  .table td {
    font-size: 0.8rem;
    padding: 0.75rem 0.5rem;
  }
  
  .table td:last-child {
    text-align: center;
  }
}

/* CRITICAL FIX: Ensure proper table display on all devices */
.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

/* Fix table header alignment */
.table thead th {
  position: sticky;
  top: 0;
  background: var(--primary-50);
  z-index: 10;
}

/* Improve table row hover effects */
.table tbody tr:hover {
  background: var(--primary-50);
  transition: background-color 0.2s ease;
}

/* Fix button spacing and alignment */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  vertical-align: middle;
}

/* Improve form controls */
.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid var(--neutral-300);
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.25);
}
  
  /* Stack table cells on very small screens */
  @media (max-width: 575.98px) {
    .table, .table thead, .table tbody, .table th, .table td, .table tr {
      display: block;
    }
    
    .table thead tr {
      position: absolute;
      top: -9999px;
      left: -9999px;
    }
    
    .table tr {
      border: 1px solid var(--neutral-300);
      margin-bottom: 1rem;
      border-radius: 8px;
      background: white;
      box-shadow: var(--shadow-sm);
      padding: 0.5rem;
    }
    
    /* Dark theme table tr rules removed - always uses light theme */
    .table td {
      border: none;
      position: relative;
      padding-left: 50%;
      text-align: left;
      min-height: 2.5rem;
      display: flex;
      align-items: center;
      padding: 0.75rem 0.5rem 0.75rem 50%;
    }
    
    .table td:before {
      content: attr(data-label);
      position: absolute;
      left: 0.5rem;
      width: 45%;
      font-weight: 600;
      color: var(--primary-600);
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      display: flex;
      align-items: center;
      height: 100%;
    }
    
    .table td:last-child {
      text-align: left;
    }
    
    /* Special handling for action buttons */
    .table td:last-child {
      padding-left: 0.5rem;
      justify-content: center;
    }
    
    .table td:last-child:before {
      display: none;
    }
    
    /* Improve button layout in stacked view */
    .table td .btn {
      margin: 0.25rem;
      font-size: 0.75rem;
      padding: 0.5rem 0.75rem;
    }
    
    .table td .btn-group {
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: center;
    }
    
    .table td .btn-group .btn {
      margin: 0.25rem;
    }
  }
}

/* ===== MOBILE CARD LAYOUT ===== */
.mobile-cards-container {
  padding: 0 0.5rem;
  display: none; /* Hidden by default, shown only on mobile */
}

/* Show mobile cards on mobile devices */
@media (max-width: 767.98px) {
  .mobile-cards-container {
    display: block;
  }
  
  /* Hide desktop table on mobile */
  .table-responsive {
    display: none !important;
  }
}

/* Hide mobile cards on desktop */
@media (min-width: 768px) {
  .mobile-cards-container {
    display: none !important;
  }
  
  /* Show desktop table on desktop */
  .table-responsive {
    display: block !important;
  }
}

/* Desktop table horizontal scrolling - CRITICAL FIX */
.table-responsive {
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: var(--neutral-200);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: var(--neutral-400);
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: var(--neutral-500);
}

.table-responsive::-webkit-scrollbar-corner {
  background: var(--neutral-200);
}

/* Ensure tables can scroll horizontally on all devices */
.table {
  min-width: 100%;
  width: max-content;
}

.table th,
.table td {
  white-space: nowrap;
  min-width: 120px;
}

/* Mobile table scroll improvements */
@media (max-width: 767.98px) {
  .table-responsive {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    display: none !important; /* Hide desktop table on mobile */
  }
  
  .table-responsive::-webkit-scrollbar {
    height: 6px;
  }
  
  .table-responsive::-webkit-scrollbar-track {
    background: var(--neutral-200);
    border-radius: 3px;
  }
  
  .table-responsive::-webkit-scrollbar-thumb {
    background: var(--neutral-400);
    border-radius: 3px;
  }
  
  .table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-500);
  }
  
  /* Show mobile cards on mobile */
  .mobile-cards-container {
    display: block !important;
  }
}

/* Mobile Form Improvements */
@media (max-width: 767.98px) {
  .form-control, .form-select {
    margin-bottom: 1rem;
  }
  
  .form-label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }
  
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-group .btn {
    border-radius: 8px !important;
    margin-bottom: 0.5rem;
  }
  
  .btn-group .btn:last-child {
    margin-bottom: 0;
  }
  
  /* Improve form spacing */
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-check {
    margin-bottom: 1rem;
  }
  
  .form-check-input {
    margin-top: 0.25rem;
  }
  
  .form-check-label {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  /* Improve input groups */
  .input-group {
    margin-bottom: 1rem;
  }
  
  .input-group-text {
    font-size: 0.875rem;
    padding: 0.75rem;
  }
  
  /* Improve validation states */
  .form-control.is-valid,
  .form-control.is-invalid {
    background-size: 1.25rem;
    background-position: right 0.75rem center;
  }
  
  .valid-feedback,
  .invalid-feedback {
    font-size: 0.8rem;
    margin-top: 0.25rem;
  }
  
  /* Improve file inputs */
  .form-control[type="file"] {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
  
  .form-control[type="file"]::-webkit-file-upload-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 6px;
  }
}

/* Mobile Card Improvements */
@media (max-width: 767.98px) {
  .card {
    margin-bottom: 1rem;
    border-radius: 12px;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  /* Improve card headers */
  .card-header {
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  .card-footer {
    padding: 1rem;
  }
  
  /* Improve card text */
  .card-text {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  /* Improve card links */
  .card-link {
    font-size: 0.9rem;
    padding: 0.5rem 0;
  }
  
  /* Improve card images */
  .card-img-top {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }
  
  .card-img-bottom {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
  }
  
  /* Improve card overlays */
  .card-img-overlay {
    padding: 1rem;
  }
  
  .card-img-overlay .card-title {
    font-size: 1.2rem;
  }
  
  .card-img-overlay .card-text {
    font-size: 0.9rem;
  }
}

/* Mobile Search Improvements - Removed as search functionality was removed */

/* Mobile Filter Toggle - Removed as filters are now always visible */

/* Ensure filters are always visible */
.filter-section {
  display: block !important;
}

/* Mobile filter optimizations */
@media (max-width: 767.98px) {
  .filter-section {
    margin-bottom: 1.5rem;
  }
  
  .filters-container {
    padding: 1rem;
  }
  
  .filter-select {
    margin-bottom: 0.75rem;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .btn, .nav-link, .form-control, .form-select {
    min-height: 44px;
  }
  
  .table td, .table th {
    min-height: 44px;
  }
  
  .badge {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }
  
  /* Improve touch targets */
  .nav-link {
    padding: 0.75rem 1rem;
  }
  
  .dropdown-toggle {
    padding: 0.75rem 1rem;
  }
  
  .dropdown-item {
    padding: 0.75rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Improve scroll experience */
  .table-responsive {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  
  .table-responsive::-webkit-scrollbar {
    height: 6px;
  }
  
  .table-responsive::-webkit-scrollbar-track {
    background: var(--neutral-200);
    border-radius: 3px;
  }
  
  .table-responsive::-webkit-scrollbar-thumb {
    background: var(--neutral-400);
    border-radius: 3px;
  }
  
  .table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-500);
  }
}

/* Landscape orientation improvements */
@media (max-width: 767.98px) and (orientation: landscape) {
  .website-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }
  
  .website-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .filter-section, .schedule-table {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }
}

/* Mobile accessibility improvements */
@media (max-width: 767.98px) {
  /* Improve focus visibility */
  .btn:focus,
  .form-control:focus,
  .form-select:focus,
  .nav-link:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
  }
  
  /* Improve text contrast */
  .text-muted {
    color: var(--neutral-600) !important;
  }
  
  /* Improve button contrast */
  .btn-outline-primary {
    border-width: 2px;
  }
  
  .btn-outline-secondary {
    border-width: 2px;
  }
  
  /* Improve table readability */
  .table td {
    line-height: 1.4;
  }
  
  /* Improve form readability */
  .form-label {
    font-weight: 600;
    color: var(--neutral-800);
  }
  
  /* Dark theme form-label rules removed - always uses light theme */
}

/* Mobile performance improvements */
@media (max-width: 767.98px) {
  /* Reduce animations on mobile for better performance */
  .filter-section,
  .schedule-table,
  .btn,
  .badge,
  .alert {
    animation-duration: 0.2s;
  }
  
  /* Optimize transitions */
  .btn,
  .form-control,
  .form-select,
  .nav-link {
    transition: all 0.15s ease;
  }
  
  /* Reduce box shadows on mobile */
  .filter-section,
  .schedule-table,
  .table-container {
    box-shadow: var(--shadow-xs);
  }
}

/* Mobile user experience improvements */
@media (max-width: 767.98px) {
  /* Improve loading states */
  .loading {
    padding: 1.5rem;
    font-size: 0.9rem;
  }
  
  .loading i {
    font-size: 1.1rem;
  }
  
  /* Improve empty states */
  .no-data {
    padding: 1.5rem;
    font-size: 0.9rem;
  }
  
  /* Improve status indicators */
  .status-pending,
  .status-approved,
  .status-rejected {
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
    border-radius: 4px;
    text-align: center;
    display: inline-block;
    min-width: 80px;
  }
  
  /* Improve badge display */
  .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
  }
  
  /* Improve filter section spacing */
  .filter-section h5 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .filter-section h5 i {
    font-size: 1.1rem;
  }
  
  /* Improve table header */
  .table th {
    font-size: 0.7rem;
    padding: 0.75rem 0.5rem;
  }
  
  /* Improve table data */
  .table td {
    font-size: 0.8rem;
    padding: 0.75rem 0.5rem;
  }
}

/* Mobile print improvements */
@media print and (max-width: 767.98px) {
  .navbar,
  .filter-section,
  .btn,
  .alert {
    display: none !important;
  }
  
  .table {
    font-size: 0.7rem;
  }
  
  .table th,
  .table td {
    padding: 0.25rem;
  }
}

/* Mobile modal improvements */
@media (max-width: 767.98px) {
  .modal-dialog {
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }
  
  .modal-content {
    border-radius: 12px;
  }
  
  .modal-header {
    padding: 1rem;
    border-bottom: 1px solid var(--neutral-200);
  }
  
  .modal-title {
    font-size: 1.2rem;
    font-weight: 600;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .modal-footer {
    padding: 1rem;
    border-top: 1px solid var(--neutral-200);
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .modal-footer .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .modal-footer .btn:last-child {
    margin-bottom: 0;
  }
  
  /* Improve modal close button */
  .btn-close {
    padding: 0.5rem;
    margin: 0;
  }
}

/* Mobile dropdown improvements */
@media (max-width: 767.98px) {
  .dropdown-menu {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
    margin-top: 0.5rem;
  }
  
  .dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .dropdown-item:hover {
    background: var(--primary-50);
  }
  
  .dropdown-item:active {
    background: var(--primary-100);
  }
  
  .dropdown-divider {
    margin: 0.5rem 0;
  }
  
  .dropdown-header {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--neutral-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
}

/* Clean Animations */
.filter-section, .schedule-table, .btn, .badge, .alert {
  animation: fadeInUp 0.4s ease-out;
}

/* Mobile Utility Classes */
.d-mobile-none {
  display: none !important;
}

.d-mobile-block {
  display: block !important;
}

.d-mobile-flex {
  display: flex !important;
}

.d-mobile-inline {
  display: inline !important;
}

.d-mobile-inline-block {
  display: inline-block !important;
}

@media (min-width: 768px) {
  .d-mobile-none {
    display: initial !important;
  }
  
  .d-mobile-block {
    display: initial !important;
  }
  
  .d-mobile-flex {
    display: initial !important;
  }
  
  .d-mobile-inline {
    display: initial !important;
  }
  
  .d-mobile-inline-block {
    display: initial !important;
  }
}

/* Mobile tooltip and popover improvements */
@media (max-width: 767.98px) {
  .tooltip {
    font-size: 0.8rem;
    max-width: 200px;
  }
  
  .tooltip-inner {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
  }
  
  .popover {
    max-width: 280px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
  }
  
  .popover-header {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid var(--neutral-200);
  }
  
  .popover-body {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  .popover-arrow {
    display: none;
  }
}

/* Mobile progress bar improvements */
@media (max-width: 767.98px) {
  .progress {
    height: 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
  }
  
  .progress-bar {
    font-size: 0.75rem;
    line-height: 0.75rem;
  }
  
  .progress-bar-striped {
    background-size: 0.75rem 0.75rem;
  }
}

/* Mobile list improvements */
@media (max-width: 767.98px) {
  .list-group {
    border-radius: 8px;
    overflow: hidden;
  }
  
  .list-group-item {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-left: none;
    border-right: none;
  }
  
  .list-group-item:first-child {
    border-top: none;
  }
  
  .list-group-item:last-child {
    border-bottom: none;
  }
  
  .list-group-item-action {
    transition: all 0.2s ease;
  }
  
  .list-group-item-action:hover {
    background: var(--primary-50);
    transform: translateX(2px);
  }
  
  .list-group-item-action:active {
    background: var(--primary-100);
  }
}

/* Mobile pagination improvements */
@media (max-width: 767.98px) {
  .pagination {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
  }
  
  .page-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    min-width: 40px;
    text-align: center;
    border-radius: 6px;
  }
  
  .page-item.disabled .page-link {
    opacity: 0.5;
  }
  
  .page-item.active .page-link {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: white;
  }
  
  .page-link:hover {
    background: var(--primary-50);
    border-color: var(--primary-500);
    color: var(--primary-700);
  }
  
  .page-link:focus {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    outline: none;
  }
}

/* Mobile breadcrumb improvements */
@media (max-width: 767.98px) {
  .breadcrumb {
    padding: 0.75rem 1rem;
    background: var(--neutral-100);
    border-radius: 8px;
    margin-bottom: 1rem;
  }
  
  .breadcrumb-item {
    font-size: 0.85rem;
  }
  
  .breadcrumb-item + .breadcrumb-item::before {
    padding: 0 0.5rem;
    color: var(--neutral-500);
    content: ">";
  }
  
  .breadcrumb-item.active {
    color: var(--neutral-600);
    font-weight: 500;
  }
}

/* Mobile nav tabs improvements */
@media (max-width: 767.98px) {
  .nav-tabs {
    border-bottom: 1px solid var(--neutral-300);
    flex-wrap: wrap;
  }
  
  .nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--neutral-600);
    transition: all 0.2s ease;
    margin-bottom: 0;
  }
  
  .nav-tabs .nav-link:hover {
    border-color: transparent;
    background: var(--neutral-100);
    color: var(--neutral-800);
  }
  
  .nav-tabs .nav-link.active {
    border-color: var(--primary-500);
    color: var(--primary-600);
    background: transparent;
    font-weight: 600;
  }
  
  .nav-tabs .nav-link.disabled {
    color: var(--neutral-400);
    background: transparent;
    border-color: transparent;
  }
}

/* Mobile nav pills improvements */
@media (max-width: 767.98px) {
  .nav-pills .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    margin: 0.25rem;
    transition: all 0.2s ease;
  }
  
  .nav-pills .nav-link:hover {
    background: var(--primary-100);
    color: var(--primary-700);
    transform: translateY(-1px);
  }
  
  .nav-pills .nav-link.active {
    background: var(--primary-600);
    color: white;
    font-weight: 600;
  }
}

/* Mobile accordion improvements */
@media (max-width: 767.98px) {
  .accordion {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  
  .accordion-item {
    border: none;
    border-bottom: 1px solid var(--neutral-200);
  }
  
  .accordion-item:last-child {
    border-bottom: none;
  }
  
  .accordion-button {
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-800);
    background: var(--neutral-50);
    border: none;
    transition: all 0.2s ease;
  }
  
  .accordion-button:not(.collapsed) {
    background: var(--primary-50);
    color: var(--primary-700);
    box-shadow: none;
  }
  
  .accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    outline: none;
  }
  
  .accordion-button::after {
    width: 1rem;
    height: 1rem;
    background-size: 1rem;
  }
  
  .accordion-body {
    padding: 1rem;
    background: white;
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

/* Mobile collapse improvements */
@media (max-width: 767.98px) {
  .collapse {
    transition: all 0.3s ease;
  }
  
  .collapsing {
    transition: all 0.3s ease;
  }
  
  .collapse.show {
    animation: slideDown 0.3s ease-out;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Mobile spinner and loading improvements */
@media (max-width: 767.98px) {
  .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.15em;
  }
  
  .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.1em;
  }
  
  .spinner-grow {
    width: 1.5rem;
    height: 1.5rem;
  }
  
  .spinner-grow-sm {
    width: 1rem;
    height: 1rem;
  }
  
  /* Improve loading text */
  .loading-text {
    font-size: 0.9rem;
    color: var(--neutral-600);
    margin-top: 0.5rem;
  }
  
  /* Improve skeleton loading */
  .skeleton {
    background: linear-gradient(90deg, var(--neutral-200) 25%, var(--neutral-300) 50%, var(--neutral-200) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
  }
  
  @keyframes loading {
    0% {
      background-position: 200% 0;
    }
    100% {
      background-position: -200% 0;
    }
  }
  
  .skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .skeleton-text:last-child {
    width: 75%;
  }
  
  .skeleton-button {
    height: 2.5rem;
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Mobile offcanvas improvements */
@media (max-width: 767.98px) {
  .offcanvas {
    border-radius: 0;
    border: none;
    box-shadow: var(--shadow-2xl);
  }
  
  .offcanvas-header {
    padding: 1rem;
    border-bottom: 1px solid var(--neutral-200);
  }
  
  .offcanvas-title {
    font-size: 1.2rem;
    font-weight: 600;
  }
  
  .offcanvas-body {
    padding: 1rem;
  }
  
  .offcanvas-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
  }
}

/* Mobile sidebar improvements */
@media (max-width: 767.98px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    width: 100%;
    background: white;
    z-index: 1050;
    transition: all 0.3s ease;
    overflow-y: auto;
  }
  
  .sidebar.show {
    left: 0;
  }
  
  .sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--neutral-200);
    background: var(--primary-600);
    color: white;
  }
  
  .sidebar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
  }
  
  .sidebar-nav {
    padding: 1rem 0;
  }
  
  .sidebar-nav .nav-link {
    padding: 0.75rem 1rem;
    color: var(--neutral-700);
    border-radius: 0;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
  }
  
  .sidebar-nav .nav-link:hover {
    background: var(--primary-50);
    color: var(--primary-700);
    border-left-color: var(--primary-500);
  }
  
  .sidebar-nav .nav-link.active {
    background: var(--primary-100);
    color: var(--primary-700);
    border-left-color: var(--primary-600);
    font-weight: 600;
  }
}

/* Mobile grid and flexbox improvements */
@media (max-width: 767.98px) {
  /* Improve row spacing */
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .row > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  /* Improve column spacing */
  .col,
  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    margin-bottom: 1rem;
  }
  
  /* Improve flexbox behavior */
  .d-flex {
    flex-wrap: wrap;
  }
  
  .justify-content-between {
    justify-content: center;
    gap: 1rem;
  }
  
  .justify-content-around {
    justify-content: center;
    gap: 1rem;
  }
  
  .align-items-center {
    align-items: flex-start;
  }
  
  /* Improve gap utilities */
  .gap-1 { gap: 0.5rem !important; }
  .gap-2 { gap: 1rem !important; }
  .gap-3 { gap: 1.5rem !important; }
  .gap-4 { gap: 2rem !important; }
  .gap-5 { gap: 3rem !important; }
  
  /* Improve order utilities */
  .order-first {
    order: -1 !important;
  }
  
  .order-last {
    order: 999 !important;
  }
}

/* Mobile text and typography improvements */
@media (max-width: 767.98px) {
  /* Improve text alignment */
  .text-center {
    text-align: center !important;
  }
  
  .text-left {
    text-align: left !important;
  }
  
  .text-right {
    text-align: right !important;
  }
  
  /* Improve text sizing */
  .fs-1 { font-size: 2rem !important; }
  .fs-2 { font-size: 1.75rem !important; }
  .fs-3 { font-size: 1.5rem !important; }
  .fs-4 { font-size: 1.25rem !important; }
  .fs-5 { font-size: 1.125rem !important; }
  .fs-6 { font-size: 1rem !important; }
  
  /* Improve text weights */
  .fw-bold { font-weight: 700 !important; }
  .fw-bolder { font-weight: 800 !important; }
  .fw-normal { font-weight: 400 !important; }
  .fw-light { font-weight: 300 !important; }
  .fw-lighter { font-weight: 200 !important; }
  
  /* Improve text colors */
  .text-primary { color: var(--primary-600) !important; }
  .text-secondary { color: var(--neutral-600) !important; }
  .text-success { color: var(--accent-emerald) !important; }
  .text-danger { color: var(--accent-rose) !important; }
  .text-warning { color: var(--accent-amber) !important; }
  .text-info { color: var(--accent-cyan) !important; }
  .text-muted { color: var(--neutral-500) !important; }
  
  /* Improve line heights */
  .lh-1 { line-height: 1 !important; }
  .lh-sm { line-height: 1.25 !important; }
  .lh-base { line-height: 1.5 !important; }
  .lh-lg { line-height: 2 !important; }
  
  /* Improve text decoration */
  .text-decoration-none { text-decoration: none !important; }
  .text-decoration-underline { text-decoration: underline !important; }
  .text-decoration-line-through { text-decoration: line-through !important; }
  
  /* Improve text transform */
  .text-uppercase { text-transform: uppercase !important; }
  .text-lowercase { text-transform: lowercase !important; }
  .text-capitalize { text-transform: capitalize !important; }
}

/* Mobile border and shadow improvements */
@media (max-width: 767.98px) {
  /* Improve border utilities */
  .border { border: 1px solid var(--neutral-300) !important; }
  .border-0 { border: 0 !important; }
  .border-top { border-top: 1px solid var(--neutral-300) !important; }
  .border-end { border-right: 1px solid var(--neutral-300) !important; }
  .border-bottom { border-bottom: 1px solid var(--neutral-300) !important; }
  .border-start { border-left: 1px solid var(--neutral-300) !important; }
  
  /* Improve border colors */
  .border-primary { border-color: var(--primary-500) !important; }
  .border-secondary { border-color: var(--neutral-500) !important; }
  .border-success { border-color: var(--accent-emerald) !important; }
  .border-danger { border-color: var(--accent-rose) !important; }
  .border-warning { border-color: var(--accent-amber) !important; }
  .border-info { border-color: var(--accent-cyan) !important; }
  
  /* Improve border widths */
  .border-1 { border-width: 1px !important; }
  .border-2 { border-width: 2px !important; }
  .border-3 { border-width: 3px !important; }
  .border-4 { border-width: 4px !important; }
  .border-5 { border-width: 5px !important; }
  
  /* Improve border radius */
  .rounded { border-radius: 0.375rem !important; }
  .rounded-0 { border-radius: 0 !important; }
  .rounded-1 { border-radius: 0.25rem !important; }
  .rounded-2 { border-radius: 0.5rem !important; }
  .rounded-3 { border-radius: 0.75rem !important; }
  .rounded-4 { border-radius: 1rem !important; }
  .rounded-5 { border-radius: 1.5rem !important; }
  .rounded-circle { border-radius: 50% !important; }
  .rounded-pill { border-radius: 50rem !important; }
  
  /* Improve shadow utilities */
  .shadow { box-shadow: var(--shadow-sm) !important; }
  .shadow-sm { box-shadow: var(--shadow-xs) !important; }
  .shadow-lg { box-shadow: var(--shadow-sm) !important; }
  .shadow-xl { box-shadow: var(--shadow-md) !important; }
  .shadow-2xl { box-shadow: var(--shadow-lg) !important; }
  .shadow-none { box-shadow: none !important; }
}

/* Mobile background and position improvements */
@media (max-width: 767.98px) {
  /* Improve background utilities */
  .bg-primary { background-color: var(--primary-600) !important; }
  .bg-secondary { background-color: var(--neutral-600) !important; }
  .bg-success { background-color: var(--accent-emerald) !important; }
  .bg-danger { background-color: var(--accent-rose) !important; }
  .bg-warning { background-color: var(--accent-amber) !important; }
  .bg-info { background-color: var(--accent-cyan) !important; }
  .bg-light { background-color: var(--neutral-100) !important; }
  .bg-dark { background-color: var(--neutral-800) !important; }
  .bg-white { background-color: white !important; }
  .bg-transparent { background-color: transparent !important; }
  
  /* Improve background gradients */
  .bg-gradient {
    background: var(--gradient-primary) !important;
  }
  
  .bg-gradient-primary {
    background: var(--gradient-primary) !important;
  }
  
  .bg-gradient-secondary {
    background: var(--gradient-secondary) !important;
  }
  
  .bg-gradient-success {
    background: var(--gradient-success) !important;
  }
  
  .bg-gradient-warning {
    background: var(--gradient-warning) !important;
  }
  
  .bg-gradient-danger {
    background: var(--gradient-danger) !important;
  }
  
  .bg-gradient-info {
    background: var(--gradient-info) !important;
  }
  
  /* Improve position utilities */
  .position-static { position: static !important; }
  .position-relative { position: relative !important; }
  .position-absolute { position: absolute !important; }
  .position-fixed { position: fixed !important; }
  .position-sticky { position: sticky !important; }
  
  /* Improve top, right, bottom, left utilities */
  .top-0 { top: 0 !important; }
  .top-50 { top: 50% !important; }
  .top-100 { top: 100% !important; }
  
  .bottom-0 { bottom: 0 !important; }
  .bottom-50 { bottom: 50% !important; }
  .bottom-100 { bottom: 100% !important; }
  
  .start-0 { left: 0 !important; }
  .start-50 { left: 50% !important; }
  .start-100 { left: 100% !important; }
  
  .end-0 { right: 0 !important; }
  .end-50 { right: 50% !important; }
  .end-100 { right: 100% !important; }
  
  /* Improve translate utilities */
  .translate-middle {
    transform: translate(-50%, -50%) !important;
  }
  
  .translate-middle-x {
    transform: translateX(-50%) !important;
  }
  
  .translate-middle-y {
    transform: translateY(-50%) !important;
  }
}

/* Mobile overflow and visibility improvements */
@media (max-width: 767.98px) {
  /* Improve overflow utilities */
  .overflow-auto { overflow: auto !important; }
  .overflow-hidden { overflow: hidden !important; }
  .overflow-visible { overflow: visible !important; }
  .overflow-scroll { overflow: scroll !important; }
  
  .overflow-x-auto { overflow-x: auto !important; }
  .overflow-x-hidden { overflow-x: hidden !important; }
  .overflow-x-visible { overflow-x: visible !important; }
  .overflow-x-scroll { overflow-x: scroll !important; }
  
  .overflow-y-auto { overflow-y: auto !important; }
  .overflow-y-hidden { overflow-y: hidden !important; }
  .overflow-y-visible { overflow-y: visible !important; }
  .overflow-y-scroll { overflow-y: scroll !important; }
  
  /* Improve visibility utilities */
  .visible { visibility: visible !important; }
  .invisible { visibility: hidden !important; }
  
  /* Improve display utilities */
  .d-none { display: none !important; }
  .d-inline { display: inline !important; }
  .d-inline-block { display: inline-block !important; }
  .d-block { display: block !important; }
  .d-grid { display: grid !important; }
  .d-table { display: table !important; }
  .d-table-row { display: table-row !important; }
  .d-table-cell { display: table-cell !important; }
  .d-flex { display: flex !important; }
  .d-inline-flex { display: inline-flex !important; }
  
  /* Improve flex utilities */
  .flex-row { flex-direction: row !important; }
  .flex-column { flex-direction: column !important; }
  .flex-row-reverse { flex-direction: row-reverse !important; }
  .flex-column-reverse { flex-direction: column-reverse !important; }
  
  .flex-wrap { flex-wrap: wrap !important; }
  .flex-nowrap { flex-wrap: nowrap !important; }
  .flex-wrap-reverse { flex-wrap: wrap-reverse !important; }
  
  .justify-content-start { justify-content: flex-start !important; }
  .justify-content-end { justify-content: flex-end !important; }
  .justify-content-center { justify-content: center !important; }
  .justify-content-between { justify-content: space-between !important; }
  .justify-content-around { justify-content: space-around !important; }
  .justify-content-evenly { justify-content: space-evenly !important; }
  
  .align-items-start { align-items: flex-start !important; }
  .align-items-end { align-items: flex-end !important; }
  .align-items-center { align-items: center !important; }
  .align-items-baseline { align-items: baseline !important; }
  .align-items-stretch { align-items: stretch !important; }
  
  .align-self-start { align-self: flex-start !important; }
  .align-self-end { align-self: flex-end !important; }
  .align-self-center { align-self: center !important; }
  .align-self-baseline { align-self: baseline !important; }
  .align-self-stretch { align-self: stretch !important; }
  
  .flex-fill { flex: 1 1 auto !important; }
  .flex-grow-0 { flex-grow: 0 !important; }
  .flex-grow-1 { flex-grow: 1 !important; }
  .flex-shrink-0 { flex-shrink: 0 !important; }
  .flex-shrink-1 { flex-shrink: 1 !important; }
}

/* Mobile float and clear improvements */
@media (max-width: 767.98px) {
  /* Improve float utilities */
  .float-start { float: left !important; }
  .float-end { float: right !important; }
  .float-none { float: none !important; }
  
  /* Improve clear utilities */
  .clearfix::after {
    content: "";
    clear: both;
    display: table;
  }
  
  .clear-start { clear: left !important; }
  .clear-end { clear: right !important; }
  .clear-both { clear: both !important; }
  .clear-none { clear: none !important; }
  
  /* Improve user select utilities */
  .user-select-all { user-select: all !important; }
  .user-select-auto { user-select: auto !important; }
  .user-select-none { user-select: none !important; }
  
  /* Improve pointer events utilities */
  .pe-none { pointer-events: none !important; }
  .pe-auto { pointer-events: auto !important; }
  
  /* Improve resize utilities */
  .resize { resize: both !important; }
  .resize-none { resize: none !important; }
  .resize-y { resize: vertical !important; }
  .resize-x { resize: horizontal !important; }
  
  /* Improve cursor utilities */
  .cursor-auto { cursor: auto !important; }
  .cursor-default { cursor: default !important; }
  .cursor-pointer { cursor: pointer !important; }
  .cursor-move { cursor: move !important; }
  .cursor-text { cursor: text !important; }
  .cursor-wait { cursor: wait !important; }
  .cursor-help { cursor: help !important; }
  .cursor-progress { cursor: progress !important; }
  .cursor-crosshair { cursor: crosshair !important; }
  .cursor-zoom-in { cursor: zoom-in !important; }
  .cursor-zoom-out { cursor: zoom-out !important; }
  .cursor-grab { cursor: grab !important; }
  .cursor-grabbing { cursor: grabbing !important; }
  .cursor-not-allowed { cursor: not-allowed !important; }
}

/* Mobile z-index and transform improvements */
@media (max-width: 767.98px) {
  /* Improve z-index utilities */
  .z-n1 { z-index: -1 !important; }
  .z-0 { z-index: 0 !important; }
  .z-1 { z-index: 1 !important; }
  .z-2 { z-index: 2 !important; }
  .z-3 { z-index: 3 !important; }
  .z-999 { z-index: 999 !important; }
  .z-9999 { z-index: 9999 !important; }
  .z-max { z-index: 2147483647 !important; }
  
  /* Improve transform utilities */
  .transform-none { transform: none !important; }
  .transform-scale-0 { transform: scale(0) !important; }
  .transform-scale-50 { transform: scale(0.5) !important; }
  .transform-scale-75 { transform: scale(0.75) !important; }
  .transform-scale-90 { transform: scale(0.9) !important; }
  .transform-scale-95 { transform: scale(0.95) !important; }
  .transform-scale-100 { transform: scale(1) !important; }
  .transform-scale-105 { transform: scale(1.05) !important; }
  .transform-scale-110 { transform: scale(1.1) !important; }
  .transform-scale-125 { transform: scale(1.25) !important; }
  .transform-scale-150 { transform: scale(1.5) !important; }
  
  .transform-rotate-0 { transform: rotate(0deg) !important; }
  .transform-rotate-45 { transform: rotate(45deg) !important; }
  .transform-rotate-90 { transform: rotate(90deg) !important; }
  .transform-rotate-180 { transform: rotate(180deg) !important; }
  .transform-rotate-270 { transform: rotate(270deg) !important; }
  
  .transform-translate-x-0 { transform: translateX(0) !important; }
  .transform-translate-x-1 { transform: translateX(0.25rem) !important; }
  .transform-translate-x-2 { transform: translateX(0.5rem) !important; }
  .transform-translate-x-3 { transform: translateX(1rem) !important; }
  .transform-translate-x-4 { transform: translateX(1.5rem) !important; }
  .transform-translate-x-5 { transform: translateX(3rem) !important; }
  .transform-translate-x-6 { transform: translateX(4rem) !important; }
  .transform-translate-x-8 { transform: translateX(6rem) !important; }
  .transform-translate-x-10 { transform: translateX(8rem) !important; }
  .transform-translate-x-12 { transform: translateX(10rem) !important; }
  .transform-translate-x-16 { transform: translateX(12rem) !important; }
  .transform-translate-x-20 { transform: translateX(15rem) !important; }
  .transform-translate-x-24 { transform: translateX(18rem) !important; }
  .transform-translate-x-32 { transform: translateX(24rem) !important; }
  .transform-translate-x-40 { transform: translateX(30rem) !important; }
  .transform-translate-x-48 { transform: translateX(36rem) !important; }
  .transform-translate-x-56 { transform: translateX(42rem) !important; }
  .transform-translate-x-64 { transform: translateX(48rem) !important; }
  .transform-translate-x-px { transform: translateX(1px) !important; }
  .transform-translate-x-0\.5 { transform: translateX(0.125rem) !important; }
  .transform-translate-x-1\.5 { transform: translateX(0.375rem) !important; }
  .transform-translate-x-2\.5 { transform: translateX(0.625rem) !important; }
  .transform-translate-x-3\.5 { transform: translateX(0.875rem) !important; }
  
  .transform-translate-y-0 { transform: translateY(0) !important; }
  .transform-translate-y-1 { transform: translateY(0.25rem) !important; }
  .transform-translate-y-2 { transform: translateY(0.5rem) !important; }
  .transform-translate-y-3 { transform: translateY(1rem) !important; }
  .transform-translate-y-4 { transform: translateY(1.5rem) !important; }
  .transform-translate-y-5 { transform: translateY(3rem) !important; }
  .transform-translate-y-6 { transform: translateY(4rem) !important; }
  .transform-translate-y-8 { transform: translateY(6rem) !important; }
  .transform-translate-y-10 { transform: translateY(8rem) !important; }
  .transform-translate-y-12 { transform: translateY(10rem) !important; }
  .transform-translate-y-16 { transform: translateY(12rem) !important; }
  .transform-translate-y-20 { transform: translateY(15rem) !important; }
  .transform-translate-y-24 { transform: translateY(18rem) !important; }
  .transform-translate-y-32 { transform: translateY(24rem) !important; }
  .transform-translate-y-40 { transform: translateY(30rem) !important; }
  .transform-translate-y-48 { transform: translateY(36rem) !important; }
  .transform-translate-y-56 { transform: translateY(42rem) !important; }
  .transform-translate-y-64 { transform: translateY(48rem) !important; }
  .transform-translate-y-px { transform: translateY(1px) !important; }
  .transform-translate-y-0\.5 { transform: translateY(0.125rem) !important; }
  .transform-translate-y-1\.5 { transform: translateY(0.375rem) !important; }
  .transform-translate-y-2\.5 { transform: translateY(0.625rem) !important; }
  .transform-translate-y-3\.5 { transform: translateY(0.875rem) !important; }
  
  .transform-translate-0 { transform: translate(0, 0) !important; }
  .transform-translate-1 { transform: translate(0.25rem, 0.25rem) !important; }
  .transform-translate-2 { transform: translate(0.5rem, 0.5rem) !important; }
  .transform-translate-3 { transform: translate(1rem, 1rem) !important; }
  .transform-translate-4 { transform: translate(1.5rem, 1.5rem) !important; }
  .transform-translate-5 { transform: translate(3rem, 3rem) !important; }
  .transform-translate-6 { transform: translate(4rem, 4rem) !important; }
  .transform-translate-8 { transform: translate(6rem, 6rem) !important; }
  .transform-translate-10 { transform: translate(8rem, 8rem) !important; }
  .transform-translate-12 { transform: translate(10rem, 10rem) !important; }
  .transform-translate-16 { transform: translate(12rem, 12rem) !important; }
  .transform-translate-20 { transform: translate(15rem, 15rem) !important; }
  .transform-translate-24 { transform: translate(18rem, 18rem) !important; }
  .transform-translate-32 { transform: translate(24rem, 24rem) !important; }
  .transform-translate-40 { transform: translate(30rem, 30rem) !important; }
  .transform-translate-48 { transform: translate(36rem, 36rem) !important; }
  .transform-translate-56 { transform: translate(42rem, 42rem) !important; }
  .transform-translate-64 { transform: translate(48rem, 48rem) !important; }
  .transform-translate-px { transform: translate(1px, 1px) !important; }
  .transform-translate-0\.5 { transform: translate(0.125rem, 0.125rem) !important; }
  .transform-translate-1\.5 { transform: translate(0.375rem, 0.375rem) !important; }
  .transform-translate-2\.5 { transform: translate(0.625rem, 0.625rem) !important; }
  .transform-translate-3\.5 { transform: translate(0.875rem, 0.875rem) !important; }
  
  .transform-translate-x-1\/2 { transform: translateX(50%) !important; }
  .transform-translate-x-1\/3 { transform: translateX(33.333333%) !important; }
  .transform-translate-x-2\/3 { transform: translateX(66.666667%) !important; }
  .transform-translate-x-1\/4 { transform: translateX(25%) !important; }
  .transform-translate-x-2\/4 { transform: translateX(50%) !important; }
  .transform-translate-x-3\/4 { transform: translateX(75%) !important; }
  .transform-translate-x-1\/5 { transform: translateX(20%) !important; }
  .transform-translate-x-2\/5 { transform: translateX(40%) !important; }
  .transform-translate-x-3\/5 { transform: translateX(60%) !important; }
  .transform-translate-x-4\/5 { transform: translateX(80%) !important; }
  .transform-translate-x-1\/6 { transform: translateX(16.666667%) !important; }
  .transform-translate-x-2\/6 { transform: translateX(33.333333%) !important; }
  .transform-translate-x-3\/6 { transform: translateX(50%) !important; }
  .transform-translate-x-4\/6 { transform: translateX(66.666667%) !important; }
  .transform-translate-x-5\/6 { transform: translateX(83.333333%) !important; }
  .transform-translate-x-1\/12 { transform: translateX(8.333333%) !important; }
  .transform-translate-x-2\/12 { transform: translateX(16.666667%) !important; }
  .transform-translate-x-3\/12 { transform: translateX(25%) !important; }
  .transform-translate-x-4\/12 { transform: translateX(33.333333%) !important; }
  .transform-translate-x-5\/12 { transform: translateX(41.666667%) !important; }
  .transform-translate-x-6\/12 { transform: translateX(50%) !important; }
  .transform-translate-x-7\/12 { transform: translateX(58.333333%) !important; }
  .transform-translate-x-8\/12 { transform: translateX(66.666667%) !important; }
  .transform-translate-x-9\/12 { transform: translateX(75%) !important; }
  .transform-translate-x-10\/12 { transform: translateX(83.333333%) !important; }
  .transform-translate-x-11\/12 { transform: translateX(91.666667%) !important; }
  .transform-translate-x-full { transform: translateX(100%) !important; }
  
  .transform-translate-y-1\/2 { transform: translateY(50%) !important; }
  .transform-translate-y-1\/3 { transform: translateY(33.333333%) !important; }
  .transform-translate-y-2\/3 { transform: translateY(66.666667%) !important; }
  .transform-translate-y-1\/4 { transform: translateY(25%) !important; }
  .transform-translate-y-2\/4 { transform: translateY(50%) !important; }
  .transform-translate-y-3\/4 { transform: translateY(75%) !important; }
  .transform-translate-y-1\/5 { transform: translateY(20%) !important; }
  .transform-translate-y-2\/5 { transform: translateY(40%) !important; }
  .transform-translate-y-3\/5 { transform: translateY(60%) !important; }
  .transform-translate-y-4\/5 { transform: translateY(80%) !important; }
  .transform-translate-y-1\/6 { transform: translateY(16.666667%) !important; }
  .transform-translate-y-2\/6 { transform: translateY(33.333333%) !important; }
  .transform-translate-y-3\/6 { transform: translateY(50%) !important; }
  .transform-translate-y-4\/6 { transform: translateY(66.666667%) !important; }
  .transform-translate-y-5\/6 { transform: translateY(83.333333%) !important; }
  .transform-translate-y-1\/12 { transform: translateY(8.333333%) !important; }
  .transform-translate-y-2\/12 { transform: translateY(16.666667%) !important; }
  .transform-translate-y-3\/12 { transform: translateY(25%) !important; }
  .transform-translate-y-4\/12 { transform: translateY(33.333333%) !important; }
  .transform-translate-y-5\/12 { transform: translateY(41.666667%) !important; }
  .transform-translate-y-6\/12 { transform: translateY(50%) !important; }
  .transform-translate-y-7\/12 { transform: translateY(58.333333%) !important; }
  .transform-translate-y-8\/12 { transform: translateY(66.666667%) !important; }
  .transform-translate-y-9\/12 { transform: translateY(75%) !important; }
  .transform-translate-y-10\/12 { transform: translateY(83.333333%) !important; }
  .transform-translate-y-11\/12 { transform: translateY(91.666667%) !important; }
  .transform-translate-y-full { transform: translateY(100%) !important; }
  
  .transform-translate-1\/2 { transform: translate(50%, 50%) !important; }
  .transform-translate-1\/3 { transform: translate(33.333333%, 33.333333%) !important; }
  .transform-translate-2\/3 { transform: translate(66.666667%, 66.666667%) !important; }
  .transform-translate-1\/4 { transform: translate(25%, 25%) !important; }
  .transform-translate-2\/4 { transform: translate(50%, 50%) !important; }
  .transform-translate-3\/4 { transform: translate(75%, 75%) !important; }
  .transform-translate-1\/5 { transform: translate(20%, 20%) !important; }
  .transform-translate-2\/5 { transform: translate(40%, 40%) !important; }
  .transform-translate-3\/5 { transform: translate(60%, 60%) !important; }
  .transform-translate-4\/5 { transform: translate(80%, 80%) !important; }
  .transform-translate-1\/6 { transform: translate(16.666667%, 16.666667%) !important; }
  .transform-translate-2\/6 { transform: translate(33.333333%, 33.333333%) !important; }
  .transform-translate-3\/6 { transform: translate(50%, 50%) !important; }
  .transform-translate-4\/6 { transform: translate(66.666667%, 66.666667%) !important; }
  .transform-translate-5\/6 { transform: translate(83.333333%, 83.333333%) !important; }
  .transform-translate-1\/12 { transform: translate(8.333333%, 8.333333%) !important; }
  .transform-translate-2\/12 { transform: translate(16.666667%, 16.666667%) !important; }
  .transform-translate-3\/12 { transform: translate(25%, 25%) !important; }
  .transform-translate-4\/12 { transform: translate(33.333333%, 33.333333%) !important; }
  .transform-translate-5\/12 { transform: translate(41.666667%, 41.666667%) !important; }
  .transform-translate-6\/12 { transform: translate(50%, 50%) !important; }
  .transform-translate-7\/12 { transform: translate(58.333333%, 58.333333%) !important; }
  .transform-translate-8\/12 { transform: translate(66.666667%, 66.666667%) !important; }
  .transform-translate-9\/12 { transform: translate(75%, 75%) !important; }
  .transform-translate-10\/12 { transform: translate(83.333333%, 83.333333%) !important; }
  .transform-translate-11\/12 { transform: translate(91.666667%, 91.666667%) !important; }
  .transform-translate-full { transform: translate(100%, 100%) !important; }
}

/* Mobile transition and animation improvements */
@media (max-width: 767.98px) {
  /* Improve transition utilities */
  .transition-none { transition: none !important; }
  .transition-all { transition: all 0.15s ease !important; }
  .transition { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, text-decoration-color 0.15s ease, fill 0.15s ease, stroke 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, filter 0.15s ease, backdrop-filter 0.15s ease !important; }
  .transition-colors { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, text-decoration-color 0.15s ease, fill 0.15s ease, stroke 0.15s ease !important; }
  .transition-opacity { transition: opacity 0.15s ease !important; }
  .transition-shadow { transition: box-shadow 0.15s ease !important; }
  .transition-transform { transition: transform 0.15s ease !important; }
  
  /* Improve transition duration utilities */
  .duration-75 { transition-duration: 75ms !important; }
  .duration-100 { transition-duration: 100ms !important; }
  .duration-150 { transition-duration: 150ms !important; }
  .duration-200 { transition-duration: 200ms !important; }
  .duration-300 { transition-duration: 300ms !important; }
  .duration-500 { transition-duration: 500ms !important; }
  .duration-700 { transition-duration: 700ms !important; }
  .duration-1000 { transition-duration: 1000ms !important; }
  
  /* Improve transition timing function utilities */
  .ease-linear { transition-timing-function: linear !important; }
  .ease-in { transition-timing-function: cubic-bezier(0.4, 0, 1, 1) !important; }
  .ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1) !important; }
  .ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; }
  
  /* Improve transition delay utilities */
  .delay-75 { transition-delay: 75ms !important; }
  .delay-100 { transition-delay: 100ms !important; }
  .delay-150 { transition-delay: 150ms !important; }
  .delay-200 { transition-delay: 200ms !important; }
  .delay-300 { transition-delay: 300ms !important; }
  .delay-500 { transition-delay: 500ms !important; }
  .delay-700 { transition-delay: 700ms !important; }
  .delay-1000 { transition-delay: 1000ms !important; }
  
  /* Improve animation utilities */
  .animate-none { animation: none !important; }
  .animate-spin { animation: spin 1s linear infinite !important; }
  .animate-ping { animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite !important; }
  .animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important; }
  .animate-bounce { animation: bounce 1s infinite !important; }
  
  /* Improve animation duration utilities */
  .animate-duration-75 { animation-duration: 75ms !important; }
  .animate-duration-100 { animation-duration: 100ms !important; }
  .animate-duration-150 { animation-duration: 150ms !important; }
  .animate-duration-200 { animation-duration: 200ms !important; }
  .animate-duration-300 { animation-duration: 300ms !important; }
  .animate-duration-500 { animation-duration: 500ms !important; }
  .animate-duration-700 { animation-duration: 700ms !important; }
  .animate-duration-1000 { animation-duration: 1000ms !important; }
  
  /* Improve animation timing function utilities */
  .animate-ease-linear { animation-timing-function: linear !important; }
  .animate-ease-in { animation-timing-function: cubic-bezier(0.4, 0, 1, 1) !important; }
  .animate-ease-out { animation-timing-function: cubic-bezier(0, 0, 0.2, 1) !important; }
  .animate-ease-in-out { animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; }
  
  /* Improve animation delay utilities */
  .animate-delay-75 { animation-delay: 75ms !important; }
  .animate-delay-100 { animation-delay: 100ms !important; }
  .animate-delay-150 { animation-delay: 150ms !important; }
  .animate-delay-200 { animation-delay: 200ms !important; }
  .animate-delay-300 { animation-delay: 300ms !important; }
  .animate-delay-500 { animation-delay: 500ms !important; }
  .animate-delay-700 { animation-delay: 700ms !important; }
  .animate-delay-1000 { animation-delay: 1000ms !important; }
  
  /* Improve animation iteration count utilities */
  .animate-iteration-count-1 { animation-iteration-count: 1 !important; }
  .animate-iteration-count-2 { animation-iteration-count: 2 !important; }
  .animate-iteration-count-3 { animation-iteration-count: 3 !important; }
  .animate-iteration-count-infinite { animation-iteration-count: infinite !important; }
  
  /* Improve animation direction utilities */
  .animate-direction-normal { animation-direction: normal !important; }
  .animate-direction-reverse { animation-direction: reverse !important; }
  .animate-direction-alternate { animation-direction: alternate !important; }
  .animate-direction-alternate-reverse { animation-direction: alternate-reverse !important; }
  
  /* Improve animation fill mode utilities */
  .animate-fill-mode-none { animation-fill-mode: none !important; }
  .animate-fill-mode-forwards { animation-fill-mode: forwards !important; }
  .animate-fill-mode-backwards { animation-fill-mode: backwards !important; }
  .animate-fill-mode-both { animation-fill-mode: both !important; }
  
  /* Improve animation play state utilities */
  .animate-play-state-running { animation-play-state: running !important; }
  .animate-play-state-paused { animation-play-state: paused !important; }
}

/* Mobile filter and backdrop improvements */
@media (max-width: 767.98px) {
  .filter-none { filter: none !important; }
  .filter-blur-sm { filter: blur(4px) !important; }
  .filter-blur { filter: blur(8px) !important; }
  .filter-brightness-0 { filter: brightness(0) !important; }
  .filter-brightness-100 { filter: brightness(1) !important; }
  .filter-contrast-0 { filter: contrast(0) !important; }
  .filter-contrast-100 { filter: contrast(1) !important; }
  .filter-grayscale-0 { filter: grayscale(0) !important; }
  .filter-grayscale { filter: grayscale(100%) !important; }
  .filter-invert-0 { filter: invert(0) !important; }
  .filter-invert { filter: invert(100%) !important; }
  .filter-saturate-0 { filter: saturate(0) !important; }
  .filter-saturate-100 { filter: saturate(1) !important; }
  .filter-sepia-0 { filter: sepia(0) !important; }
  .filter-sepia { filter: sepia(100%) !important; }
  
  .backdrop-blur-none { backdrop-filter: none !important; }
  .backdrop-blur { backdrop-filter: blur(8px) !important; }
  .backdrop-blur-md { backdrop-filter: blur(12px) !important; }
  .backdrop-blur-lg { backdrop-filter: blur(16px) !important; }
  .backdrop-opacity-0 { backdrop-filter: opacity(0) !important; }
  .backdrop-opacity-50 { backdrop-filter: opacity(0.5) !important; }
  .backdrop-opacity-100 { backdrop-filter: opacity(1) !important; }
}

/* Mobile scroll and focus improvements */
@media (max-width: 767.98px) {
  .scroll-smooth { scroll-behavior: smooth !important; }
  .scroll-auto { scroll-behavior: auto !important; }
  
  .scrollbar-thin { scrollbar-width: thin !important; }
  .scrollbar-none { scrollbar-width: none !important; }
  
  .focus\:outline-none:focus { outline: none !important; }
  .focus\:ring:focus { box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important; }
  .focus\:ring-2:focus { box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important; }
  .focus\:ring-4:focus { box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important; }
  .focus\:ring-8:focus { box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important; }
  
  .focus\:ring-primary:focus { box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important; }
  .focus\:ring-secondary:focus { box-shadow: 0 0 0 3px rgba(101, 101, 101, 0.1) !important; }
  .focus\:ring-success:focus { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important; }
  .focus\:ring-danger:focus { box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1) !important; }
  .focus\:ring-warning:focus { box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1) !important; }
  .focus\:ring-info:focus { box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1) !important; }
}

/* Mobile accessibility and performance improvements */
@media (max-width: 767.98px) {
  /* Improve screen reader support */
  .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
  
  .not-sr-only {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
  }
  
  /* Improve reduced motion support */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
  
  /* Improve high contrast support */
  @media (prefers-contrast: high) {
    .btn {
      border-width: 2px !important;
    }
    
    .form-control,
    .form-select {
      border-width: 2px !important;
    }
    
    .table th {
      border-width: 2px !important;
    }
  }
  
  /* Improve dark mode support */
  @media (prefers-color-scheme: dark) {
    :root:not(.theme-dark):not(.theme-light) {
      --primary-50: #0c4a6e;
      --primary-100: #075985;
      --primary-200: #0369a1;
      --primary-300: #0284c7;
      --primary-400: #0ea5e9;
      --primary-500: #38bdf8;
      --primary-600: #7dd3fc;
      --primary-700: #bae6fd;
      --primary-800: #e0f2fe;
      --primary-900: #f0f9ff;
      
      --neutral-50: #171717;
      --neutral-100: #262626;
      --neutral-200: #404040;
      --neutral-300: #525252;
      --neutral-400: #737373;
      --neutral-500: #a3a3a3;
      --neutral-600: #d4d4d4;
      --neutral-700: #e5e5e5;
      --neutral-800: #f5f5f5;
      --neutral-900: #fafafa;
    }
  }
}

/* Mobile spacing utilities */
@media (max-width: 767.98px) {
  .m-mobile-0 { margin: 0 !important; }
  .m-mobile-1 { margin: 0.25rem !important; }
  .m-mobile-2 { margin: 0.5rem !important; }
  .m-mobile-3 { margin: 1rem !important; }
  .m-mobile-4 { margin: 1.5rem !important; }
  .m-mobile-5 { margin: 3rem !important; }
  
  .p-mobile-0 { padding: 0 !important; }
  .p-mobile-1 { padding: 0.25rem !important; }
  .p-mobile-2 { padding: 0.5rem !important; }
  .p-mobile-3 { padding: 1rem !important; }
  .p-mobile-4 { padding: 1.5rem !important; }
  .p-mobile-5 { padding: 3rem !important; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Date Range Filter Styles */
input[type="date"].filter-select {
  font-family: inherit;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #d1d3e2;
  transition: all 0.3s ease;
  background: white;
  color: var(--neutral-900);
}

input[type="date"].filter-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
  outline: none;
}

/* Dark theme input[type="date"].filter-select rules removed - always uses light theme */

/* Date range filter responsive styling */
@media (max-width: 768px) {
  input[type="date"].filter-select {
    font-size: 0.875rem;
    padding: 0.5rem;
  }
}

/* Mobile search improvements - Removed as search functionality was removed */

/* Mobile input group improvements - Removed as search functionality was removed */

/* CRITICAL FIX: Admin dashboard mobile responsiveness */
@media (max-width: 1200px) {
  .admin-dashboard .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .admin-dashboard .sidebar.show {
    transform: translateX(0);
  }
  
  .admin-dashboard .main-content {
    margin-left: 0;
    transition: margin-left 0.3s ease;
  }
}

/* Improve admin table responsiveness */
.admin-dashboard .table-responsive {
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.admin-dashboard .table {
  min-width: 100%;
  width: max-content;
}

.admin-dashboard .table th,
.admin-dashboard .table td {
  white-space: nowrap;
  min-width: 120px;
}

/* Final mobile optimizations */
@media (max-width: 767.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Umpire Selection Styles */
.umpire-selection {
  min-width: 200px;
}

.umpire-selection .form-select {
  font-size: 0.875rem;
  padding: 0.375rem 0.5rem;
  border-radius: 6px;
}

.umpire-selection .form-select:disabled {
  background-color: var(--neutral-100);
  color: var(--neutral-500);
  cursor: not-allowed;
}

.umpire-selection .form-label {
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
  color: var(--neutral-700);
  font-weight: 500;
}

.umpire-selection .btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  margin-top: 0.5rem;
}

/* Mobile umpire selection */
@media (max-width: 767.98px) {
  .umpire-selection {
    min-width: 150px;
  }
  
  .umpire-selection .form-select {
    font-size: 0.8rem;
    padding: 0.25rem 0.375rem;
  }
}

/* Concession Selection Styles */
.concession-selection {
  min-width: 200px;
}

.concession-selection .form-select {
  font-size: 0.875rem;
  padding: 0.375rem 0.5rem;
  border-radius: 6px;
}

.concession-selection .form-select:disabled {
  background-color: var(--neutral-100);
  color: var(--neutral-500);
  cursor: not-allowed;
}

.concession-selection .form-label {
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
  color: var(--neutral-700);
  font-weight: 500;
}

.concession-selection .btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  margin-top: 0.5rem;
}

.concession-stand-display {
  padding: 0.375rem 0.5rem;
  background-color: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: 6px;
  min-height: 38px;
  display: flex;
  align-items: center;
}

.concession-stand-display .badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

/* Submit Button Styles */
.submit-plate-umpire-btn,
.submit-base-umpire-btn,
.submit-concession-btn {
  transition: all 0.2s ease;
  font-weight: 500;
}



.submit-plate-umpire-btn:disabled,
.submit-base-umpire-btn:disabled,
.submit-concession-btn:disabled {
  background-color: var(--neutral-300) !important;
  color: var(--neutral-500) !important;
  cursor: not-allowed;
  opacity: 0.6;
}

.submit-plate-umpire-btn:hover,
.submit-base-umpire-btn:hover,
.submit-concession-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.submit-plate-umpire-btn:active,
.submit-base-umpire-btn:active,
.submit-concession-btn:active {
  transform: translateY(0);
}

/* Mobile concession selection */
@media (max-width: 767.98px) {
  .concession-selection {
    min-width: 150px;
  }
  
  .concession-selection .form-select {
    font-size: 0.8rem;
    padding: 0.25rem 0.375rem;
  }
}

/* Availability Filter Styling */
#availableGamesFilter {
  border-color: var(--primary-color);
  background-color: var(--neutral-50);
}

#availableGamesFilter:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

/* Auto-Filtering Styles */
.filter-select {
  transition: all 0.3s ease;
}

.filter-select:focus {
  transform: scale(1.02);
  box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.15);
}

/* Auto-filtering info text */
.text-muted .fas {
  color: var(--primary-color);
}

/* Filter section enhancements */
.filter-section h5 {
  color: var(--primary-color);
  font-weight: 600;
}

/* ===== TABLET RESPONSIVE DESIGN ===== */
@media (min-width: 768px) and (max-width: 1023.98px) {
  /* Tablet-specific container adjustments */
  .container {
    max-width: 95%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Tablet navigation */
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
  
  /* Tablet title and subtitle */
  .website-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
  }
  
  .website-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
  
  /* Tablet filter section */
  .filter-section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .filter-section h5 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }
  
  /* Tablet filter dropdowns */
  .filter-select {
    font-size: 0.95rem;
    padding: 0.625rem 0.875rem;
  }
  
  /* Tablet table */
  .table-responsive {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
  }
  
  .table th {
    font-size: 0.9rem;
    padding: 1rem 0.75rem;
  }
  
  .table td {
    padding: 0.875rem 0.75rem;
    font-size: 0.9rem;
  }
  
  /* Tablet umpire and concession selection */
  .umpire-selection,
  .concession-selection {
    min-width: 180px;
  }
  
  .umpire-selection .form-select,
  .concession-selection .form-select {
    font-size: 0.9rem;
    padding: 0.5rem 0.625rem;
  }
  
  .umpire-selection .form-label,
  .concession-selection .form-label {
    font-size: 0.8rem;
  }
  
  /* Tablet buttons */
  .btn {
    font-size: 0.9rem;
    padding: 0.625rem 1.25rem;
  }
  
  .btn-sm {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
  
  /* Tablet forms */
  .form-control,
  .form-select {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
  }
  
  /* Tablet alerts */
  .alert {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }
  
  /* Tablet badges */
  .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }
  
  /* Tablet spacing */
  .mb-3 { margin-bottom: 1.25rem !important; }
  .mb-4 { margin-bottom: 1.75rem !important; }
  .py-4 { padding-top: 1.75rem !important; padding-bottom: 1.75rem !important; }
  .py-5 { padding-top: 2.25rem !important; padding-bottom: 2.25rem !important; }
}

/* ===== ENHANCED MOBILE RESPONSIVE DESIGN ===== */
@media (max-width: 767.98px) {
  /* Mobile container */
  .container {
    max-width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  /* Mobile navigation */
  .navbar {
    padding: 0.25rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .navbar-brand {
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  .navbar-nav .nav-link {
    padding: 0.5rem 0.25rem;
    font-size: 0.85rem;
    text-align: center;
    border-radius: 6px;
    margin: 0.25rem 0;
  }
  
  .navbar-nav .nav-link:hover {
    background-color: var(--primary-100);
  }
  
  /* Mobile title and subtitle */
  .website-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    line-height: 1.2;
  }
  
  .website-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.3;
  }
  
  /* Mobile filter section */
  .filter-section {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
  }
  
  .filter-section h5 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    text-align: center;
    color: var(--primary-color);
  }
  
  /* Mobile filter dropdowns */
  .filters-container .row {
    margin: 0;
  }
  
  .filters-container .col-sm-6 {
    padding: 0 0.125rem;
  }
  
  .filter-select {
    font-size: 0.85rem;
    padding: 0.625rem 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--neutral-300);
    background-color: white;
  }
  
  .filter-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
  }
  
  /* Mobile table - Stack layout for better mobile experience */
  .table-responsive {
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    margin: 0 -0.25rem;
    overflow-x: hidden;
  }
  
  .table {
    font-size: 0.75rem;
    border: none;
  }
  
  .table thead {
    display: none;
  }
  
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
    border: none;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  
  .table td {
    position: relative;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .table td:before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  /* Mobile umpire and concession selection */
  .umpire-selection,
  .concession-selection {
    min-width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .umpire-selection .form-select,
  .concession-selection .form-select {
    font-size: 0.8rem;
    padding: 0.5rem 0.625rem;
    border-radius: 6px;
    border: 1px solid var(--neutral-300);
    background-color: white;
    width: 100%;
  }
  
  .umpire-selection .form-label,
  .concession-selection .form-label {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    color: var(--neutral-700);
    font-weight: 500;
  }
  
  /* Mobile submit buttons */
  .submit-plate-umpire-btn,
  .submit-base-umpire-btn,
  .submit-concession-btn {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    margin-top: 0.5rem;
    width: 100%;
    border-radius: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  /* Mobile buttons */
  .btn {
    font-size: 0.8rem;
    padding: 0.625rem 0.875rem;
    width: 100%;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    font-weight: 500;
  }
  
  .btn-sm {
    font-size: 0.7rem;
    padding: 0.375rem 0.5rem;
    border-radius: 4px;
  }
  
  /* Mobile forms */
  .form-control,
  .form-select {
    font-size: 0.85rem;
    padding: 0.625rem 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--neutral-300);
  }
  
  /* Mobile alerts */
  .alert {
    padding: 0.75rem 0.875rem;
    font-size: 0.8rem;
    margin: 0 0.25rem 0.75rem 0.25rem;
    border-radius: 6px;
    border: none;
  }
  
  /* Mobile badges */
  .badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.375rem;
    border-radius: 4px;
    font-weight: 500;
  }
  
  /* Mobile concession stand display */
  .concession-stand-display {
    padding: 0.375rem 0.5rem;
    min-height: 28px;
    border-radius: 4px;
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
  }
  
  .concession-stand-display .badge {
    font-size: 0.6rem;
    padding: 0.25rem 0.375rem;
  }
  
  /* Mobile spacing adjustments */
  .mb-3 { margin-bottom: 0.75rem !important; }
  .mb-4 { margin-bottom: 1rem !important; }
  .py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
  .py-5 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
  
  /* Mobile text alignment */
  .text-center-mobile {
    text-align: center !important;
  }
  
  /* Mobile specific improvements */
  .concession-info {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: var(--neutral-50);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
  }
  
  /* Mobile table card layout */
  .table tbody tr {
    margin-bottom: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    overflow: hidden;
  }
  
  /* Mobile data labels */
  .table td[data-label="Umpires"]:before { content: "👨‍⚖️ Umpires: "; }
  .table td[data-label="Concession"]:before { content: "🍔 Concession: "; }
  .table td[data-label="Season"]:before { content: "📅 Season: "; }
  .table td[data-label="Event"]:before { content: "⚾ Event: "; }
  .table td[data-label="Venue"]:before { content: "🏟️ Venue: "; }
  .table td[data-label="Day"]:before { content: "📆 Day: "; }
  .table td[data-label="Date"]:before { content: "📅 Date: "; }
  .table td[data-label="Time"]:before { content: "⏰ Time: "; }
  .table td[data-label="Division"]:before { content: "🏆 Division: "; }
  .table td[data-label="Home Team"]:before { content: "🏠 Home Team: "; }
  .table td[data-label="Visitor Team"]:before { content: "✈️ Visitor Team: "; }
  
  /* Mobile touch improvements */
  .table td {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  
  .table td:active {
    background-color: var(--neutral-100);
    transform: scale(0.98);
    transition: all 0.1s ease;
  }
  
  /* Mobile scroll improvements */
  .table-responsive {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  
  .table-responsive::-webkit-scrollbar {
    height: 4px;
  }
  
  .table-responsive::-webkit-scrollbar-track {
    background: var(--neutral-200);
    border-radius: 2px;
  }
  
  .table-responsive::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
  }
  
  /* Mobile form improvements */
  .umpire-selection .form-select:focus,
  .concession-selection .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.15);
    transform: scale(1.02);
    transition: all 0.2s ease;
  }
  
  /* Mobile button improvements */
  .submit-plate-umpire-btn:active,
  .submit-base-umpire-btn:active,
  .submit-concession-btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
  }
  
  /* Mobile spacing for better readability */
  .umpire-selection > div,
  .concession-selection > div {
    margin-bottom: 0.75rem;
  }
  
  .umpire-selection > div:last-child,
  .concession-selection > div:last-child {
    margin-bottom: 0;
  }
  
  /* Mobile badge improvements */
  .badge {
    display: inline-block;
    line-height: 1.2;
    white-space: normal;
    word-wrap: break-word;
  }
  
  /* ===== MOBILE CARD LAYOUT ===== */
  .mobile-cards-container {
    padding: 0 0.5rem;
  }
  
  .mobile-game-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--neutral-200);
  }
  
  .mobile-card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-600));
    color: white;
    padding: 1rem;
    text-align: center;
  }
  
  .mobile-game-type {
    margin-bottom: 0.75rem;
  }
  
  .mobile-game-type .badge {
    margin: 0 0.25rem;
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
  }
  
  .mobile-game-date {
    font-size: 0.85rem;
    opacity: 0.9;
  }
  
  .mobile-game-date i {
    margin-right: 0.25rem;
  }
  
  .mobile-card-body {
    padding: 1rem;
  }
  
  .mobile-teams-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--neutral-50);
    border-radius: 8px;
    border: 1px solid var(--neutral-200);
  }
  
  .mobile-team {
    text-align: center;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--neutral-200);
  }
  
  .team-label {
    font-size: 0.7rem;
    color: var(--neutral-600);
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .team-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
  }
  
  .team-coach {
    font-size: 0.75rem;
    color: var(--neutral-600);
  }
  
  .mobile-game-details {
    margin-bottom: 1.5rem;
  }
  
  .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--neutral-200);
  }
  
  .detail-item:last-child {
    border-bottom: none;
  }
  
  .detail-label {
    font-weight: 600;
    color: var(--neutral-700);
    font-size: 0.8rem;
  }
  
  .detail-value {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.8rem;
  }
  
  .mobile-umpire-section,
  .mobile-concession-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--neutral-50);
    border-radius: 8px;
    border: 1px solid var(--neutral-200);
  }
  
  .section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .umpire-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .umpire-control {
    background: white;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--neutral-200);
  }
  
  .control-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: 0.5rem;
  }
  
  .mobile-select {
    width: 100%;
    font-size: 0.8rem;
    padding: 0.5rem;
    border: 1px solid var(--neutral-300);
    border-radius: 4px;
    background: white;
  }
  
  .mobile-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
    outline: none;
  }
  
  .mobile-btn {
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    padding: 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .concession-stand-display {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--neutral-200);
  }
  
  .concession-staff-control {
    background: white;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--neutral-200);
  }
  
  /* Mobile card animations */
  .mobile-game-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .mobile-game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  }
  
  .mobile-game-card:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
  }
  
  /* Mobile responsive grid adjustments */
  @media (max-width: 480px) {
    .mobile-teams-section {
      grid-template-columns: 1fr;
      gap: 0.75rem;
    }
    
    .mobile-card-header {
      padding: 0.75rem;
    }
    
    .mobile-card-body {
      padding: 0.75rem;
    }
    
    .mobile-umpire-section,
    .mobile-concession-section {
      padding: 0.75rem;
    }
  }
}

/* ===== MOBILE CARD LAYOUT ===== */
.mobile-cards-container {
  padding: 0 0.5rem;
  display: none; /* Hidden by default, shown only on mobile */
}

/* Show mobile cards on mobile devices */
@media (max-width: 767.98px) {
  .mobile-cards-container {
    display: block;
  }
  
  /* Hide desktop table on mobile */
  .table-responsive {
    display: none !important;
  }
}

/* Hide mobile cards on desktop */
@media (min-width: 768px) {
  .mobile-cards-container {
    display: none !important;
  }
  
  /* Show desktop table on desktop */
  .table-responsive {
    display: block !important;
  }
}

.mobile-game-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--neutral-200);
}

.mobile-card-header {
  background: var(--gradient-primary);
  color: white;
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.mobile-game-type {
  margin-bottom: 0.75rem;
}

.mobile-game-type .badge {
  margin: 0 0.25rem;
  font-size: 0.75rem;
  padding: 0.375rem 0.5rem;
}

.mobile-game-date {
  font-size: 0.85rem;
  opacity: 0.9;
}

.mobile-game-date i {
  margin-right: 0.25rem;
}

.mobile-card-body {
  padding: 1rem;
}

.mobile-teams-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--neutral-50);
  border-radius: 8px;
  border: 1px solid var(--neutral-200);
}

.mobile-team {
  text-align: center;
  padding: 0.75rem;
  background: white;
  border-radius: 6px;
  border: 1px solid var(--neutral-200);
}

.team-label {
  font-size: 0.7rem;
  color: var(--neutral-600);
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.team-coach {
  font-size: 0.75rem;
  color: var(--neutral-600);
}

.mobile-game-details {
  margin-bottom: 1.5rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--neutral-200);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 600;
  color: var(--neutral-700);
  font-size: 0.8rem;
}

.detail-value {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.8rem;
}

.mobile-umpire-section,
.mobile-concession-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--neutral-50);
  border-radius: 8px;
  border: 1px solid var(--neutral-200);
}

.section-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.umpire-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.umpire-control {
  background: white;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--neutral-200);
}

.control-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neutral-700);
  margin-bottom: 0.5rem;
}

.mobile-select {
  width: 100%;
  font-size: 0.8rem;
  padding: 0.5rem;
  border: 1px solid var(--neutral-300);
  border-radius: 4px;
  background: white;
}

.mobile-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
  outline: none;
}

.mobile-btn {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  padding: 0.5rem;
  border-radius: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.concession-stand-display {
  text-align: center;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: white;
  border-radius: 6px;
  border: 1px solid var(--neutral-200);
}

.concession-staff-control {
  background: white;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--neutral-200);
}

/* Mobile card animations */
.mobile-game-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.mobile-game-card:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

/* Mobile responsive grid adjustments */
@media (max-width: 480px) {
  .mobile-teams-section {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .mobile-card-header {
    padding: 0.75rem;
  }
  
  .mobile-card-body {
    padding: 0.75rem;
  }
  
  .mobile-umpire-section,
  .mobile-concession-section {
    padding: 0.75rem;
  }
}

/* ===== EXTRA SMALL MOBILE DEVICES ===== */
@media (max-width: 575.98px) {
  /* Extra small container */
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  /* Extra small title */
  .website-title {
    font-size: 1.5rem;
  }
  
  .website-subtitle {
    font-size: 0.85rem;
  }
  
  /* Extra small filter section */
  .filter-section {
    padding: 0.75rem;
  }
  
  .filter-section h5 {
    font-size: 1rem;
  }
  
  /* Extra small table */
  .table th,
  .table td {
    font-size: 0.7rem;
    padding: 0.5rem 0.375rem;
  }
  
  /* Extra small buttons */
  .btn {
    font-size: 0.8rem;
    padding: 0.625rem 0.875rem;
  }
  
  /* Extra small forms */
  .form-control,
  .form-select {
    font-size: 0.85rem;
    padding: 0.625rem 0.75rem;
  }
}

/* ===== LANDSCAPE MOBILE ORIENTATION ===== */
@media (max-width: 767.98px) and (orientation: landscape) {
  .website-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .website-subtitle {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }
  
  .filter-section {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .table-responsive {
    max-height: 60vh;
  }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .table th,
  .table td {
    border-width: 0.5px;
  }
  
  .btn {
    border-width: 1px;
  }
  
  .form-control,
  .form-select {
    border-width: 1px;
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
  .filter-select,
  .btn,
  .form-control,
  .form-select {
    transition: none;
  }
  
  .filter-select:focus {
    transform: none;
  }
}

@media (prefers-contrast: high) {
  .table th {
    background-color: var(--neutral-900);
    color: var(--neutral-100);
  }
  
  .table td {
    border-color: var(--neutral-700);
  }
  
  .btn {
    border-width: 2px;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .navbar,
  .filter-section,
  .btn,
  .umpire-selection,
  .concession-selection {
    display: none !important;
  }
  
  .table {
    border-collapse: collapse;
    width: 100%;
  }
  
  .table th,
  .table td {
    border: 1px solid #000;
    padding: 0.5rem;
    text-align: left;
  }
  
  .website-title {
    color: #000;
    font-size: 1.5rem;
  }
  
  .website-subtitle {
    color: #000;
    font-size: 1rem;
  }
}

/* ===== ADMIN PANEL MOBILE RESPONSIVENESS ===== */
@media (max-width: 1200px) {
  .admin-dashboard .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    height: 100vh;
    z-index: 1050;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
  }
  
  .admin-dashboard .sidebar.show {
    left: 0;
  }
  
  .admin-dashboard .main-content {
    margin-left: 0;
    width: 100%;
    transition: margin-left 0.3s ease;
  }
  
  .admin-dashboard .main-content.sidebar-open {
    margin-left: 280px;
  }
  
  .mobile-toggle {
    display: block;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1060;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
  }
  
  .mobile-toggle:hover {
    background: var(--primary-600);
    transform: scale(1.05);
  }
  
  .mobile-toggle:active {
    transform: scale(0.95);
  }
}

@media (max-width: 768px) {
  .admin-dashboard .sidebar {
    width: 100%;
    left: -100%;
  }
  
  .admin-dashboard .main-content.sidebar-open {
    margin-left: 0;
  }
  
  .admin-dashboard .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .admin-dashboard .card {
    margin-bottom: 1rem;
  }
  
  .admin-dashboard .card-body {
    padding: 1rem;
  }
  
  .admin-dashboard .table-responsive {
    font-size: 0.8rem;
  }
  
  .admin-dashboard .table th,
  .admin-dashboard .table td {
    padding: 0.5rem 0.375rem;
    font-size: 0.75rem;
  }
  
  .admin-dashboard .btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
  }
  
  .admin-dashboard .form-control,
  .admin-dashboard .form-select {
    font-size: 0.9rem;
    padding: 0.75rem 0.875rem;
  }
  
  .admin-dashboard .modal-dialog {
    margin: 0.5rem;
  }
  
  .admin-dashboard .modal-body {
    padding: 1rem;
  }
  
  .admin-dashboard .stats-card {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .admin-dashboard .stats-card .card-body {
    padding: 1rem;
  }
  
  .admin-dashboard .stats-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .admin-dashboard .stats-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
  }
}

@media (max-width: 576px) {
  .admin-dashboard .mobile-toggle {
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.5rem;
    font-size: 1rem;
  }
  
  .admin-dashboard .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .admin-dashboard .card-body {
    padding: 0.75rem;
  }
  
  .admin-dashboard .table-responsive {
    font-size: 0.7rem;
  }
  
  .admin-dashboard .table th,
  .admin-dashboard .table td {
    padding: 0.375rem 0.25rem;
    font-size: 0.7rem;
  }
  
  .admin-dashboard .btn {
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
  }
  
  .admin-dashboard .form-control,
  .admin-dashboard .form-select {
    font-size: 0.85rem;
    padding: 0.625rem 0.75rem;
  }
  
  .admin-dashboard .modal-dialog {
    margin: 0.25rem;
  }
  
  .admin-dashboard .modal-body {
    padding: 0.75rem;
  }
  
  .admin-dashboard .stats-card h3 {
    font-size: 1.25rem;
  }
  
  .admin-dashboard .stats-card p {
    font-size: 0.8rem;
  }
}

/* ===== TABLET ADMIN RESPONSIVENESS ===== */
@media (min-width: 769px) and (max-width: 1200px) {
  .admin-dashboard .sidebar {
    width: 280px;
  }
  
  .admin-dashboard .main-content {
    margin-left: 280px;
  }
  
  .admin-dashboard .container {
    max-width: 95%;
  }
  
  .admin-dashboard .card {
    margin-bottom: 1.5rem;
  }
  
  .admin-dashboard .card-body {
    padding: 1.5rem;
  }
  
  .admin-dashboard .table-responsive {
    font-size: 0.9rem;
  }
  
  .admin-dashboard .table th,
  .admin-dashboard .table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }
  
  .admin-dashboard .btn {
    font-size: 0.9rem;
    padding: 0.625rem 1rem;
  }
  
  .admin-dashboard .form-control,
  .admin-dashboard .form-select {
    font-size: 0.95rem;
    padding: 0.875rem 1rem;
  }
  
  .admin-dashboard .stats-card {
    margin-bottom: 1.5rem;
  }
  
  .admin-dashboard .stats-card h3 {
    font-size: 1.75rem;
  }
  
  .admin-dashboard .stats-card p {
    font-size: 1rem;
  }
}

/* ===== Mobile (<= 575.98px) - Clean Flat Card Design ===== */
@media (max-width: 575.98px) {
  :root {
    /* LYBSL brand colors */
    --primary-600: #7A0C21 !important;
    --primary-700: #5e0919 !important;
    --accent-amber: #FDB515 !important;
    --primary-50: #FFF7F8 !important;
  }

  /* Completely new card design - flat, clean, minimal */
  .container .filter-section,
  .container .schedule-table,
  .container .admin-card,
  .container .card,
  .container .game-schedule-card {
    background: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-bottom: 1px !important;
    padding: 1rem !important;
    border-left: 4px solid #7A0C21 !important;
  }

  /* Game schedule cards - special styling */
  .container .game-schedule-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-left: 4px solid #FDB515 !important;
    margin-bottom: 8px !important;
    border-radius: 0 !important;
  }

  /* Card headers - flat design */
  .container .card-header,
  .container .schedule-table .card-header {
    background: #7A0C21 !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1rem !important;
    margin: -1rem -1rem 1rem -1rem !important;
    font-weight: 600 !important;
  }

  /* Game schedule card headers */
  .container .game-schedule-card .card-header {
    background: #FDB515 !important;
    color: #000 !important;
  }

  /* Buttons - flat design */
  .btn, .btn-modern {
    border-radius: 0 !important;
    border: none !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    min-height: 48px !important;
    padding: 0.75rem 1.5rem !important;
  }

  .btn-primary, .btn-modern.btn-primary {
    background: #7A0C21 !important;
    color: white !important;
  }

  .btn-outline-primary {
    background: transparent !important;
    color: #7A0C21 !important;
    border: 2px solid #7A0C21 !important;
  }

  .btn-outline-primary:hover {
    background: #7A0C21 !important;
    color: white !important;
  }

  /* Form controls - flat design */
  .form-control, .form-select {
    border: none !important;
    border-bottom: 2px solid #e9ecef !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 0.75rem 0 !important;
    min-height: 48px !important;
  }

  .form-control:focus, .form-select:focus {
    border-bottom-color: #7A0C21 !important;
    box-shadow: none !important;
  }

  /* Badges - flat design */
  .badge {
    border-radius: 0 !important;
    padding: 0.5rem 0.75rem !important;
    font-weight: 500 !important;
  }

  .badge.bg-primary {
    background: #7A0C21 !important;
  }

  .badge.bg-warning {
    background: #FDB515 !important;
    color: #000 !important;
  }

  /* Tables - flat design */
  .table {
    border: none !important;
  }

  .table th, .table td {
    border: none !important;
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid #f1f3f4 !important;
  }

  .table th {
    background: transparent !important;
    color: #7A0C21 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.5px !important;
  }

  /* Remove all shadows and borders */
  * {
    box-shadow: none !important;
  }

  /* Fix scrolling */
  body, html {
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Website subtitle */
  .website-subtitle { 
    color: #6b7280 !important; 
    margin-top: 0.2rem !important; 
  }
}

/* ===== Tablet (576px - 991.98px) - Clean Flat Card Design ===== */
@media (min-width: 576px) and (max-width: 991.98px) {
  :root {
    --primary-600: #7A0C21 !important;
    --primary-700: #5e0919 !important;
    --accent-amber: #FDB515 !important;
    --primary-50: #FFF7F8 !important;
  }
  
  /* Flat card design for tablets */
  .container .filter-section,
  .container .schedule-table,
  .container .admin-card,
  .container .card,
  .container .game-schedule-card {
    background: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    margin-bottom: 12px !important;
    padding: 1.25rem !important;
    border-left: 4px solid #7A0C21 !important;
  }

  .container .game-schedule-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border-left: 4px solid #FDB515 !important;
  }

  /* Card headers */
  .container .card-header,
  .container .schedule-table .card-header {
    background: #7A0C21 !important;
    color: white !important;
    border: none !important;
    padding: 0.75rem 1.25rem !important;
    margin: -1.25rem -1.25rem 1rem -1.25rem !important;
    font-weight: 600 !important;
  }

  .container .game-schedule-card .card-header {
    background: #FDB515 !important;
    color: #000 !important;
  }

  /* Buttons */
  .btn, .btn-modern {
    border-radius: 4px !important;
    border: none !important;
    font-weight: 500 !important;
    min-height: 44px !important;
    padding: 0.6rem 1.25rem !important;
  }

  .btn-primary, .btn-modern.btn-primary {
    background: #7A0C21 !important;
    color: white !important;
  }

  .btn-outline-primary {
    background: transparent !important;
    color: #7A0C21 !important;
    border: 2px solid #7A0C21 !important;
  }

  /* Form controls */
  .form-control, .form-select {
    border: 1px solid #e9ecef !important;
    border-radius: 4px !important;
    background: #ffffff !important;
    padding: 0.6rem 0.75rem !important;
    min-height: 44px !important;
  }

  .form-control:focus, .form-select:focus {
    border-color: #7A0C21 !important;
    box-shadow: 0 0 0 0.2rem rgba(122, 12, 33, 0.25) !important;
  }

  /* Remove excessive shadows */
  .card, .filter-section, .schedule-table, .admin-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
  }
}