/* ==========================================================================
   WORLD ENDURANCE RANKINGS - VISUAL DESIGN SYSTEM
   Vanilla CSS Styling for Premium SaaS Experience
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* CSS Custom Properties / Tokens */
:root {
  /* Color Palette */
  --bg-primary: #08090c;
  --bg-secondary: #0f111a;
  --bg-tertiary: #171926;
  
  --accent-purple: #9d4edd;
  --accent-purple-glow: rgba(157, 78, 221, 0.4);
  --accent-cyan: #00f0ff;
  --accent-cyan-glow: rgba(0, 240, 255, 0.3);
  --accent-green: #00ff87;
  --accent-green-glow: rgba(0, 255, 135, 0.2);
  --accent-gold: #ffb703;
  
  --text-primary: #f8f9fa;
  --text-secondary: #adb5bd;
  --text-muted: #6c757d;
  
  --border-glow: rgba(255, 255, 255, 0.05);
  --border-glow-hover: rgba(157, 78, 221, 0.2);
  
  /* Glassmorphism Styling */
  --glass-bg: rgba(15, 17, 26, 0.7);
  --glass-border: rgba(255, 255, 255, 0.04);
  --glass-blur: blur(16px);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  /* Fonts */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Layout */
  --sidebar-width: 260px;
  --header-height: 70px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  height: 100%;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 8px var(--accent-cyan-glow);
}

ul {
  list-style: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* App Shell Layout */
#app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: var(--header-height) 1fr;
  grid-template-areas: 
    "sidebar header"
    "sidebar main";
  height: 100vh;
  overflow: hidden;
}

/* Header Styling */
header {
  grid-area: header;
  background-color: rgba(8, 9, 12, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  z-index: 100;
}

.search-bar-header {
  position: relative;
  width: 350px;
}

.search-bar-header input {
  width: 100%;
  padding: 10px 15px 10px 40px;
  background: rgba(23, 25, 38, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.search-bar-header input:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px var(--accent-purple-glow);
  background: rgba(23, 25, 38, 0.8);
}

.search-bar-header svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  fill: var(--text-secondary);
  width: 16px;
  height: 16px;
}

.user-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.persona-select-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(157, 78, 221, 0.1);
  padding: 6px 12px;
  border-radius: 30px;
  border: 1px solid rgba(157, 78, 221, 0.2);
}

.persona-select-container label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.persona-select-container select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  outline: none;
}

.persona-select-container select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), filter 0.2s ease;
}

.user-profile-badge:hover {
  transform: translateY(-1px) scale(1.03);
  filter: brightness(1.1);
}

.user-profile-badge img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
  transition: box-shadow 0.2s ease;
}

.user-profile-badge:hover img {
  box-shadow: 0 0 15px var(--accent-cyan), 0 0 5px var(--accent-cyan-glow);
}

.user-profile-badge span {
  font-weight: 500;
  font-size: 0.95rem;
}

/* Sidebar Navigation */
aside {
  grid-area: sidebar;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  padding: 20px;
  z-index: 101;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding-left: 10px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--accent-purple-glow);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-name span {
  display: block;
  font-size: 0.75rem;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  font-weight: 500;
  margin-top: 2px;
}

nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

nav li a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 15px;
  border-radius: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

nav li a svg {
  width: 20px;
  height: 20px;
  fill: var(--text-secondary);
  transition: var(--transition-smooth);
}

nav li.active a, nav li a:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

nav li.active a {
  background: linear-gradient(90deg, rgba(157, 78, 221, 0.15), transparent);
  border-left: 3px solid var(--accent-purple);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  color: var(--text-primary);
}

nav li.active a svg, nav li a:hover svg {
  fill: var(--accent-cyan);
  filter: drop-shadow(0 0 5px var(--accent-cyan-glow));
}

.nav-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 25px 0 10px 15px;
}

