/* =================== RankUp Billiards V06 - Main Styles =================== */

/* ===== UNIFIED DESIGN SYSTEM ===== */
:root {
  /* ===== BREAKPOINTS (Mobile-First) ===== */
  --bp-xs: 0px;          /* 0px - 479px: Extra small phones */
  --bp-sm: 480px;        /* 480px - 639px: Small phones */ 
  --bp-md: 640px;        /* 640px - 767px: Large phones */
  --bp-lg: 768px;        /* 768px - 1023px: Tablets */
  --bp-xl: 1024px;       /* 1024px - 1279px: Small laptops */
  --bp-2xl: 1280px;      /* 1280px+: Large screens */
  
  /* ===== FLUID SPACING SYSTEM ===== */
  --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
  --space-sm: clamp(0.5rem, 1vw, 0.75rem);
  --space-md: clamp(0.75rem, 1.5vw, 1rem);
  --space-lg: clamp(1rem, 2vw, 1.5rem);
  --space-xl: clamp(1.5rem, 3vw, 2rem);
  --space-2xl: clamp(2rem, 4vw, 3rem);
  --space-3xl: clamp(2.5rem, 5vw, 4rem);
  
  /* ===== FLUID TYPOGRAPHY ===== */
  --text-xs: clamp(0.75rem, 1.5vw, 0.875rem);
  --text-sm: clamp(0.875rem, 2vw, 1rem);
  --text-base: clamp(1rem, 2.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 3vw, 1.25rem);
  --text-xl: clamp(1.25rem, 3.5vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 4vw, 2rem);
  --text-3xl: clamp(2rem, 5vw, 2.5rem);
  
  /* ===== FLUID BORDER RADIUS ===== */
  --radius-xs: clamp(0.125rem, 0.5vw, 0.25rem);
  --radius-sm: clamp(0.25rem, 1vw, 0.5rem);
  --radius-md: clamp(0.5rem, 1.5vw, 0.75rem);
  --radius-lg: clamp(0.75rem, 2vw, 1rem);
  --radius-xl: clamp(1rem, 3vw, 1.5rem);
  --radius-2xl: clamp(1.5rem, 4vw, 2rem);
  
  /* ===== Z-INDEX SYSTEM ===== */
  --z-base: 0;
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-fixed: 30;
  --z-modal-backdrop: 40;
  --z-modal: 50;
  --z-popover: 60;
  --z-tooltip: 70;
  --z-toast: 80;
  --z-loading: 90;
  --z-debug: 999;
  --z-layer-overlay: 100;
  --z-layer-system: 120;
  --z-layer-modal: 140;
  --z-layer-toast: 160;
  --z-layer-header: 200;
  --z-layer-dropdown: 220;
  
  /* ===== CONTAINER SYSTEM ===== */
  --container-xs: 100%;
  --container-sm: 100%;
  --container-md: 100%;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  
  /* ===== COMPONENT DIMENSIONS ===== */
  --header-height: clamp(3.5rem, 8vw, 4rem);
  --sidebar-width: clamp(240px, 20vw, 280px);
  --sidebar-collapsed: clamp(3rem, 8vw, 4rem);
  --button-height: clamp(2.5rem, 6vw, 3rem);
  --input-height: clamp(2.5rem, 6vw, 3rem);
  --touch-target: clamp(2.75rem, 7vw, 3rem); /* 44px minimum */
  
  /* ===== MODAL SYSTEM ===== */
  --modal-padding: var(--space-lg);
  --modal-max-width: min(90vw, 1200px);
  --modal-max-height: min(90vh, 800px);
  --modal-mobile-padding: var(--space-sm);
  
  /* ===== SHADOWS (Depth System) ===== */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px 0 rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px 0 rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 16px 32px 0 rgba(0, 0, 0, 0.2);
  --shadow-2xl: 0 24px 48px 0 rgba(0, 0, 0, 0.25);
  
  /* ===== TRANSITIONS ===== */
  --transition-fast: 0.1s ease-out;
  --transition-normal: 0.2s ease-out;
  --transition-slow: 0.3s ease-out;
  --transition-layout: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* ===== RESPONSIVE UTILITIES ===== */
  --mobile-safe-top: env(safe-area-inset-top, 0);
  --mobile-safe-bottom: env(safe-area-inset-bottom, 0);
  --mobile-safe-left: env(safe-area-inset-left, 0);
  --mobile-safe-right: env(safe-area-inset-right, 0);
  
  /* ===== DYNAMIC VIEWPORT ===== */
  --vh-small: 100vh;
  --vh-large: 100vh;
  --vh-dynamic: 100dvh;
}

/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
}

html {
  /* Prevent horizontal scroll */
  overflow-x: hidden;
  /* Smooth scrolling */
  scroll-behavior: smooth;
  /* Better font rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: var(--vh-dynamic);
  overflow-x: hidden;
  
  /* Mobile safe areas */
  padding-top: var(--mobile-safe-top);
  padding-bottom: var(--mobile-safe-bottom);
  padding-left: var(--mobile-safe-left);
  padding-right: var(--mobile-safe-right);
}

/* ===== RESPONSIVE UTILITIES ===== */

/* Container System */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

@media (min-width: 480px) {
  .container { max-width: var(--container-sm); }
}

@media (min-width: 640px) {
  .container { max-width: var(--container-md); }
}

@media (min-width: 768px) {
  .container { max-width: var(--container-lg); }
}

@media (min-width: 1024px) {
  .container { max-width: var(--container-xl); }
}

@media (min-width: 1280px) {
  .container { max-width: var(--container-2xl); }
}

