/* ===========================
   BADMINTON HUB GLOBAL DESIGN SYSTEM
   Inspired by Uber's Design Language
   =========================== */

/* ===========================
   CSS VARIABLES - COLOR SCHEME
   =========================== */
:root {
  /* Primary Colors - Gradient Theme */
  --primary-black: #000000;
  --primary-white: #ffffff;
  --primary-gray: #f6f6f6;
  
  /* Gradient Colors */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-primary-start: #667eea;
  --gradient-primary-end: #764ba2;
  --gradient-light: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
  
  /* Secondary Colors */
  --secondary-green: #00b341;
  --secondary-blue: #1fbad3;
  --secondary-orange: #ff6300;
  --secondary-red: #e74c3c;
  
  /* Neutral Colors */
  --neutral-100: #fafafa;
  --neutral-200: #f6f6f6;
  --neutral-300: #e8e8e8;
  --neutral-400: #c4c4c4;
  --neutral-500: #9b9b9b;
  --neutral-600: #757575;
  --neutral-700: #545454;
  --neutral-800: #3d3d3d;
  --neutral-900: #1d1d1d;
  
  /* Status Colors */
  --success: #00b341;
  --warning: #ff6300;
  --error: #e74c3c;
  --info: #1fbad3;
  
  /* Typography */
  --font-primary: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
  
  /* Font Weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-black: 900;
  
  /* Font Sizes */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  
  /* Spacing */
  --space-1: 0.25rem;    /* 4px */
  --space-2: 0.5rem;     /* 8px */
  --space-3: 0.75rem;    /* 12px */
  --space-4: 1rem;       /* 16px */
  --space-5: 1.25rem;    /* 20px */
  --space-6: 1.5rem;     /* 24px */
  --space-8: 2rem;       /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  
  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.25rem;   /* 4px */
  --radius-base: 0.5rem;  /* 8px */
  --radius-md: 0.75rem;   /* 12px */
  --radius-lg: 1rem;      /* 16px */
  --radius-xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Breakpoints */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;

  /* ===========================
     CONTRAST & ACCESSIBILITY TOKENS
     =========================== */
  
  /* High Contrast Text Colors for Different Surfaces */
  --on-light: #0f0f0f;           /* Dark text on light backgrounds */
  --on-dark: #ffffff;            /* White text on dark backgrounds */
  --on-primary: #ffffff;         /* White text on gradient/primary backgrounds */
  --on-muted-light: #545454;     /* Muted text on light backgrounds */
  --on-muted-primary: rgba(255, 255, 255, 0.98); /* Subtle text on primary/gradient with improved contrast */
  
  /* Text Shadows for Readability */
  --on-primary-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  --on-light-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  
  /* Surface Background Colors with Proper Contrast */
  --surface-primary: var(--gradient-primary);
  --surface-light: var(--primary-white);
  --surface-dark: var(--neutral-800);
}

/* ===========================
   GLOBAL RESET & BASE STYLES
   =========================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: 1.5;
  color: var(--neutral-900);
  background: var(--gradient-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-bold);
  line-height: 1.2;
  margin-bottom: var(--space-4);
  color: var(--primary-black);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-4);
  color: var(--neutral-700);
}

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

.font-light { font-weight: var(--font-light); }
.font-regular { font-weight: var(--font-regular); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.font-black { font-weight: var(--font-black); }

/* ===========================
   CONTAINER SYSTEM
   =========================== */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-4);
  max-width: 1200px;
}

.container-sm { max-width: 640px; }
.container-md { max-width: 768px; }
.container-lg { max-width: 1024px; }
.container-xl { max-width: 1280px; }
.container-2xl { max-width: 1536px; }

@media (min-width: 640px) {
  .container { padding: 0 var(--space-6); }
}

@media (min-width: 1024px) {
  .container { padding: 0 var(--space-8); }
}

/* ===========================
   CARD COMPONENTS
   =========================== */
.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transition: all var(--transition-base);
}

.card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
}

.card-elevated {
  box-shadow: var(--shadow-lg);
}

.card-elevated:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.card-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--neutral-200);
  background: var(--primary-white);
}

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

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