.sidebar-footer {
  margin-top: auto;
  padding: 15px;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* Main Content Area */
main {
  grid-area: main;
  overflow-y: auto;
  padding: 40px;
  position: relative;
}

/* View Containers and Active States */
.view-panel {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.view-panel.active {
  display: block;
}

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

/* Premium Visual Elements: Gradients & Glows */
.gradient-text {
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.accent-gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Card System */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  padding: 25px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-glow-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px 0 rgba(157, 78, 221, 0.05);
}

.glass-card.purple-accent::before {
  background: linear-gradient(90deg, var(--accent-purple), transparent);
}

.glass-card.cyan-accent::before {
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
}

.glass-card.green-accent::before {
  background: linear-gradient(90deg, var(--accent-green), transparent);
}

/* Typography elements */
h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* Landing Page Hero Grid */
.landing-hero-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 40px;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent-purple), #7b2cbf);
  color: var(--text-primary);
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(157, 78, 221, 0.3);
  transition: var(--transition-smooth);
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(157, 78, 221, 0.5);
}

/* Metrics Dashboard Row */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.metric-card {
  padding: 20px;
  text-align: center;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 5px;
}

.metric-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Grid Layouts for Panels */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.dashboard-three-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.large-list-container {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 5px;
}

/* Standard Premium Tables */
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-secondary);
  padding: 14px 16px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
  vertical-align: middle;
}

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

tbody tr {
  transition: var(--transition-smooth);
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.015);
}

/* Leaderboard Specific Styles */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

tr:nth-child(1) .rank-badge {
  background: rgba(255, 183, 3, 0.2);
  color: var(--accent-gold);
  border: 1px solid rgba(255, 183, 3, 0.4);
}

tr:nth-child(2) .rank-badge {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
}

tr:nth-child(3) .rank-badge {
  background: rgba(157, 78, 221, 0.2);
  color: var(--accent-purple);
  border: 1px solid rgba(157, 78, 221, 0.4);
}