/* Fluid Spacing System */
.p-fluid { padding: var(--space-md); }
.px-fluid { padding-left: var(--space-md); padding-right: var(--space-md); }
.py-fluid { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.pt-fluid { padding-top: var(--space-md); }
.pb-fluid { padding-bottom: var(--space-md); }
.pl-fluid { padding-left: var(--space-md); }
.pr-fluid { padding-right: var(--space-md); }

.m-fluid { margin: var(--space-md); }
.mx-fluid { margin-left: var(--space-md); margin-right: var(--space-md); }
.my-fluid { margin-top: var(--space-md); margin-bottom: var(--space-md); }
.mt-fluid { margin-top: var(--space-md); }
.mb-fluid { margin-bottom: var(--space-md); }
.ml-fluid { margin-left: var(--space-md); }
.mr-fluid { margin-right: var(--space-md); }

/* Fluid Typography */
.text-fluid-xs { font-size: var(--text-xs); }
.text-fluid-sm { font-size: var(--text-sm); }
.text-fluid-base { font-size: var(--text-base); }
.text-fluid-lg { font-size: var(--text-lg); }
.text-fluid-xl { font-size: var(--text-xl); }
.text-fluid-2xl { font-size: var(--text-2xl); }
.text-fluid-3xl { font-size: var(--text-3xl); }

/* Dynamic Layout System */
.layout-responsive {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .layout-responsive {
    grid-template-columns: auto 1fr;
  }
}

@media (min-width: 1024px) {
  .layout-responsive {
    grid-template-columns: var(--sidebar-width) 1fr;
  }
}

/* Flexible Components */
.component-fluid {
  width: 100%;
  min-height: var(--touch-target);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.button-fluid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: var(--touch-target);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

/* Mobile-First Breakpoint System */
@media (max-width: 479px) {
  .mobile-hidden { display: none !important; }
  .mobile-full { width: 100% !important; }
  .mobile-stack { flex-direction: column !important; }
  .mobile-center { text-align: center !important; }
}

@media (min-width: 480px) and (max-width: 639px) {
  .sm-hidden { display: none !important; }
  .sm-full { width: 100% !important; }
}

@media (min-width: 640px) and (max-width: 767px) {
  .md-hidden { display: none !important; }
  .md-full { width: 100% !important; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .lg-hidden { display: none !important; }
  .lg-full { width: 100% !important; }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .xl-hidden { display: none !important; }
}

@media (min-width: 1280px) {
  .xxl-hidden { display: none !important; }
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: rgba(71, 85, 105, 0.7);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(71, 85, 105, 0.9);
}

/* ===== Custom Animations ===== */
@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(10px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes slideUp {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@keyframes scaleIn {
  from { 
    opacity: 0; 
    transform: scale(0.95); 
  }
  to { 
    opacity: 1; 
    transform: scale(1); 
  }
}

@keyframes pulse {
  0%, 100% { 
    transform: scale(1); 
  }
  50% { 
    transform: scale(1.05); 
  }
}

/* ===== Navigation Styles ===== */
.nav-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #d1d5db;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(51, 65, 81, 0.4);
  transition: all var(--transition-normal);
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-tab:hover {
  color: #ffffff;
  background: rgba(51, 65, 81, 0.8);
  border-color: rgba(71, 85, 105, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-tab.active {
  color: #ffffff;
  /* Softer primary tone for dark theme */
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
  font-weight: 600;
  text-shadow: none;
}

/* Tone down glow border for active tabs */
.nav-tab.active::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: rgba(37, 99, 235, 0.25);
  z-index: -1;
}

/* Mobile navigation */
.mobile-tab {
  justify-content: flex-start;
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
}

.mobile-tab:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #ffffff;
}

.mobile-tab.active {
  background: rgba(37, 99, 235, 0.18);
  color: #ffffff;
  border-color: rgba(37, 99, 235, 0.35);
}

/* ===== Page Content ===== */
.page-content {
  animation: fadeIn 0.3s ease-out;
  position: relative;
  z-index: var(--z-sticky, 20);
  overflow: visible;
}
/* Contact page stacking safeguard */
#content-contact {
  position: relative;
  z-index: var(--z-fixed, 30);
  overflow: visible;
}

.page-content h2 {
  font-weight: 700;
  line-height: 1.2;
}

.page-content h3 {
  font-weight: 600;
  color: #f8fafc;
}

.page-content h4 {
  font-weight: 600;
  color: #f1f5f9;
}

/* ===== Sidebar Styles ===== */
#sidebar {
  transition: transform var(--transition-normal);
}

#sidebar.collapsed {
  transform: translateX(-100%);
}

/* ===== Level Selector ===== */
.level-btn {
  position: relative;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition-normal);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.level-btn:hover:not(.active) {
  background: rgba(71, 85, 105, 0.8) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.level-btn.active {
  background: linear-gradient(135deg, #60a5fa, #2563eb) !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35), 0 6px 16px rgba(37, 99, 235, 0.25) !important;
}

/* Level buttons */
.level-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.5rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(51, 65, 81, 0.5);
  border-radius: var(--radius-md);
  color: #9ca3af;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.level-btn:hover {
  background: rgba(51, 65, 81, 0.7);
  color: #e5e7eb;
  border-color: rgba(59, 130, 246, 0.5);
}

.level-btn.active {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* ===== Content Item Enhancements ===== */
.content-item {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.content-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: rgba(59, 130, 246, 0.5) !important;
}

.content-item h4 {
  color: #ffffff;
  font-weight: 600;
  transition: color 0.2s ease;
}

.content-item:hover h4 {
  color: theme('colors.primary.400');
}

.content-item p {
  color: #cbd5e1;
  line-height: 1.6;
}

/* ===== Form Elements ===== */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  color: #e5e7eb;
  font-size: 0.875rem;
  transition: all var(--transition-normal);
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
  color: #64748b;
}

/* ===== Button Styles ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #ffffff;
  border-color: #3b82f6;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: rgba(51, 65, 81, 0.6);
  color: #d1d5db;
  border-color: rgba(51, 65, 81, 0.8);
}

.btn-secondary:hover {
  background: rgba(71, 85, 105, 0.8);
  color: #ffffff;
}

.btn-ghost {
  background: transparent;
  color: #9ca3af;
  border-color: rgba(51, 65, 81, 0.5);
}

.btn-ghost:hover {
  background: rgba(51, 65, 81, 0.3);
  color: #e5e7eb;
}

/* Icon buttons */
.btn-icon {
  padding: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

/* ===== Card Styles ===== */
.card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(51, 65, 81, 0.5);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(51, 65, 81, 0.3);
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(51, 65, 81, 0.3);
  background: rgba(15, 23, 42, 0.3);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* ===== Tag Styles ===== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 9999px;
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tag:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.5);
  color: #dbeafe;
}

.tag.active {
  background: #3b82f6;
  color: #ffffff;
}

/* ===== Status Indicators ===== */
.status-indicator {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-connected {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-disconnected {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-loading {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* ===== Loading States ===== */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  100% {
    left: 100%;
  }
}

/* ===== Admin Mode Styles ===== */
.admin-mode [data-editable],
.admin-mode [data-edit] {
  position: relative;
  cursor: text;
  border-radius: 0.25rem;
  transition: all var(--transition-fast);
}

.admin-mode [data-editable]:hover,
.admin-mode [data-edit]:hover {
  background: rgba(59, 130, 246, 0.1);
  outline: 1px dashed rgba(59, 130, 246, 0.4);
}

.editing {
  background: rgba(59, 130, 246, 0.15) !important;
  outline: 2px solid #3b82f6 !important;
  border-radius: 0.375rem;
}

/* ===== Search Results ===== */
.search-result-item {
  padding: 1rem;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(51, 65, 81, 0.3);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.search-result-item:hover {
  background: rgba(51, 65, 81, 0.6);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-highlight {
  background: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  padding: 0.1rem 0.2rem;
  border-radius: 0.25rem;
}

/* ===== Responsive Design ===== */

/* Mobile-first responsive header */
@media (max-width: 640px) {
  header {
    position: sticky;
    top: 0;
    z-index: var(--z-modal, 50);
  }
  
  /* Compact mobile header */
  header .container {
    padding: 0.5rem 0.5rem;
  }
  
  /* Mobile navigation styling */
  #mobile-nav {
    border-top: 1px solid rgba(55, 65, 81, 0.5);
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(12px);
  }
  
  .mobile-tab {
    background: rgba(31, 41, 55, 0.5);
    border: 1px solid rgba(55, 65, 81, 0.3);
    transition: all 0.2s ease;
  }
  
  .mobile-tab:hover {
    background: rgba(55, 65, 81, 0.7);
    border-color: rgba(75, 85, 99, 0.5);
  }
  
  .mobile-tab.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: rgb(147, 197, 253);
  }
  
  /* Hide mobile nav initially */
  #mobile-nav.hidden {
    display: none;
  }
}

@media (max-width: 1024px) {
  #sidebar {
    position: fixed;
    top: 73px;
    left: 0;
    height: calc(100vh - 73px);
    z-index: var(--z-fixed, 30);
    transform: translateX(-100%);
  }
  
  #sidebar.show {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .card-body {
    padding: 0.75rem;
  }
  
  .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .nav-tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
  
  /* Mobile content adjustments */
  .main-content {
    padding: 1rem 0.5rem;
  }
  
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  /* Make search input mobile-friendly */
  input[type="text"], input[type="search"] {
    font-size: 16px; /* Prevent iOS zoom */
  }
  
  /* Make tabs horizontally scrollable on small screens */
  .lesson-modal .flex.border-b {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.25rem;
  }
  .lesson-modal .tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  /* General safeguard for any tab rows */
  .flex.border-b {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  /* Single-line clamp for title/desc/tags on mobile */
}
  .lesson-card .desc {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .lesson-card .tags {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-width: 0 !important;
  }
  /* Ensure modal content fits viewport height */
  .lesson-modal .modal-content {
    width: 100% !important;
    height: 95vh !important;
    max-height: 95vh !important;
    border-radius: 0.75rem !important;
  }
}

/* ===== Print Styles ===== */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .card {
    border: 1px solid #ccc !important;
    background: white !important;
  }
}

/* ===== High Contrast Mode ===== */
@media (prefers-contrast: high) {
  .nav-tab {
    border-width: 2px;
  }
  
  .content-item {
    border-width: 2px;
  }
  
  .form-input {
    border-width: 2px;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Focus Styles for Accessibility ===== */
*:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 0;
}

/* ===== Utility Classes ===== */
.fade-in { animation: fadeIn var(--transition-normal) ease-out; }
.slide-up { animation: slideUp var(--transition-normal) ease-out; }
.scale-in { animation: scaleIn var(--transition-normal) ease-out; }
.pulse { animation: pulse 2s infinite; }

.backdrop-blur { backdrop-filter: blur(12px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.backdrop-blur-lg { backdrop-filter: blur(16px); }

.glass {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(51, 65, 81, 0.3);
}

.gradient-text {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Ensure gradient text never paints a solid block behind text */
.bg-clip-text.text-transparent {
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  display: inline-block !important; /* prevent full-width gradient blocks */
}

/* Specific safeguards for titles using gradient text */
#site-title.bg-clip-text.text-transparent,
h1.bg-clip-text.text-transparent,
h2.bg-clip-text.text-transparent {
  background-color: transparent !important;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* ===== Lesson Modal Styles ===== */
.content-item {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Lesson Detail Modal & Tabs */
.lesson-modal {
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
}

.lesson-modal .modal-content {
  animation: slideIn 0.3s ease;
}

.tab-btn {
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

.tab-btn.active {
  background: linear-gradient(135deg, theme('colors.primary.600'), theme('colors.primary.700'));
  color: white !important;
  border-bottom-color: theme('colors.primary.400');
}

.tab-btn:hover:not(.active) {
  background-color: theme('colors.dark.700');
  color: theme('colors.white');
}

.tab-content {
  animation: fadeInContent 0.3s ease;
}

.tab-content.hidden {
  display: none;
}

/* Content styling in modal */
.lesson-modal .prose {
  max-width: none;
}

.lesson-modal .prose h3 {
  color: theme('colors.primary.400');
  border-bottom: 1px solid theme('colors.dark.600');
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.lesson-modal .prose h4 {
  color: theme('colors.white');
  margin-top: 1.5rem;
}

.lesson-modal .prose img {
  border-radius: 8px;
  border: 1px solid theme('colors.dark.600');
}

.lesson-modal .prose iframe {
  border-radius: 8px;
  border: 1px solid theme('colors.dark.600');
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  to { 
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fadeInContent {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Card hover effects */
.content-item {
  transition: all 0.3s ease;
}

.content-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.content-item:active {
  transform: translateY(-1px);
}

/* Close button */
.close-modal {
  transition: all 0.2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-modal:hover {
  background-color: theme('colors.red.500/20');
  color: theme('colors.red.600');
}

/* ===== Training Lessons Container ===== */
#training-lessons {
  /* Let Tailwind grid utilities control layout and gaps */
  min-height: 200px;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Ensure lesson cards are visible */
#training-lessons .content-item {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ===== Force visibility for training content (kept, but do not override grid classes) ===== */
#content_training #training-lessons {
  opacity: 1 !important;
}

/* ===== Simple Training System Styles ===== */
.lesson-card {
  backdrop-filter: blur(8px);
  border: 1px solid rgba(55, 65, 81, 0.7);
  transition: all 0.2s ease;
  display: block !important;
  width: 100% !important;
  min-height: 72px !important;
  height: auto !important;
  max-height: none !important;
  overflow: hidden;
}

/* Thumbnail container - always centered in lesson card */
.thumbnail-container {
  width: 80px !important;
  min-width: 80px !important;
  height: 80px !important;
  min-height: 80px !important;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center; /* Ensure thumbnail centers vertically in card */
}

/* Lessons list - single column layout */
.lessons-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* 12px spacing between cards */
  max-width: 100%;
  width: 100%;
}

/* Do not force single-column on new dynamic grids */
#training-lessons,
#athlete-lessons,
#strategy-lessons,
#supplementary-lessons {
  display: grid; /* This allows Tailwind grid utilities to apply properly */
}

.lesson-card:hover {
  border-color: rgb(59, 130, 246);
  transform: translateY(-1px);
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.15);
}

/* Mobile responsive tweaks for compact spacing without clipping */
@media (max-width: 768px) {
  .thumbnail-container {
    width: 60px !important;
    min-width: 60px !important;
    height: 60px !important;
    min-height: 60px !important;
    align-self: center; /* Keep centered on mobile */
  }
  .lesson-card .flex-1 {
    padding: 0.5rem 0.6rem !important;
  }
  .lesson-card h4 {
    font-size: 0.9rem !important;
    margin-bottom: 0.125rem !important;
    line-height: 1.2 !important;
  }
  .lesson-card p {
    font-size: 0.8rem !important;
    margin-bottom: 0.25rem !important;
    line-height: 1.3 !important;
  }
  .lesson-card .space-x-1 > * {
    margin-left: 0.25rem !important;
  }
  .lesson-card span {
    padding: 0.125rem 0.375rem !important;
    font-size: 0.7rem !important;
  }
}

/* Smooth animations for compact cards */
.lessons-list .lesson-card {
  animation: slideInUp 0.4s ease-out;
}

/* ===== Content responsiveness in rich text/prose ===== */
.prose img,
.prose video,
.prose iframe {
  max-width: 100% !important;
  height: auto !important;
}

/* Thumbnails: ensure background image contains fully */
.thumbnail-bg {
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

.prose pre,
.prose code {
  white-space: pre-wrap !important;
  word-break: break-word !important;
}

.prose table {
  display: block !important;
  width: 100% !important;
  overflow-x: auto !important;
}

.lessons-list .lesson-card:nth-child(1) { animation-delay: 0ms; }
.lessons-list .lesson-card:nth-child(2) { animation-delay: 50ms; }
.lessons-list .lesson-card:nth-child(3) { animation-delay: 100ms; }
.lessons-list .lesson-card:nth-child(4) { animation-delay: 150ms; }
.lessons-list .lesson-card:nth-child(5) { animation-delay: 200ms; }
.lessons-list .lesson-card:nth-child(6) { animation-delay: 250ms; }

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced hover effects for compact design */
.lesson-card:hover {
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25) !important;
  transform: translateY(-1px) !important;
}

.lesson-card:hover .thumbnail-bg {
  transform: scale(1.05);
}

.lesson-card:active {
  transform: translateY(0) !important;
  transition: transform 0.1s ease !important;
}

/* Text truncation utilities */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
}

/* Ensure proper text sizing for desktop */
.lesson-card h4 {
  font-size: 0.9rem !important;
  line-height: 1.2 !important;
  font-weight: 500 !important;
}

.lesson-card p {
  font-size: 0.75rem !important;
  line-height: 1.3 !important;
  color: #9ca3af !important;
}

/* Compact layout optimization */
.lesson-card .flex-1 {
  overflow: hidden;
}

.lessons-list {
  padding: 0.5rem 0;
}

/* Locked lesson styles */
.locked-lesson {
  border-color: rgba(75, 85, 99, 0.5) !important;
  background: rgba(31, 41, 55, 0.3) !important;
}

.locked-lesson:hover {
  border-color: rgba(75, 85, 99, 0.7) !important;
  transform: none !important;
  box-shadow: none !important;
}

.locked-lesson .thumbnail-bg {
  filter: grayscale(100%) brightness(0.6) !important;
}

.locked-lesson .thumbnail-bg:hover {
  transform: none !important;
}

/* Lock overlay animation */
.locked-lesson .absolute {
  animation: lockPulse 2s infinite;
}

@keyframes lockPulse {
  0%, 100% { 
    opacity: 0.8; 
  }
  50% { 
    opacity: 1; 
  }
}

/* Access denied modal */
.access-denied-modal {
  backdrop-filter: blur(8px);
}

.access-denied-modal .bg-gray-800 {
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Progress bar animation */
.progress-bar {
  animation: progressFill 0.8s ease-out;
}

@keyframes progressFill {
  from {
    width: 0%;
  }
  to {
    width: var(--progress-width);
  }
}

/* Enhanced responsive tags */
.tags {
  min-height: 1.5rem;
  line-height: 1.5rem;
}

/* Sidebar animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Tag responsive visibility */
@media (max-width: 640px) {
  .tags .hidden.sm\:inline-block:nth-child(n+4) {
    display: none !important;
  }
  
  .tags .hidden.sm\:inline:nth-child(n+4) {
    display: none !important;
  }
}

@media (min-width: 641px) {
  .tags .sm\:hidden {
    display: none !important;
  }
  
  .tags .hidden.sm\:inline-block {
    display: inline-block !important;
  }
  
  .tags .hidden.sm\:inline {
    display: inline !important;
  }
}
/**
 * Content Creator Module CSS - V09
 * Same styling as main project với additional edit features
 */

/* Base styles from main project */
body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  min-height: 100vh;
}

/* Lesson Card Styles (Same as training) */
.lesson-card {
  transition: all 0.3s ease;
  position: relative;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.lesson-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.lesson-card.locked-lesson:hover {
  transform: none;
  box-shadow: none;
}

/* Thumbnail styles */
.thumbnail-container {
  border-radius: 12px 0 0 12px;
  position: relative;
  overflow: hidden;
}

.thumbnail-bg {
  transition: transform 0.3s ease;
}

.lesson-card:hover .thumbnail-bg {
  transform: scale(1.05);
}

/* Edit Overlay - NEW FEATURE */
.edit-overlay {
  opacity: 1 !important;
  pointer-events: auto !important;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  border-radius: 0 12px 0 8px;
  transition: opacity 0.2s ease;
  z-index: var(--z-dropdown, 10);
}

.edit-lesson-btn {
  padding: 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.edit-lesson-btn:hover {
  background: rgba(251, 191, 36, 0.2);
  transform: scale(1.1);
}

/* Modal Styles (Same as training) */
.lesson-modal,
.editor-modal {
  backdrop-filter: blur(8px);
}

.lesson-modal-content,
.editor-modal-content {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Rich Editor Styles - NEW FEATURE */
.rich-editor {
  background: #1f2937;
  border: 2px solid #374151;
  border-radius: 8px;
  padding: 16px;
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.6;
}

.rich-editor:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.rich-editor p {
  margin-bottom: 1em;
}

.rich-editor p:last-child {
  margin-bottom: 0;
}

.rich-editor h1, .rich-editor h2, .rich-editor h3 {
  font-weight: 600;
  margin-bottom: 0.5em;
  color: #60a5fa;
}

.rich-editor img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1em 0;
}

.rich-editor ul, .rich-editor ol {
  margin-left: 1.5em;
  margin-bottom: 1em;
}

.rich-editor blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 1em;
  margin: 1em 0;
  font-style: italic;
  color: #d1d5db;
}

/* Inserted Image Styles - NEW FEATURE */
.rich-editor .inserted-image {
  border: 1px dashed #4b5563;
  cursor: pointer;
}

.rich-editor .inserted-image:hover {
  border-color: #3b82f6;
}

/* Form Styles */
.form-input,
.form-select,
.form-textarea {
  background: #374151;
  border: 1px solid #4b5563;
  color: #ffffff;
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.2s ease;
  font-size: 14px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ca3af;
}

/* Button Styles */
.btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.btn-success:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.btn-warning:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
}

/* Level Buttons (Same as training) */
.level-btn {
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.level-btn:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

.level-btn.active {
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Tags Styles (Same as training) */
.tags span {
  transition: all 0.2s ease;
}

.tags span:hover {
  transform: scale(1.05);
}

/* Notification Styles */
.notification {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  font-weight: 500;
  z-index: var(--z-layer-toast, 160);
}

.notification.success {
  background: linear-gradient(135deg, #10b981, #059669);
  border: 1px solid #34d399;
}

.notification.error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border: 1px solid #f87171;
}

/* Loading Animation */
.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Fade In Animation */
.fade-in {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Video Container Styles - NEW FEATURE */
.video-responsive-container {
  width: 100%;
  margin: 1rem 0;
}

.video-aspect-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  border-radius: 0.5rem;
  background: #1f2937;
}

.video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0.5rem;
}

/* Video alignment styles */
.video-responsive-container[style*="text-align: left"] {
  text-align: left;
}

.video-responsive-container[style*="text-align: center"] {
  text-align: center;
}

.video-responsive-container[style*="text-align: right"] {
  text-align: right;
}

/* Responsive video sizes */
@media (max-width: 768px) {
  .video-aspect-wrapper {
    padding-bottom: 56.25%; /* Maintain 16:9 on mobile */
  }
}

@media (max-width: 480px) {
  .video-responsive-container {
    margin: 0.75rem 0;
  }
  
  .video-aspect-wrapper {
    border-radius: 0.375rem;
  }
  
  .video-iframe {
    border-radius: 0.375rem;
  }
}

/* Editor video preview styles */
.rich-editor .video-responsive-container {
  border: 1px dashed #4b5563;
  transition: border-color 0.2s ease;
}

.rich-editor .video-responsive-container:hover {
  border-color: #3b82f6;
}

/* Video container in read-only mode */
.lesson-content .video-responsive-container {
  border: none;
}

/* Video loading state */
.video-aspect-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid #374151;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 1;
}

.video-iframe[src] + .video-aspect-wrapper::before {
  display: none;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .lesson-card {
    height: auto;
    min-height: 80px;
  }
  
  .thumbnail-container {
    width: 60px;
    height: 60px;
  }
  
  .edit-overlay {
    opacity: 1; /* Always visible on mobile */
    position: static;
    background: none;
    padding: 0;
    border-radius: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto;
    padding-right: 8px;
  }
  
  .lesson-modal,
  .editor-modal {
    padding: 0;
  }
  
  .lesson-modal-content,
  .editor-modal-content {
    border-radius: 0;
    height: 100vh;
    max-height: 100vh;
  }
  
  .notification {
    left: 16px;
    right: 16px;
    top: 16px;
    border-radius: 8px;
  }
}

/* Dark Mode Scrollbars */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #374151;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #6b7280;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Selection Color */
::selection {
  background: rgba(59, 130, 246, 0.3);
  color: inherit;
}

/* Focus Styles */
*:focus {
  outline: none;
}

button:focus,
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Prose Styles for lesson content */
.prose {
  color: #d1d5db;
  max-width: none;
}

.prose p {
  margin-bottom: 1.25em;
  line-height: 1.7;
}

.prose h1, .prose h2, .prose h3 {
  color: #f3f4f6;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 1em;
}

.prose h1 {
  font-size: 1.875rem;
}

.prose h2 {
  font-size: 1.5rem;
}

.prose h3 {
  font-size: 1.25rem;
}

.prose ul, .prose ol {
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose img {
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  margin: 1.5em 0;
}

.prose blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 1em;
  margin: 1.5em 0;
  font-style: italic;
  color: #9ca3af;
}

.prose code {
  background: #374151;
  color: #fbbf24;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.875em;
}

.prose pre {
  background: #1f2937;
  color: #f3f4f6;
  padding: 1em;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5em 0;
}

/* Utility Classes */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.backdrop-blur-xl {
  backdrop-filter: blur(24px);
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

/* ===== Athlete Section Styles ===== */
/* Tag sizes for athlete section */
.content-type-tag-large {
  font-size: 0.75rem !important;  /* Tăng lên để cân đối */
  font-weight: 600;
  flex-shrink: 0;
  padding: 0.125rem 0.25rem !important;  /* Giữ padding nhỏ */
  white-space: nowrap;
}

.article-tag-small {
  font-size: 0.65rem !important;  /* Tăng lên để cân đối */
  font-weight: 400;
  flex-shrink: 0;
  padding: 0.0625rem 0.1875rem !important;  /* Giữ padding nhỏ */
  white-space: nowrap;
}

/* Ellipsis indicator for tags */
.ellipsis-indicator {
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: 0.25rem;
  min-width: fit-content;
}

/* Athlete layout improvements */
.lesson-header {
  margin-bottom: 0.375rem; /* mb-1.5 equivalent (1.5 * 0.25rem = 0.375rem) */
}

/* Lesson thumbnail với tỷ lệ 1.914 - giữ nguyên chiều rộng tràn card */
.lesson-thumbnail-centered {
  width: 76.56%; /* Tràn toàn bộ chiều rộng card như hiện tại */
  height: 0;
  padding-bottom: 40%; /* 100% / 1.914 ≈ 52.25% để đạt tỷ lệ 1.914 */
  position: relative;
  overflow: hidden; /* Crop ảnh nếu cao hơn */
  border-radius: 0.5rem; /* Rounded corners */
}

/* Image và content bên trong lesson thumbnail */
.lesson-thumbnail-centered > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crop ảnh để fit container */
  object-position: center;
}

.thumbnail-section {
  margin-bottom: 0.375rem !important; /* mb-1.5 equivalent for thumb-description spacing */
}

.lesson-description-single {
  margin-bottom: 0.375rem; /* mb-1.5 equivalent (1.5 * 0.25rem = 0.375rem) */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lesson-tags-single-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

/* Lesson tags overflow container */
.lesson-tags-overflow {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

/* General tags overflow container */
.general-tags-overflow {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

/* Lesson pretag button */
.lesson-pretag-button {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.25rem;
  border: 1px solid;
  white-space: nowrap;
  flex-shrink: 0;
  height: 1.5rem;
  line-height: 1;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(79, 70, 229, 0.3));
  color: white;
  border-color: rgba(79, 70, 229, 0.2);
}

.lesson-enhanced {
  display: flex !important;
  align-items: flex-start;
  gap: 0.75rem;
}

.lesson-enhanced .flex-1 {
  flex: 1;
  min-width: 0;
  padding-top: 0.25rem;
}

/* Tag container single line constraint */
.flex.items-center.space-x-2 {
  flex-wrap: nowrap;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .content-type-tag-large {
    font-size: 0.65rem !important;  /* Tăng lên cho mobile */
    padding: 0.1rem 0.2rem !important;
  }
  
  .article-tag-small {
    font-size: 0.6rem !important;  /* Tăng lên cho mobile */
    padding: 0.05rem 0.15rem !important;
  }
  
  .lesson-description-single {
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }
  
  .line-clamp-2 {
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }
}

/* ===== COMPONENT STYLES - SEPARATED FROM JAVASCRIPT ===== */

/* ===== STATUS INDICATORS ===== */
.status-dot-connected {
  width: 0.5rem;
  height: 0.5rem;
  background-color: rgb(34 197 94); /* green-500 */
  border-radius: 9999px;
}

.status-dot-disconnected {
  width: 0.5rem;
  height: 0.5rem;
  background-color: rgb(239 68 68); /* red-500 */
  border-radius: 9999px;
}

.status-text-connected {
  color: rgb(74 222 128); /* green-400 */
}

.status-text-disconnected {
  color: rgb(248 113 113); /* red-400 */
}

/* ===== BUTTONS ===== */
.btn-disconnect {
  padding: 0.25rem 0.75rem;
  background-color: rgb(220 38 38); /* red-600 */
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
  color: white;
  border: none;
  cursor: pointer;
}

.btn-disconnect:hover {
  background-color: rgb(185 28 28); /* red-700 */
}

.btn-connect {
  padding: 0.25rem 0.75rem;
  background-color: rgb(37 99 235); /* blue-600 */
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
  color: white;
  border: none;
  cursor: pointer;
}

.btn-connect:hover {
  background-color: rgb(29 78 216); /* blue-700 */
}

/* ===== MESSAGES ===== */
.message-loading {
  text-align: center;
  padding: 2rem 0;
  color: rgb(156 163 175); /* gray-400 */
}

.message-no-content {
  text-align: center;
  padding: 2rem 0;
  color: rgb(156 163 175); /* gray-400 */
}

.message-error {
  text-align: center;
  padding: 2rem 0;
  color: rgb(248 113 113); /* red-400 */
}

.message-no-results {
  color: rgb(156 163 175); /* gray-400 */
  text-align: center;
  padding: 1rem 0;
}

/* ===== MODAL STYLES ===== */
.modal-content {
  background-color: rgb(31 41 55); /* dark-800 */
  border: 1px solid rgb(55 65 81); /* dark-700 */
  border-radius: 1rem;
  width: 100%;
  max-width: 80rem;
  max-height: 95vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid rgb(55 65 81); /* dark-700 */
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.modal-close {
  color: rgb(156 163 175); /* gray-400 */
  font-size: 1.875rem;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.15s ease-in-out;
  background: none;
  border: none;
}

.modal-close:hover {
  color: white;
}

.modal-tabs {
  display: flex;
  border-bottom: 1px solid rgb(55 65 81); /* dark-700 */
}

.modal-footer {
  padding: 1rem;
  border-top: 1px solid rgb(55 65 81); /* dark-700 */
  background-color: rgba(17, 24, 39, 0.5); /* dark-850/50 */
  text-align: center;
}

.modal-footer-text {
  color: rgb(107 114 128); /* gray-500 */
  font-size: 0.875rem;
}

/* ===== TAB STYLES ===== */
.tab-btn {
  padding: 0.5rem 1rem;
  transition: all 0.15s ease-in-out;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: rgb(156 163 175); /* gray-400 */
  border-bottom: 2px solid transparent;
  font-weight: 500;
  font-size: 0.875rem; /* text-sm */
}

.tab-btn.active {
  background: linear-gradient(to right, rgb(147 51 234), rgb(219 39 119)); /* purple-600 to pink-600 */
  color: white;
  border-bottom-color: rgb(147 51 234); /* purple-600 */
  box-shadow: 0 4px 6px -1px rgba(147, 51, 234, 0.3);
}

.tab-btn:not(.active) {
  color: rgb(156 163 175); /* gray-400 */
}

.tab-btn:not(.active):hover {
  color: white;
  background-color: rgb(55 65 81); /* dark-700 */
  border-bottom-color: rgb(75 85 99); /* gray-600 */
}

/* ===== MODAL SPECIFIC STYLES ===== */
#registerModal .bg-dark-800\/50 {
  max-height: calc(90vh - 140px);
  overflow-y: auto;
}

#registerModal .bg-dark-800\/50::-webkit-scrollbar {
  width: 4px;
}

#registerModal .bg-dark-800\/50::-webkit-scrollbar-track {
  background: rgba(31, 41, 55, 0.5);
}

#registerModal .bg-dark-800\/50::-webkit-scrollbar-thumb {
  background: rgba(75, 85, 99, 0.8);
  border-radius: 2px;
}

#registerModal .bg-dark-800\/50::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 114, 128, 0.9);
}

/* ===== LESSON TAGS ===== */
.level-tag {
  padding: 0.125rem 0.25rem;  /* Giữ padding nhỏ */
  background-color: rgba(59, 130, 246, 0.2); /* blue-500/20 */
  color: rgb(96 165 250); /* blue-400 */
  border-radius: 0.125rem;
  font-size: 0.75rem;  /* Tăng lên để cân đối */
  font-weight: 500;
  white-space: nowrap;
}

.general-tag {
  padding: 0.125rem 0.25rem;  /* Giữ padding nhỏ */
  background-color: rgb(55 65 81); /* dark-600 */
  color: rgb(209 213 219); /* gray-300 */
  border-radius: 0.125rem;
  font-size: 0.75rem;  /* Tăng lên để cân đối */
  white-space: nowrap;
}

/* ===== CONTENT CARDS ===== */
.content-card {
  cursor: pointer;
  background-color: rgba(17, 24, 39, 0.6); /* dark-850/60 */
  border: 1px solid rgba(55, 65, 81, 0.5); /* dark-700/50 */
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.2s ease-in-out;
}

.content-card:hover {
  border-color: rgba(59, 130, 246, 0.5); /* blue-500/50 */
  background-color: rgba(31, 41, 55, 0.8); /* dark-800/80 */
}

.content-card-title {
  font-weight: 600;
  color: white;
  margin-bottom: 0.5rem;
  transition: color 0.15s ease-in-out;
}

.content-card:hover .content-card-title {
  color: rgb(96 165 250); /* blue-400 */
}

.content-card-excerpt {
  color: rgb(156 163 175); /* gray-400 */
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  line-height: 1.625;
}

.content-card-footer {
  color: rgb(96 165 250); /* blue-400 */
  opacity: 0.7;
  transition: opacity 0.15s ease-in-out;
}

.content-card:hover .content-card-footer {
  opacity: 1;
}

.content-card-hint {
  font-size: 0.75rem;
  color: rgb(107 114 128); /* gray-500 */
}

/* ===== EMPTY CONTENT MESSAGE ===== */
.no-content-message {
  color: rgb(156 163 175); /* gray-400 */
}

/* ===== UNIFIED LESSON LAYOUT CLASSES ===== */
.lesson-column-layout {
  display: flex;
  flex-direction: column;
}

.lesson-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.lesson-tags-overflow {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow: hidden;
  flex: 1;
}

/* ===== PROJECTOR CONTROLS DROPDOWN ===== */
#projector-dropdown {
  transition: all 0.2s ease-out;
  transform-origin: top right;
}

#projector-dropdown:not(.hidden) {
  animation: fadeInDown 0.15s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#projector-toggle-btn:hover {
  background-color: var(--dark-700);
}

#projector-chevron {
  transition: transform 0.2s ease;
}

/* Status indicators */
.projector-status-connected {
  background-color: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.projector-status-disconnected {
  background-color: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

/* Responsive design for mobile */
@media (max-width: 768px) {
  #projector-dropdown {
    right: auto;
    min-width: 200px;
  }
  
  #projector-toggle-btn {
    padding: 0.5rem;
  }
  
  #projector-toggle-btn span {
    display: none;
  }
}

/* Pro Tool dropdown: responsive tweaks (sizing done by JS transform scale) */
@media (max-width: 768px) {
  #pro-tool-dropdown.pro-tool-dropdown-panel {
    border-radius: 12px;
  }
  #pro-tool-dropdown.pro-tool-dropdown-panel .pro-tool-title h3 {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  #pro-tool-dropdown.pro-tool-dropdown-panel .pro-tool-title p {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
}
/* transform: scale(2/3) in JS already shrinks everything uniformly —
   no extra font-size or gap overrides needed for small phones */

/* Supplementary content animations */
#supplementary-lessons .group {
  transform: translateY(0);
  transition: all 0.3s ease;
}

#supplementary-lessons .group:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Loading animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* ===== ProVector Locked Object Styles ===== */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.locked-object {
  position: relative;
}