/* ===========================
   BUTTON SYSTEM
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  border: none;
  border-radius: var(--radius-base);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary Button - Gradient Theme */
.btn-primary {
  background: var(--gradient-primary);
  color: var(--primary-white);
  border: none;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a5a92 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
  color: var(--primary-white);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
  background: var(--primary-white);
  color: var(--primary-black);
  border: 1px solid var(--neutral-300);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--neutral-100);
  border-color: var(--neutral-400);
}

/* Mobile Menu Button - Better Contrast */
#mobileMenuBtn {
  background: var(--neutral-800);
  color: var(--primary-white);
  border: 1px solid var(--neutral-700);
}

#mobileMenuBtn:hover:not(:disabled) {
  background: var(--neutral-900);
  color: var(--primary-white);
  border-color: var(--neutral-600);
}

#mobileMenuBtn:focus {
  background: var(--neutral-900);
  color: var(--primary-white);
  outline: 2px solid var(--primary-white);
  outline-offset: 2px;
}

/* Success Button */
.btn-success {
  background: var(--success);
  color: var(--primary-white);
}

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

/* Danger Button */
.btn-danger {
  background: var(--error);
  color: var(--primary-white);
}

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

/* Button Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

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

.btn-xl {
  padding: var(--space-5) var(--space-10);
  font-size: var(--text-xl);
}

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

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

.form-input {
  width: 100%;
  padding: var(--space-4);
  font-size: var(--text-base);
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-base);
  background: var(--primary-white);
  transition: all var(--transition-fast);
}

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

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

/* ===========================
   NAVIGATION BAR
   =========================== */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: var(--space-2) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-size: var(--text-2xl);
  font-weight: var(--font-black);
  color: var(--primary-black);
  text-decoration: none;
}

