/* ProTurf Elite | Premium SaaS Stylesheet 
    Theme: Modern Sport-Tech (Violet, Slate, Glassmorphism)
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  /* Core Palette */
  --primary: #7c3aed;       /* Deep Violet */
  --primary-glow: rgba(124, 58, 237, 0.3);
  --accent: #00f2ff;        /* Cyber Cyan */
  --bg-body: #f8fafc;       /* Slate 50 */
  --bg-card: rgba(255, 255, 255, 0.8);
  
  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #0f172a;          /* Slate 900 */
  --slate-400: #94a3b8;
  
  /* Radii & Shadows */
  --radius-xl: 2rem;        /* 32px */
  --radius-md: 1rem;
  --shadow-premium: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

/* Global Reset */
body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-body);
  color: var(--dark);
  line-height: 1.6;
  
  overflow-x: hidden;
}

h1, h2, h3, .sport-font {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* --- Layout: Sidebar (SaaS Style) --- */
.sidebar {
  background: var(--dark);
  border-right: 1px solid rgba(255,255,255,0.05);
  min-height: 100vh;
  padding: 1.5rem;
}

.sidebar .nav-link {
  color: var(--slate-400);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sidebar .nav-link:hover {
  color: white;
  background: rgba(255,255,255,0.05);
  transform: translateX(8px);
}

.sidebar .nav-link.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 15px -3px var(--primary-glow);
}

.sidebar .nav-link i {
  margin-right: 12px;
  font-size: 1.2rem;
  vertical-align: middle;
}

/* --- Glassmorphism Cards --- */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-premium);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 30px -10px rgba(124, 58, 237, 0.1);
}

.card-header {
  background: transparent;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* --- Buttons: Premium SaaS Look --- */
.btn {
  border-radius: 100px; /* Pill style */
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
  border: none;
  box-shadow: 0 8px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 20px var(--primary-glow);
}

/* --- Modern Form Inputs --- */
.form-control {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

/* --- Booking Slots (Schedule App Style) --- */
.slot-btn {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  transition: all 0.3s ease;
  position: relative;
}

.slot-btn::after {
  content: 'AVAILABLE';
  font-size: 0.6rem;
  display: block;
  color: var(--success);
  margin-top: 4px;
}

.slot-btn:hover {
  border-color: var(--primary);
  background: var(--bg-body);
}

.slot-btn.slot-selected {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}

/* --- Timeline (The "Arena" Flow) --- */
.timeline::before {
  background: linear-gradient(to bottom, transparent, var(--primary), transparent);
}

.timeline-item::before {
  background-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

/* --- Premium SaaS Components (New) --- */

/* Badge Styles */
.badge-sport {
  padding: 0.5em 1em;
  border-radius: 6px;
  font-family: 'Space Grotesk';
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
}

/* The Whistle Preloader (Matching Landing Page) */
#loader {
  position: fixed; inset: 0; background: #0f172a;
  display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 99999;
}

.ball-bounce {
  width: 40px; height: 40px; background: #fff; border-radius: 50%;
  animation: bounce 0.5s alternate infinite ease-in;
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-40px); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: var(--dark);
  border-radius: 10px;
  border: 3px solid var(--bg-body);
}

/* QR Code Container */
.qr-container {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-xl);
  display: inline-block;
  border: 2px dashed var(--primary);
}

/* --- Navigation (Auto-hide support) --- */
.nav-hidden { transform: translateY(-100%); }
.nav-visible { transform: translateY(0); transition: transform 0.4s ease; }

/* Responsive adjustments */
@media (max-width: 768px) {
  :root { --radius-xl: 1.5rem; }
  .sidebar { padding: 1rem; }
}