.locked-object::before {
  content: '🔒';
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 16px;
  background: rgba(79, 70, 229, 0.9);
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
  z-index: var(--z-dropdown, 10);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.locked-object .selection-border {
  stroke: #f59e0b !important;
  stroke-dasharray: 8,4 !important;
}

/* =================== LEVEL RARITY BORDER SYSTEM =================== */

/* IMPORTANT: Remove ALL decorative elements and pseudo-elements from level buttons */
.level-btn::before,
.level-btn::after,
.athlete-level-btn::before,
.athlete-level-btn::after,
.level-border-1::before,
.level-border-1::after,
.level-border-2::before,
.level-border-2::after,
.level-border-3::before,
.level-border-3::after,
.level-border-4::before,
.level-border-4::after,
.level-border-5::before,
.level-border-5::after,
.level-border-6::before,
.level-border-6::after,
.level-border-7::before,
.level-border-7::after,
.level-border-8::before,
.level-border-8::after,
.level-border-9::before,
.level-border-9::after,
.level-border-10::before,
.level-border-10::after {
  display: none !important;
  content: none !important;
  visibility: hidden !important;
}

/* Level Description Panel Background Colors - Subtle Gradients */
#level-description-panel.level-border-1,
#athlete-level-description-panel.level-border-1 {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.2), rgba(51, 65, 85, 0.15)) !important;
}

