:root {
  --bg-primary: #0B0B0B;
  --bg-secondary: #12141A;
  --bg-card: #151821;
  --bg-card-hover: #1C212E;
  --border-color: rgba(192, 192, 192, 0.16);
  
  --primary-accent: #D4AF37; /* Metallic Gold */
  --primary-accent-hover: #E6C65C;
  --accent-glow: rgba(212, 175, 55, 0.28);
  
  --silver-accent: #C0C0C0;
  --silver-light: #E5E5E5;
  
  --success-color: #10b981; /* Vibrant Emerald */
  --warning-color: #D4AF37;
  --danger-color: #ef4444;  /* Crimson Red */
  --info-color: #3b82f6;

  --text-primary: #ffffff;
  --text-secondary: #cbd5e1; /* High contrast bright slate */
  --text-muted: #94a3b8;     /* Crisp readable grey */

  --bottom-nav-height: 68px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  padding-bottom: calc(var(--bottom-nav-height) + 24px);
  min-height: 100vh;
  line-height: 1.6;
}

/* High Contrast Global Text Helpers */
.text-muted {
  color: #94a3b8 !important;
}

.text-secondary {
  color: #cbd5e1 !important;
}

.form-label, label {
  color: #e2e8f0 !important;
  font-weight: 600;
}

/* Glassmorphic App Header */
.app-header {
  background: rgba(10, 13, 18, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1020;
  transition: all 0.3s ease;
}

.brand-badge {
  background: linear-gradient(135deg, #fdd116 0%, #d4af37 100%);
  color: #0a0d12;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.95rem;
}

/* Cards & Surfaces */
.card-dark {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.card-dark:hover {
  border-color: rgba(253, 209, 22, 0.45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-header-dark {
  background-color: transparent;
  border-bottom: 1px solid var(--border-color);
  padding: 1.1rem 1.4rem;
}

/* Primary Athletic Buttons */
.btn-gold {
  background: linear-gradient(135deg, #fdd116 0%, #d4af37 100%);
  color: #080a0e !important;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  border: none;
  border-radius: 12px;
  padding: 0.7rem 1.4rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(253, 209, 22, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #fffdf0 0%, #fdd116 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 22px rgba(253, 209, 22, 0.45);
  color: #000 !important;
}

.btn-dark-outline {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #ffffff !important;
  border-radius: 12px;
  padding: 0.65rem 1.3rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

.btn-dark-outline:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--primary-accent);
  color: var(--primary-accent) !important;
  transform: translateY(-1px);
}

/* Form Controls */
.form-control-dark, .form-control.bg-dark, .form-select.bg-dark {
  background-color: #0f131a !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-radius: 12px;
  padding: 0.7rem 1rem;
}

.form-control-dark:focus, .form-control.bg-dark:focus, .form-select.bg-dark:focus {
  background-color: #141822 !important;
  border-color: var(--primary-accent) !important;
  box-shadow: 0 0 0 3px rgba(253, 209, 22, 0.25) !important;
}

/* Capacity Gauge & Progress */
.capacity-card {
  background: linear-gradient(145deg, #181d28 0%, #11151e 100%);
  border: 1px solid rgba(253, 209, 22, 0.35);
  border-radius: 22px;
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.capacity-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(253, 209, 22, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.progress-capacity {
  height: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-capacity {
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Status Badges */
.badge-available {
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning-custom {
  background-color: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-full {
  background-color: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Accessible Focus Ring (WCAG 2.2 AA) */
:focus-visible {
  outline: 2px solid var(--primary-accent) !important;
  outline-offset: 2px !important;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--primary-accent) !important;
  outline-offset: 2px !important;
}

/* Bottom Navigation Bar for Mobile PWA */
.mobile-bottom-nav,
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: rgba(10, 13, 18, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1030;
  padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 992px) {
  .mobile-bottom-nav,
  .bottom-nav {
    display: none !important;
  }
  body {
    padding-bottom: 24px !important;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  flex: 1;
  height: 100%;
  min-height: 48px; /* 48px touch target */
  transition: all 0.2s ease;
}

.bottom-nav-item i {
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.bottom-nav-item.active, .bottom-nav-item:hover {
  color: var(--primary-accent) !important;
  transform: translateY(-1px);
}

.bottom-nav-item.active i {
  color: var(--primary-accent);
}