.navbar-brand:hover {
  color: var(--primary-black);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.navbar-link {
  color: var(--neutral-700);
  text-decoration: none;
  font-weight: var(--font-medium);
  transition: color var(--transition-fast);
}

.navbar-link:hover {
  color: var(--primary-black);
}

.navbar-link.active {
  color: var(--primary-black);
  font-weight: var(--font-semibold);
}

/* ===========================
   GRID SYSTEM
   =========================== */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ===========================
   UTILITY CLASSES
   =========================== */

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

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

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

/* Colors */
.text-primary { color: var(--primary-black); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-warning { color: var(--warning); }
.text-info { color: var(--info); }
.text-muted { color: var(--neutral-500); }

.bg-primary { 
  background: var(--gradient-primary); 
  color: var(--primary-white);
}
.bg-white { background-color: var(--primary-white); }
.bg-gray { background-color: var(--primary-gray); }
.bg-success { background-color: var(--success); color: var(--primary-white); }
.bg-error { background-color: var(--error); color: var(--primary-white); }

/* ===========================
   SURFACE & CONTRAST UTILITIES
   =========================== */

/* Surface Classes with Proper Text Contrast */
.surface-primary {
  background: var(--surface-primary);
  color: var(--on-primary);
}

.surface-light {
  background: var(--surface-light);
  color: var(--on-light);
}

.surface-dark {
  background: var(--surface-dark);
  color: var(--on-dark);
}

/* High Contrast Text Utilities */
.text-on-primary {
  color: var(--on-primary) !important;
  text-shadow: var(--on-primary-shadow);
}

.text-on-light {
  color: var(--on-light) !important;
}

.text-on-dark {
  color: var(--on-dark) !important;
}

/* Subtle Text for Secondary Information */
.text-subtle-primary {
  color: var(--on-muted-primary) !important;
  text-shadow: var(--on-primary-shadow);
}

.text-subtle-light {
  color: var(--on-muted-light) !important;
}

/* Contrast Shadow Utility for Enhanced Readability */
.has-contrast-shadow {
  text-shadow: var(--on-primary-shadow);
}

/* Apply contrast shadow to all text within gradient surfaces */
.surface-primary h1, .surface-primary h2, .surface-primary h3, 
.surface-primary h4, .surface-primary h5, .surface-primary h6,
.surface-primary p, .surface-primary small, .surface-primary a:not(.btn) {
  text-shadow: var(--on-primary-shadow);
  color: var(--on-primary);
}

/* Card Header Variants with Proper Contrast */
/* Higher specificity to override style.css */
.card .card-header.card-header--primary,
.card-header--primary.card-header {
  background: var(--gradient-primary) !important;
  color: var(--on-primary) !important;
  text-shadow: var(--on-primary-shadow);
  border-bottom: none;
}

/* Ensure all text elements get proper contrast */
.card-header--primary h1, 
.card-header--primary h2, 
.card-header--primary h3,
.card-header--primary h4, 
.card-header--primary h5, 
.card-header--primary h6,
.card-header--primary p, 
.card-header--primary small {
  color: var(--on-primary) !important;
  text-shadow: var(--on-primary-shadow);
}

.card-header--light {
  background: var(--surface-light);
  color: var(--on-light);
}

.card-header--dark {
  background: var(--surface-dark);
  color: var(--on-dark);
}

/* Borders */
.border { border: 1px solid var(--neutral-300); }
.border-t { border-top: 1px solid var(--neutral-300); }
.border-b { border-bottom: 1px solid var(--neutral-300); }

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

/* Layout */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

/* Mobile Navigation */
.mobile-nav {
  background: var(--primary-white);
  border-top: 1px solid var(--neutral-200);
  padding: var(--space-2) 0;
  box-shadow: var(--shadow-lg);
}

.mobile-nav .navbar-nav {
  flex-direction: column;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav .navbar-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-base);
  transition: background var(--transition-fast);
  text-decoration: none;
  color: var(--neutral-800);
  font-weight: 500;
  font-size: 1rem;
}

.mobile-nav .navbar-link:hover {
  background: var(--neutral-100);
  color: var(--neutral-900);
  text-decoration: none;
}

.mobile-nav .navbar-link:focus {
  background: var(--neutral-100);
  color: var(--neutral-900);
  outline: 2px solid var(--primary-black);
  outline-offset: -2px;
}

/* Responsive Design */
@media (max-width: 767px) {
  .mobile-hide { display: none !important; }
  .container { padding: 0 var(--space-4); }
  .card-body { padding: var(--space-4); }
  
  /* Adjust main content for mobile nav - only for pages with content */
  .main-content:not(.home-section) {
    padding-top: var(--space-6);
  }
}

@media (min-width: 768px) {
  .desktop-hide { display: none !important; }
  
  /* Adjust main content for desktop nav - only for pages with content */
  .main-content:not(.home-section) {
    padding-top: var(--space-6);
  }
}

/* ===========================
   ANIMATION & INTERACTIONS
   =========================== */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

.hover-scale:hover {
  transform: scale(1.02);
  transition: transform var(--transition-fast);
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

/* ===========================
   LOADING STATES
   =========================== */
.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--neutral-300);
  border-top: 2px solid var(--primary-black);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===========================
   ACCESSIBILITY
   =========================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles */
*:focus {
  outline: 2px solid var(--primary-black);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --neutral-300: #999999;
    --neutral-500: #666666;
  }
}

/* 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;
  }
}

/* ===========================
   BOOTSTRAP OVERRIDES
   =========================== */

/* Override Bootstrap with our design tokens */
.btn {
    border-radius: var(--radius-lg);
    font-weight: var(--font-semibold);
    padding: var(--space-3) var(--space-6);
    transition: all var(--transition-fast) ease;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: var(--primary-white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a5a92 100%);
    border: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
    color: var(--primary-white);
}

.btn-success {
    background-color: var(--success);
    border-color: var(--success);
    color: var(--primary-white);
}

.btn-warning {
    background-color: var(--warning);
    border-color: var(--warning);
    color: var(--primary-white);
}

.btn-danger {
    background-color: var(--error);
    border-color: var(--error);
    color: var(--primary-white);
}

.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--space-6);
    font-weight: var(--font-semibold);
}

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

.form-control {
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    font-size: var(--text-base);
    transition: all var(--transition-fast) ease;
}