/* Custom interactive controls (buttons, forms, selects) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--accent-purple);
  color: var(--text-primary);
}

.btn-primary:hover {
  background: #7b2cbf;
  box-shadow: 0 0 15px var(--accent-purple-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-cyan {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

.btn-cyan:hover {
  background: #00d8e6;
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

/* Tabs switcher in views */
.tabs-container {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

.tab-btn {
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.tab-btn.active {
  background: rgba(157, 78, 221, 0.15);
  color: var(--accent-purple);
}

.tab-btn:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

/* Premium Form Elements */
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-row-three {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
}

label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

input[type="text"], input[type="email"], input[type="number"], input[type="date"], select, textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(8, 9, 12, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 10px var(--accent-purple-glow);
}

/* File Upload Drag & Drop Area */
.upload-dropzone {
  border: 2px dashed rgba(157, 78, 221, 0.3);
  background: rgba(157, 78, 221, 0.02);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-bottom: 25px;
}

.upload-dropzone:hover {
  border-color: var(--accent-purple);
  background: rgba(157, 78, 221, 0.05);
}

.upload-dropzone svg {
  width: 48px;
  height: 48px;
  fill: var(--accent-purple);
  margin-bottom: 15px;
}

/* Simulator Panel Components */
.simulator-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
}

.slider-group {
  margin-bottom: 25px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.slider-val {
  font-weight: 700;
  color: var(--accent-cyan);
}

input[type="range"] {
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

/* Math block visualization */
.math-block {
  background: rgba(8, 9, 12, 0.4);
  padding: 15px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 1.1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.02);
  color: var(--accent-cyan);
  margin-bottom: 20px;
}

/* Badge system */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-purple { background: rgba(157, 78, 221, 0.15); color: var(--accent-purple); }
.badge-cyan { background: rgba(0, 240, 255, 0.15); color: var(--accent-cyan); }
.badge-green { background: rgba(0, 255, 135, 0.15); color: var(--accent-green); }
.badge-gold { background: rgba(255, 183, 3, 0.15); color: var(--accent-gold); }
.badge-red { background: rgba(230, 57, 70, 0.15); color: #e63946; }

/* Custom Switch Toggle button */
.switch-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-toggle {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--bg-tertiary);
  transition: .3s;
  border-radius: 24px;
}

.slider-toggle:before {
  position: absolute;
  content: "";
  height: 16px; width: 16px;
  left: 4px; bottom: 4px;
  background-color: var(--text-primary);
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider-toggle {
  background-color: var(--accent-purple);
}

input:checked + .slider-toggle:before {
  transform: translateX(20px);
}

/* Notification popups */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-tertiary);
  border-left: 4px solid var(--accent-cyan);
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Mobile responsive styles */
@media (max-width: 1024px) {
  #app-shell {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "header"
      "main";
  }
  aside {
    display: none; /* In a real mobile app, we'd add a slide-out hamburger menu */
  }
  header {
    padding: 0 20px;
  }
  .search-bar-header {
    width: 200px;
  }
  main {
    padding: 20px;
  }
  .landing-hero-section {
    grid-template-columns: 1fr;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .simulator-layout {
    grid-template-columns: 1fr;
  }
}

/* Organiser Accordion Tree styling */
.org-tree {
  margin-top: 15px;
}
.org-tree-node {
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-smooth);
}
.org-tree-header {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.org-tree-header:hover {
  background: rgba(255, 255, 255, 0.04);
}
.org-tree-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.org-tree-arrow {
  transition: transform 0.2s ease;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.org-tree-arrow.expanded {
  transform: rotate(90deg);
  color: var(--accent-purple);
}
.org-tree-content {
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  display: none;
  background: rgba(0, 0, 0, 0.15);
}
.org-tree-content.expanded {
  display: block;
}

/* Nesting indentation and accents */
.series-level {
  border-left: 2px solid var(--accent-purple);
  padding-left: 12px;
  margin-bottom: 12px;
  margin-top: 8px;
}
.series-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.series-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}
.venue-level {
  border-left: 2px solid var(--accent-cyan);
  padding-left: 12px;
  margin-bottom: 10px;
  margin-top: 6px;
}
.venue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.venue-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-cyan);
}
.race-level {
  border-left: 2px solid var(--accent-green);
  padding-left: 12px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.015);
  padding: 8px 12px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.race-title {
  color: var(--text-secondary);
}
.race-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.tree-action-link {
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.tree-action-link:hover {
  color: var(--accent-cyan);
}
.tree-action-btn-sm {
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
  background: rgba(157, 78, 221, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(157, 78, 221, 0.2);
  cursor: pointer;
  transition: var(--transition-smooth);
}
.tree-action-btn-sm:hover {
  background: var(--accent-purple);
  color: #fff;
}
.tree-action-btn-sm.scrape-btn {
  background: rgba(0, 255, 135, 0.1);
  color: var(--accent-green);
  border-color: rgba(0, 255, 135, 0.2);
}
.tree-action-btn-sm.scrape-btn:hover {
  background: var(--accent-green);
  color: var(--bg-primary);
}
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

/* Mix & Match Sports Custom Styles */
#mix-match-tree-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.mix-match-sport-col {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}

.mix-match-sport-col:hover {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.06);
}

.mix-match-sport-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
  margin-bottom: 4px;
}

.mix-match-format-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 18px;
}

.mix-match-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  transition: color 0.15s ease;
}

.mix-match-item input[type="checkbox"] {
  accent-color: var(--accent-cyan);
  cursor: pointer;
  width: 14px;
  height: 14px;
  margin: 0;
}

.mix-match-item:hover {
  color: var(--text-primary);
}

.mix-match-badge-indicator {
  font-size: 0.7rem;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--accent-cyan);
  padding: 1px 4px;
  border-radius: 4px;
  margin-left: auto;
  font-weight: 600;
}

/* Spinner Keyframes for GPX Sandbox Loader */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Palmares Trophy Floating Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}