#level-description-panel.level-border-2,
#athlete-level-description-panel.level-border-2 {
  background: linear-gradient(135deg, rgba(156, 163, 175, 0.05), rgba(30, 41, 59, 0.18)) !important;
}

#level-description-panel.level-border-3,
#athlete-level-description-panel.level-border-3 {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(30, 41, 59, 0.18)) !important;
}

#level-description-panel.level-border-4,
#athlete-level-description-panel.level-border-4 {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(30, 41, 59, 0.18)) !important;
}

#level-description-panel.level-border-5,
#athlete-level-description-panel.level-border-5 {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(30, 41, 59, 0.18)) !important;
}

#level-description-panel.level-border-6,
#athlete-level-description-panel.level-border-6 {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(30, 41, 59, 0.18)) !important;
}

#level-description-panel.level-border-7,
#athlete-level-description-panel.level-border-7 {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(30, 41, 59, 0.18)) !important;
}

#level-description-panel.level-border-8,
#athlete-level-description-panel.level-border-8 {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(30, 41, 59, 0.18)) !important;
}

#level-description-panel.level-border-9,
#athlete-level-description-panel.level-border-9 {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.06), rgba(30, 41, 59, 0.18)) !important;
}

#level-description-panel.level-border-10,
#athlete-level-description-panel.level-border-10 {
  background: linear-gradient(135deg, rgba(252, 211, 77, 0.06), rgba(245, 158, 11, 0.04), rgba(30, 41, 59, 0.18)) !important;
}