.form-control:focus {
    border-color: var(--primary-black);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* ===========================
   UTILITY CLASSES
   =========================== */

/* Spacing utilities */
.u-mt-1 { margin-top: var(--space-1); }
.u-mt-2 { margin-top: var(--space-2); }
.u-mt-3 { margin-top: var(--space-3); }
.u-mt-4 { margin-top: var(--space-4); }
.u-mt-6 { margin-top: var(--space-6); }
.u-mt-8 { margin-top: var(--space-8); }

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

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

/* Gap utilities */
.u-gap-2 { gap: var(--space-2); }
.u-gap-3 { gap: var(--space-3); }
.u-gap-4 { gap: var(--space-4); }
.u-gap-6 { gap: var(--space-6); }

/* Text utilities */
.u-text-primary { color: var(--primary-black); }
.u-text-secondary { color: var(--neutral-600); }
.u-text-muted { color: var(--neutral-500); }
.u-text-success { color: var(--success); }
.u-text-warning { color: var(--warning); }
.u-text-error { color: var(--error); }

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

.u-font-medium { font-weight: var(--font-medium); }
.u-font-semibold { font-weight: var(--font-semibold); }
.u-font-bold { font-weight: var(--font-bold); }

/* Background utilities */
.u-bg-white { background-color: var(--primary-white); }
.u-bg-success { background-color: var(--success); }
.u-bg-warning { background-color: var(--warning); }
.u-bg-error { background-color: var(--error); }
.u-bg-info { background-color: var(--info); }

/* Typography classes */
.heading-uber {
    font-family: var(--font-primary);
    font-weight: var(--font-bold);
    color: var(--primary-black);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
}

/* Layout utilities */
.u-stack { display: flex; flex-direction: column; }
.u-stack-horizontal { display: flex; flex-direction: row; align-items: center; }
.u-center { display: flex; align-items: center; justify-content: center; }
.u-space-between { display: flex; justify-content: space-between; align-items: center; }

/* Shadow utilities */
.u-shadow-sm { box-shadow: var(--shadow-sm); }
.u-shadow-md { box-shadow: var(--shadow-md); }
.u-shadow-lg { box-shadow: var(--shadow-lg); }

/* ===========================
   QUICK ACTION CARD COMPONENT
   =========================== */
.quick-action-card {
    display: block;
    background: var(--primary-white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
    padding: var(--space-6);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast) ease;
    overflow: hidden;
}

.quick-action-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.quick-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--neutral-100);
    margin: 0 auto var(--space-4);
}

.quick-action-content {
    text-align: center;
}

.quick-action-content h4 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--primary-black);
    margin-bottom: var(--space-2);
}

.quick-action-content p {
    font-size: var(--text-sm);
    color: var(--neutral-600);
    margin: 0;
}

/* ===========================
   MODERN BUTTON STYLES
   =========================== */

/* Modern Success Button (Create Match) */
.modern-btn-success {
  background: linear-gradient(135deg, #00d4aa 0%, #00b389 100%) !important;
  border: none !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(0, 180, 137, 0.3) !important;
  transition: all 0.3s ease !important;
  text-transform: none !important;
  font-size: 1rem !important;
  position: relative !important;
  overflow: hidden !important;
}

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

.modern-btn-success:hover::before {
  left: 100%;
}

.modern-btn-success:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(0, 180, 137, 0.4) !important;
  background: linear-gradient(135deg, #00e6c0 0%, #00c49d 100%) !important;
}

.modern-btn-success:active {
  transform: translateY(0px) !important;
  box-shadow: 0 2px 10px rgba(0, 180, 137, 0.3) !important;
}

/* Modern Primary Button (Find Courts) */
.modern-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
  transition: all 0.3s ease !important;
  text-transform: none !important;
  font-size: 1rem !important;
  position: relative !important;
  overflow: hidden !important;
}

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

.modern-btn-primary:hover::before {
  left: 100%;
}

.modern-btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4) !important;
  background: linear-gradient(135deg, #7c8df0 0%, #8560b0 100%) !important;
}

.modern-btn-primary:active {
  transform: translateY(0px) !important;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3) !important;
}

/* Modern button hover state for all modern buttons */
.modern-btn-success:focus,
.modern-btn-primary:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2) !important;
}

/* Small size adjustments for modern buttons */
.btn-sm.modern-btn-success,
.btn-sm.modern-btn-primary {
  padding: 8px 16px !important;
  font-size: 0.875rem !important;
  border-radius: 8px !important;
}