/* Override glow effects for level description panels - much more subtle */
#level-description-panel.level-border-2,
#athlete-level-description-panel.level-border-2 {
  box-shadow: 0 0 1px rgba(156, 163, 175, 0.1) !important;
}

#level-description-panel.level-border-3,
#athlete-level-description-panel.level-border-3 {
  box-shadow: 0 0 1px rgba(16, 185, 129, 0.1) !important;
}

#level-description-panel.level-border-4,
#athlete-level-description-panel.level-border-4 {
  box-shadow: 0 0 2px rgba(59, 130, 246, 0.12) !important;
}

#level-description-panel.level-border-5,
#athlete-level-description-panel.level-border-5 {
  box-shadow: 0 0 2px rgba(139, 92, 246, 0.12) !important;
}

#level-description-panel.level-border-6,
#athlete-level-description-panel.level-border-6 {
  box-shadow: 0 0 2px rgba(245, 158, 11, 0.12) !important;
}

#level-description-panel.level-border-7,
#athlete-level-description-panel.level-border-7 {
  box-shadow: 0 0 2px rgba(239, 68, 68, 0.12) !important;
}

#level-description-panel.level-border-8,
#athlete-level-description-panel.level-border-8 {
  box-shadow: 0 0 2px rgba(245, 158, 11, 0.15) !important;
}

#level-description-panel.level-border-9,
#athlete-level-description-panel.level-border-9 {
  box-shadow: 0 0 2px rgba(139, 92, 246, 0.15) !important;
}

#level-description-panel.level-border-10,
#athlete-level-description-panel.level-border-10 {
  box-shadow: 0 0 3px rgba(252, 211, 77, 0.15) !important;
}

/* Level Border Base Styles */
.level-border-base {
  transition: all var(--transition-normal);
}

/* Button-specific styling overrides for level borders */
.level-btn.level-border-base,
.athlete-level-btn.level-border-base {
  /* Ensure dark background is visible inside gradient borders */
  background: #374151 !important; /* Slightly lighter than bg-dark-700 for contrast */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.level-btn.level-border-6,
.level-btn.level-border-7,
.level-btn.level-border-8,
.level-btn.level-border-9,
.level-btn.level-border-10,
.athlete-level-btn.level-border-6,
.athlete-level-btn.level-border-7,
.athlete-level-btn.level-border-8,
.athlete-level-btn.level-border-9,
.athlete-level-btn.level-border-10 {
  /* For gradient borders, use dark padding background so the gradient is visible */
  background: linear-gradient(#374151, #374151) padding-box, var(--border-gradient) border-box !important;
}

/* Level 1: No Border (Clean, minimal) */
.level-border-1 {
  border: none;
  box-shadow: none;
}

/* Level 2: Silver/Gray - Soft static border */
.level-border-2 {
  border: 2px solid #9CA3AF;
  box-shadow: 0 0 3px rgba(156, 163, 175, 0.15);
}

/* Level 3: Green - Subtle glow */
.level-border-3 {
  border: 2px solid #10B981;
  box-shadow: 0 0 4px rgba(16, 185, 129, 0.15);
}

/* Level 4: Blue - Gentle pulsing */
.level-border-4 {
  border: 2px solid #3B82F6;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.2);
  animation: bluePulse 3s ease-in-out infinite;
}

@keyframes bluePulse {
  0%, 100% { box-shadow: 0 0 8px rgba(59, 130, 246, 0.25); }
  50% { box-shadow: 0 0 12px rgba(59, 130, 246, 0.35); }
}

/* Level 5: Purple - Refined breathing */
.level-border-5 {
  border: 2px solid #8B5CF6;
  box-shadow: 0 0 6px rgba(139, 92, 246, 0.2);
  animation: purpleBreath 3.5s ease-in-out infinite;
}

@keyframes purpleBreath {
  0%, 100% { 
    box-shadow: 0 0 6px rgba(139, 92, 246, 0.2);
    border-color: #8B5CF6;
  }
  50% { 
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
    border-color: #A855F7;
  }
}

/* Level 6: Orange - Clean flowing gradient */
.level-border-6 {
  border: 3px solid transparent;
  --border-gradient: linear-gradient(45deg, #F59E0B, #F97316, #F59E0B);
  background: linear-gradient(#374151, #374151) padding-box,
              var(--border-gradient) border-box;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
  animation: orangeFlow 4s linear infinite;
}

/* Level 7: Red - Clean dynamic gradient */
.level-border-7 {
  border: 3px solid transparent;
  --border-gradient: linear-gradient(45deg, #EF4444, #DC2626, #B91C1C, #EF4444);
  background: linear-gradient(#374151, #374151) padding-box,
              var(--border-gradient) border-box;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
  animation: redDynamic 3s ease-in-out infinite;
}

/* Level 8: Gold - Clean rotating gradient */
.level-border-8 {
  border: 3px solid transparent;
  --border-gradient: linear-gradient(45deg, #F59E0B, #FCD34D, #FBBF24, #F59E0B);
  background: linear-gradient(#374151, #374151) padding-box,
              var(--border-gradient) border-box;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
  animation: goldRotate 5s linear infinite;
}

@keyframes goldRotate {
  0% { --border-gradient: linear-gradient(0deg, #F59E0B, #FCD34D, #FBBF24, #F59E0B); }
  25% { --border-gradient: linear-gradient(90deg, #F59E0B, #FCD34D, #FBBF24, #F59E0B); }
  50% { --border-gradient: linear-gradient(180deg, #F59E0B, #FCD34D, #FBBF24, #F59E0B); }
  75% { --border-gradient: linear-gradient(270deg, #F59E0B, #FCD34D, #FBBF24, #F59E0B); }
  100% { --border-gradient: linear-gradient(360deg, #F59E0B, #FCD34D, #FBBF24, #F59E0B); }
}

/* Level 9: Rainbow - Clean 7-color cycling */
.level-border-9 {
  border: 4px solid transparent;
  --border-gradient: linear-gradient(45deg, #EF4444, #F97316, #FCD34D, #10B981, #3B82F6, #6366F1, #8B5CF6);
  background: linear-gradient(#374151, #374151) padding-box,
              var(--border-gradient) border-box;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.3);
  animation: rainbowCycle 4s linear infinite;
}

/* Level 10: Champion Gold - Clean prestige effects */
.level-border-10 {
  border: 4px solid transparent;
  --border-gradient: linear-gradient(45deg, #FCD34D, #F59E0B, #FBBF24, #FCD34D);
  background: linear-gradient(#374151, #374151) padding-box,
              var(--border-gradient) border-box;
  box-shadow: 
    0 0 15px rgba(252, 211, 77, 0.3),
    0 0 25px rgba(245, 158, 11, 0.2),
    inset 0 0 10px rgba(252, 211, 77, 0.08);
  animation: championGlow 4s ease-in-out infinite, championRotate 8s linear infinite;
}

@keyframes championRotate {
  0% { --border-gradient: linear-gradient(0deg, #FCD34D, #F59E0B, #FBBF24, #FCD34D); }
  25% { --border-gradient: linear-gradient(90deg, #FCD34D, #F59E0B, #FBBF24, #FCD34D); }
  50% { --border-gradient: linear-gradient(180deg, #FCD34D, #F59E0B, #FBBF24, #FCD34D); }
  75% { --border-gradient: linear-gradient(270deg, #FCD34D, #F59E0B, #FBBF24, #FCD34D); }
  100% { --border-gradient: linear-gradient(360deg, #FCD34D, #F59E0B, #FBBF24, #FCD34D); }
}

@keyframes redDynamic {
  0%, 100% { 
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
    filter: brightness(1);
  }
  50% { 
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.35);
    filter: brightness(1.03);
  }
}

@keyframes championGlow {
  0%, 100% { 
    box-shadow: 
      0 0 15px rgba(252, 211, 77, 0.3),
      0 0 25px rgba(245, 158, 11, 0.2),
      inset 0 0 10px rgba(252, 211, 77, 0.08);
  }
  50% { 
    box-shadow: 
      0 0 18px rgba(252, 211, 77, 0.35),
      0 0 30px rgba(245, 158, 11, 0.25),
      inset 0 0 12px rgba(252, 211, 77, 0.1);
  }
}

@keyframes championPulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.02); }
}

/* Additional keyframes for new effects */
@keyframes orangeFlow {
  0% { --border-gradient: linear-gradient(0deg, #F59E0B, #F97316, #F59E0B); }
  25% { --border-gradient: linear-gradient(90deg, #F59E0B, #F97316, #F59E0B); }
  50% { --border-gradient: linear-gradient(180deg, #F59E0B, #F97316, #F59E0B); }
  75% { --border-gradient: linear-gradient(270deg, #F59E0B, #F97316, #F59E0B); }
  100% { --border-gradient: linear-gradient(360deg, #F59E0B, #F97316, #F59E0B); }
}

@keyframes goldRotate {
  0% { --border-gradient: linear-gradient(0deg, #F59E0B, #FCD34D, #FBBF24, #F59E0B); }
  25% { --border-gradient: linear-gradient(90deg, #F59E0B, #FCD34D, #FBBF24, #F59E0B); }
  50% { --border-gradient: linear-gradient(180deg, #F59E0B, #FCD34D, #FBBF24, #F59E0B); }
  75% { --border-gradient: linear-gradient(270deg, #F59E0B, #FCD34D, #FBBF24, #F59E0B); }
  100% { --border-gradient: linear-gradient(360deg, #F59E0B, #FCD34D, #FBBF24, #F59E0B); }
}

@keyframes rainbowCycle {
  0% { --border-gradient: linear-gradient(0deg, #EF4444, #F97316, #FCD34D, #10B981, #3B82F6, #6366F1, #8B5CF6); }
  14.28% { --border-gradient: linear-gradient(51.4deg, #EF4444, #F97316, #FCD34D, #10B981, #3B82F6, #6366F1, #8B5CF6); }
  28.56% { --border-gradient: linear-gradient(102.8deg, #EF4444, #F97316, #FCD34D, #10B981, #3B82F6, #6366F1, #8B5CF6); }
  42.84% { --border-gradient: linear-gradient(154.2deg, #EF4444, #F97316, #FCD34D, #10B981, #3B82F6, #6366F1, #8B5CF6); }
  57.12% { --border-gradient: linear-gradient(205.6deg, #EF4444, #F97316, #FCD34D, #10B981, #3B82F6, #6366F1, #8B5CF6); }
  71.4% { --border-gradient: linear-gradient(257deg, #EF4444, #F97316, #FCD34D, #10B981, #3B82F6, #6366F1, #8B5CF6); }
  85.68% { --border-gradient: linear-gradient(308.4deg, #EF4444, #F97316, #FCD34D, #10B981, #3B82F6, #6366F1, #8B5CF6); }
  100% { --border-gradient: linear-gradient(360deg, #EF4444, #F97316, #FCD34D, #10B981, #3B82F6, #6366F1, #8B5CF6); }
}

/* Refined Hover Effects for Level Borders */
.level-border-base:hover {
  transform: scale(1.01);
}

.level-border-2:hover { box-shadow: 0 0 10px rgba(156, 163, 175, 0.3); }
.level-border-3:hover { box-shadow: 0 0 10px rgba(16, 185, 129, 0.35); }
.level-border-4:hover { animation-duration: 2s; }
.level-border-5:hover { animation-duration: 2.5s; }
.level-border-6:hover { animation-duration: 3s; }
.level-border-7:hover { animation-duration: 2.5s; }
.level-border-8:hover { animation-duration: 4s; }
.level-border-9:hover { animation-duration: 3s; }
.level-border-10:hover { 
  transform: scale(1.02);
  filter: brightness(1.05);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .level-border-4,
  .level-border-5,
  .level-border-6,
  .level-border-7,
  .level-border-8,
  .level-border-9,
  .level-border-10 {
    animation: none !important;
  }
  
  .level-border-base:hover {
    transform: none;
  }
}

/* =================== END LEVEL RARITY BORDER SYSTEM =================== */

/* =================== USER SETTINGS MODAL TAB SYSTEM =================== */

/* Tab Button Styling */
.tab-btn {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(156 163 175);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.tab-btn:hover {
  color: rgb(255 255 255);
  background: rgba(75, 85, 99, 0.3);
}

.tab-btn.active {
  color: rgb(255 255 255);
  background: rgba(75, 85, 99, 0.5);
  border-bottom-color: rgb(147 51 234);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgb(147 51 234), rgb(219 39 119));
}

/* Tab Content */
.tab-content {
  display: block;
}

.tab-content.hidden {
  display: none;
}

/* Admin Control Buttons */
.admin-control-btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.admin-control-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.admin-control-btn:hover::before {
  left: 100%;
}

.admin-control-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* =================== END USER SETTINGS MODAL TAB SYSTEM =================== */

/* =================== UNIFIED MODAL SYSTEM =================== */

/* Modal Base - Flexible Foundation */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.5);
  padding: var(--modal-padding);
  animation: modalFadeIn var(--transition-normal) ease-out;
}

.modal-content {
  position: relative;
  z-index: var(--z-modal);
  width: 100%;
  max-width: var(--modal-max-width);
  max-height: var(--modal-max-height);
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideIn var(--transition-normal) ease-out;
}

/* Mobile-First Modal Adaptations */
@media (max-width: 479px) {
  .modal {
    padding: 0;
    align-items: flex-start;
  }
  
  .modal-content {
    width: 100vw;
    height: var(--vh-dynamic);
    max-width: none;
    max-height: none;
    border-radius: 0;
    margin: 0;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .modal {
    padding: var(--space-sm);
  }
  
  .modal-content {
    border-radius: var(--radius-lg);
    max-height: calc(var(--vh-dynamic) - var(--space-xl));
  }
}

/* Lesson Modal Specific */
.lesson-modal .modal-content {
  min-height: 60vh;
}

.lesson-modal-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(75, 85, 99, 0.2);
  padding: var(--space-md);
}

.lesson-modal-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0;
}

.lesson-modal-scroll {
  padding: var(--space-lg);
}

.lesson-modal-footer {
  position: sticky;
  bottom: 0;
  z-index: var(--z-sticky);
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(75, 85, 99, 0.2);
  padding: var(--space-md);
}

/* Lesson Typography - Fluid and Readable */
.lesson-prose {
  font-size: var(--text-base);
  line-height: 1.7;
  color: #f9fafb;
  max-width: none;
}

.lesson-prose h1 {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: var(--space-lg);
  line-height: 1.3;
}

.lesson-prose h2 {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: #60a5fa;
  margin: var(--space-xl) 0 var(--space-md);
  line-height: 1.4;
}

.lesson-prose h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: #93c5fd;
  margin: var(--space-lg) 0 var(--space-sm);
  line-height: 1.4;
}

.lesson-prose p {
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.lesson-prose ul,
.lesson-prose ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.lesson-prose li {
  margin-bottom: var(--space-xs);
  line-height: 1.6;
}

.lesson-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: var(--space-md) 0;
}

.lesson-prose iframe {
  max-width: 100%;
  border-radius: var(--radius-md);
  margin: var(--space-md) 0;
}

/* Lesson Navigation */
.lesson-nav {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  justify-content: space-between;
}

.lesson-nav-button {
  flex: 1;
  min-height: var(--touch-target);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

.lesson-nav-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Lesson Tags */
.lesson-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(75, 85, 99, 0.2);
}

.lesson-tag {
  padding: var(--space-xs) var(--space-sm);
  background: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Virtual Keyboard Adaptation */
@media (max-width: 767px) {
  .virtual-keyboard-open .modal-content {
    height: calc(var(--vh-dynamic) - 300px) !important;
  }
  
  .virtual-keyboard-open .lesson-modal-scroll {
    padding-bottom: calc(var(--space-xl) + 300px);
  }
}

/* =================== UNIFIED COMPONENT SYSTEM =================== */

/* Base Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: var(--touch-target);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Button Variants */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(75, 85, 99, 0.2);
  color: #d1d5db;
  border: 1px solid rgba(75, 85, 99, 0.3);
}

.btn-secondary:hover {
  background: rgba(75, 85, 99, 0.3);
  color: white;
  border-color: rgba(75, 85, 99, 0.5);
}

.btn-icon {
  min-width: var(--touch-target);
  padding: var(--space-sm);
  aspect-ratio: 1;
}

/* Responsive Button Adaptations */
@media (max-width: 479px) {
  .btn {
    font-size: var(--text-xs);
    padding: var(--space-xs) var(--space-sm);
  }
  
  .btn-text-mobile-hidden .btn-text {
    display: none;
  }
}

/* Dropdown System */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  position: absolute;
  z-index: var(--z-dropdown);
  min-width: 200px;
  background: #1f2937;
  border: 1px solid rgba(75, 85, 99, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-normal);
}

.dropdown.open .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  color: #d1d5db;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: none;
  background: none;
  cursor: pointer;
  font-size: var(--text-sm);
}

.dropdown-item:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
}

/* Mobile Dropdown Adaptations */
@media (max-width: 767px) {
  .dropdown-content {
    position: fixed;
    left: 50%;
    top: auto;
    bottom: var(--space-lg);
    transform: translateX(-50%);
    width: calc(100vw - var(--space-xl));
    max-width: 400px;
    border-radius: var(--radius-xl);
  }
  
  .dropdown.open .dropdown-content {
    transform: translateX(-50%);
  }
}

/* Navigation System */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  color: #d1d5db;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  font-size: var(--text-sm);
  white-space: nowrap;
}

.nav-item:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
}

.nav-item.active {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

/* Mobile Navigation */
@media (max-width: 767px) {
  .nav {
    flex-direction: column;
    gap: var(--space-xs);
  }
  
  .nav-item {
    width: 100%;
    justify-content: center;
  }
}

/* Header System */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-fixed);
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(75, 85, 99, 0.2);
  height: var(--header-height);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--space-md);
  gap: var(--space-md);
}

.header-section {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-section.start {
  flex: 0 0 auto;
}

.header-section.center {
  flex: 1 1 auto;
  justify-content: center;
}

.header-section.end {
  flex: 0 0 auto;
}

/* Mobile Header Adaptations */
@media (max-width: 767px) {
  .header-content {
    padding: 0 var(--space-sm);
    gap: var(--space-sm);
  }
  
  .header-section.center {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* Sidebar System */
.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--header-height));
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(12px);
  border-right: 1px solid rgba(75, 85, 99, 0.2);
  transform: translateX(-100%);
  transition: transform var(--transition-layout);
  z-index: var(--z-fixed);
  overflow-y: auto;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-content {
  padding: var(--space-lg);
}

.sidebar-section {
  margin-bottom: var(--space-xl);
}

.sidebar-title {
  font-size: var(--text-xs);
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

/* Desktop Sidebar */
@media (min-width: 1024px) {
  .sidebar {
    position: static;
    transform: none;
    height: auto;
  }
  
  .layout-with-sidebar {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: 0;
  }
}

/* Content Area */
.main-content {
  min-height: calc(100vh - var(--header-height));
  padding: var(--space-lg);
  transition: margin-left var(--transition-layout);
}

@media (min-width: 1024px) {
  .main-content.with-sidebar {
    margin-left: 0;
  }
}

/* Card System */
.card {
  background: rgba(31, 41, 55, 0.8);
  border: 1px solid rgba(75, 85, 99, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: rgba(75, 85, 99, 0.3);
  box-shadow: var(--shadow-lg);
}

.card-header {
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(75, 85, 99, 0.2);
  background: rgba(17, 24, 39, 0.5);
}

.card-content {
  padding: var(--space-lg);
}

.card-footer {
  padding: var(--space-lg);
  border-top: 1px solid rgba(75, 85, 99, 0.2);
  background: rgba(17, 24, 39, 0.5);
}

/* =================== END UNIFIED COMPONENT SYSTEM =================== */

/* ===== Contact Page - Simple & Overflow-Free ===== */
#content-contact {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Container constraints */
#content-contact .max-w-5xl {
  max-width: min(80rem, calc(100vw - 4rem));
  margin: 0 auto;
}

/* Grid responsive behavior */
@media (max-width: 1023px) {
  #content-contact .lg\\:grid-cols-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  #content-contact .lg\\:grid-cols-2 {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Text overflow protection */
#content-contact .break-words {
  word-wrap: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

#content-contact .break-all {
  word-break: break-all;
}

/* Form elements */
#content-contact input,
#content-contact textarea {
  max-width: 100%;
  box-sizing: border-box;
}

/* Flex container protection */
#content-contact .flex {
  min-width: 0;
}

#content-contact .flex > *:not(.flex-shrink-0) {
  min-width: 0;
}

/* Icon spacing fix */
#content-contact .flex-shrink-0 {
  flex-shrink: 0;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  #content-contact .max-w-5xl {
    max-width: calc(100vw - 2rem);
  }
  
  #content-contact .space-y-6 > * + * {
    margin-top: 1.5rem;
  }
  
  #content-contact .space-y-4 > * + * {
    margin-top: 1rem;
  }
}

#content-contact .grid {
  overflow: hidden;
  width: 100%;
}

#content-contact .grid > * {
  min-width: 0;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  hyphens: auto;
}

#content-contact .form-input,
#content-contact textarea {
  max-width: 100%;
  box-sizing: border-box;
}

#content-contact .flex {
  min-width: 0;
}

#content-contact .flex > *:not(.flex-shrink-0) {
  min-width: 0;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

/* Force text wrapping for all text elements in contact */
#content-contact span,
#content-contact a,
#content-contact strong,
#content-contact p {
  overflow-wrap: anywhere;
  word-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

/* ===== Navigation Text Display Fix ===== */
@media (min-width: 1024px) {
  .nav-tab {
    white-space: nowrap;
    min-width: fit-content;
  }
  
  .nav-tab span {
    display: inline;
  }
}

/* ===== Fix for inline styles - CSP compliance ===== */
.header-z-index { z-index: var(--z-layer-header, 200); }
.menu-z-index { z-index: var(--z-layer-dropdown, 220); }
.nav-gradient-bg { 
  background: linear-gradient(to right, #0d9488, #2563eb); 
  padding: 1rem; 
  border-radius: 12px 12px 0 0; 
}
.nav-icon-container { 
  width: 40px; 
  height: 40px; 
  background: rgba(255, 255, 255, 0.2); 
  border-radius: 8px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}
.nav-icon-svg { 
  width: 24px; 
  height: 24px; 
  color: white; 
}
.nav-subtitle { 
  color: rgba(255, 255, 255, 0.8); 
  font-size: 0.875rem; 
}
.nav-padding { padding: 0.5rem; }
.nav-item-icon { 
  width: 32px; 
  height: 32px; 
  background: rgba(107, 114, 128, 0.2); 
  border-radius: 8px; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  margin-right: 0.75rem; 
  transition: all 0.2s; 
}
.nav-item-icon-blue { 
  background: rgba(59, 130, 246, 0.2); 
}
.nav-item-icon-indigo { 
  background: rgba(99, 102, 241, 0.2); 
}
.nav-divider { 
  width: 100%; 
  height: 1px; 
  background: #374151; 
  margin: 0.25rem 0; 
}
.nav-transparent-bg { background: transparent; }
.nav-item-icon-teal { 
  background: rgba(20, 184, 166, 0.2); 
}
.nav-item-icon-yellow { 
  background: rgba(251, 191, 36, 0.2); 
}
.force-display-block { display: block !important; }
.pointer-events-auto { pointer-events: auto; }
.main-content-padding { padding-top: 80px; }

.leaderboard-active .main-content-padding {
  padding-top: 0 !important;
}
