@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Modern CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Light-only modern design system */
:root {
  /* Primary colors */
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  
  /* Semantic colors */
  --blue: #2563eb;
  --green: #059669;
  --orange: #ea580c;
  --red: #dc2626;
  --purple: #7c3aed;
  --yellow: #d97706;
  --pink: #db2777;
  
  /* Neutral palette */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  /* Design tokens - Pure black theme */
  --bg: #000000;
  --bg-secondary: #000000;
  --bg-tertiary: #000000;
  --surface: #000000;
  --surface-hover: #111111;
  --border: #333333;
  --border-light: #222222;
  --text: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #999999;
  
  /* Shadows - Enhanced for dark theme */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.4);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.4);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
  --gradient-surface: linear-gradient(135deg, #000000 0%, #000000 100%);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
}

html.dark {
  /* Dark theme colors */
  --blue: #60a5fa;
  --green: #34d399;
  --orange: #fbbf24;
  --red: #f87171;
  --purple: #a78bfa;
  --yellow: #facc15;
  --pink: #f472b6;
  
  --white: #ffffff;
  --gray-50: #1e293b;
  --gray-100: #334155;
  --gray-200: #475569;
  --gray-300: #64748b;
  --gray-400: #94a3b8;
  --gray-500: #cbd5e1;
  --gray-600: #e2e8f0;
  --gray-700: #f1f5f9;
  --gray-800: #f8fafc;
  --gray-900: #ffffff;
  
  --bg: #000000;
  --bg-secondary: #000000;
  --bg-tertiary: #000000;
  --surface: #000000;
  --surface-hover: #111111;
  --border: #333333;
  --border-light: #222222;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.4);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.4);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}

/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* Header */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
}


.header-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-xl);
  position: relative;
  z-index: 10;
  min-height: 48px;
}

#chat-signup-toggle,
#chat-button,
#theme-toggle,
#user-profile-toggle {
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#chat-signup-toggle:hover,
#chat-button:hover,
#theme-toggle:hover,
#user-profile-toggle:hover {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.theme-icon,
.chat-icon,
.signup-icon,
.user-icon {
  position: absolute;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* User Profile Dropdown */
.user-profile-container {
  position: relative;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 17px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.dropdown-item:hover {
  background: var(--bg-secondary);
}

.dropdown-item.logout-item {
  color: #ef4444;
}

.dropdown-item.logout-item:hover {
  background: rgba(239, 68, 68, 0.1);
}

.dropdown-separator {
  height: 1px;
  background: var(--border);
  margin: var(--space-xs) 0;
}

.sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.moon-icon {
  opacity: 0;
  transform: rotate(180deg) scale(0.8);
}

html.dark .sun-icon {
  opacity: 0;
  transform: rotate(-180deg) scale(0.8);
}

html.dark .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

#header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  text-align: center;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

header .subtitle {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  text-align: center;
  font-weight: 500;
  max-width: 600px;
  margin: 0;
}

/* Feature Request Button */
.feature-buttons {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.feature-request-button {
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-xl);
  padding: var(--space-md) var(--space-lg);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: var(--space-sm);
  box-shadow: var(--shadow-md);
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: var(--space-lg);
  position: relative;
  overflow: hidden;
  height: 44px;
  box-sizing: border-box;
}

.feature-request-button.features-coming {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--border);
}

.feature-request-button.features-coming:hover {
  background: var(--bg-secondary);
  color: var(--primary);
}

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

.feature-request-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.feature-request-button:hover::before {
  left: 100%;
}

.feature-request-button:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.feature-request-button:hover .feature-icon {
  transform: rotate(72deg);
}

/* Feature Request Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: var(--space-md);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.show .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--bg-secondary);
  color: var(--text);
}

.modal-form {
  padding: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.3);
  background: var(--surface);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.form-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
  margin-top: var(--space-xl);
}

.btn-primary,
.btn-secondary {
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  min-width: 100px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--text-muted);
}

/* Success Notification */
.notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 999999;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification-content {
  background: var(--green);
  color: var(--white);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 280px;
}

.notification-icon {
  flex-shrink: 0;
}

.notification-text {
  flex: 1;
}

/* Controls */
.controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.controls-row {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex: 1;
}

/* Make search container match the combined width of three dropdowns */
.search-container {
  width: 572px; /* 3 dropdowns (180px each) + 2 gaps (16px each) = 540px + 32px = 572px */
  max-width: 572px;
  flex-shrink: 0;
}

.controls input {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-md) var(--space-lg);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  outline: none;
  box-shadow: var(--shadow-xs);
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Simple Select Dropdown Styles */
.dropdown-select {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  height: 48px;
  min-width: 140px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
}

.dropdown-select:hover:not(:disabled) {
  border-color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.dropdown-select:focus:not(:disabled) {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1), var(--shadow-sm);
  transform: translateY(-1px);
}

.dropdown-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg-tertiary);
}


#search::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

/* Search container - match exact width of controls-row */
.search-container {
  position: relative;
}

/* Make search input match the combined width of the three dropdowns */
#search {
  width: 100%;
  box-sizing: border-box;
}

/* Search suggestions dropdown */
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  max-height: 200px;
  overflow-y: auto;
}

.search-suggestion {
  padding: var(--space-sm) var(--space-lg);
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.search-suggestion:last-child {
  border-bottom: none;
}

.search-suggestion:hover {
  background: var(--bg-secondary);
}

.search-suggestion.selected {
  background: var(--primary);
  color: var(--white);
}

.search-suggestion .player-name {
  font-weight: 600;
  color: var(--text);
}

.search-suggestion .team-name {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: auto;
}

.search-suggestion.selected .player-name,
.search-suggestion.selected .team-name {
  color: var(--white);
}

#sport-select,
#year-select {
  min-width: 140px;
  cursor: pointer;
}

.controls input:focus,
.controls select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1), var(--shadow-sm);
  transform: translateY(-1px);
}

.controls input:hover:not(:focus),
.controls select:hover:not(:focus):not(:disabled) {
  border-color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.controls select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg-tertiary);
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
}

/* Table */
.table-scroll {
  position: relative;
  overflow-x: auto;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.table-scroll::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  z-index: 1;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  min-width: 900px;
}

th {
  background: var(--bg-secondary);
  padding: var(--space-lg) var(--space-md);
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

td {
  padding: var(--space-lg) var(--space-md);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-light);
}

tbody tr {
  background: var(--surface);
  transition: all 0.15s ease;
}

tbody tr:nth-child(even) {
  background: var(--bg-secondary);
}

tbody tr:hover {
  background: var(--surface-hover);
  box-shadow: inset 0 0 0 1px var(--border);
}

/* Column styles */
.rank {
  font-weight: 700;
  text-align: center;
  min-width: 80px;
  background: var(--bg-tertiary);
}

.player {
  font-weight: 600;
  min-width: 180px;
  background: var(--bg-tertiary);
}

.common { color: var(--blue); font-weight: 700; text-align: right; min-width: 120px; }
.uncommon { color: var(--green); font-weight: 700; text-align: right; min-width: 120px; }
.rare { color: var(--orange); font-weight: 700; text-align: right; min-width: 120px; }
.epic { color: var(--red); font-weight: 700; text-align: right; min-width: 120px; }
.legendary { color: var(--purple); font-weight: 700; text-align: right; min-width: 120px; }
.mystic { color: var(--yellow); font-weight: 700; text-align: right; min-width: 120px; }
.iconic { color: var(--pink); font-weight: 700; text-align: right; min-width: 120px; }

/* Sticky columns */
th.rank, td.rank {
  position: sticky;
  left: 0;
  z-index: 5;
  box-shadow: 2px 0 8px -2px rgb(0 0 0 / 0.1);
}

th.player, td.player {
  position: sticky;
  left: 80px;
  z-index: 4;
  box-shadow: 2px 0 6px -2px rgb(0 0 0 / 0.08);
}

/* Animated Pagination */
.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(100%);
  z-index: 100;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-xl);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  max-width: 500px;
  width: auto;
  min-width: 300px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html.dark .pagination-controls {
  background: rgba(0, 0, 0, 0.95);
  border-color: var(--border);
}

.pagination-controls.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.pagination-controls button {
  background: #000000;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 80px;
}

.pagination-controls button:hover:not(:disabled) {
  background: #333333;
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pagination-controls button:active:not(:disabled) {
  transform: translateY(0);
}

.pagination-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #333333;
}

.pagination-controls .page-info {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.pagination-page-info {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  text-align: center;
}

.pagination-arrow {
  min-width: 40px !important;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  outline: none !important;
  border: none !important;
}

.pagination-arrow svg {
  width: 16px;
  height: 16px;
  color: #ffffff;
}

.pagination-arrow:disabled svg {
  color: #666666;
}

.pagination-arrow:focus {
  outline: none !important;
  box-shadow: none !important;
}

.pagination-controls .page-info input[type="number"] {
  width: 3em;
  text-align: center;
  font-size: 0.85rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-xs);
  font-family: inherit;
  padding: var(--space-xs);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pagination-controls .page-info input[type="number"]:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.3);
}

/* Footer */
.site-footer {
  background: var(--bg);
  color: var(--text-muted);
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  border-top: 1px solid var(--border);
  margin-top: var(--space-2xl);
}

.footer-main-credit {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: var(--space-sm);
  line-height: 1.6;
}

.footer-username {
  color: var(--primary);
  font-weight: 600;
}

.site-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-footer a:hover {
  border-bottom-color: var(--primary);
}

.footer-special-thanks {
  font-weight: 600;
  color: var(--text);
  display: inline-block;
  margin-top: var(--space-sm);
}

.update-log-link {
  display: inline-block;
  margin-top: var(--space-sm);
  color: var(--primary) !important;
  text-decoration: none !important;
  font-weight: 600;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.update-log-link:hover {
  background: var(--bg-secondary);
  transform: translateY(-1px);
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

tbody tr {
  animation: slideUp 0.3s ease-out;
}

/* Download Button Styles */
.download-btn {
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
}

.download-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background: var(--primary-dark);
}

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

.download-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Card overlay download button */
.card-overlay .download-btn {
  background: rgba(0, 0, 0, 0.8);
  color: var(--white);
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  min-width: auto;
}

.card-overlay .download-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.05);
}

/* Mobile responsive */
@media (max-width: 768px) {
  #header-content {
    padding: var(--space-lg) var(--space-md) var(--space-xl);
    gap: var(--space-md);
  }
  
  .feature-buttons {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .feature-request-button {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
    margin-top: 0;
    height: 40px;
  }
  
  .controls {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .controls-row {
    flex-direction: column;
    width: 100%;
    gap: var(--space-md);
  }
  
  .search-container {
    width: 100%;
    max-width: 100%;
  }
  
  .custom-select {
    width: 100%;
    min-width: unset;
  }
  
  .container {
    padding: var(--space-lg) var(--space-sm);
  }
  
  .table-scroll {
    margin: 0 calc(-1 * var(--space-sm));
    border-radius: var(--radius-xl);
  }
  
  table {
    min-width: 800px;
  }
  
  th, td {
    padding: var(--space-md) var(--space-sm);
    font-size: 0.85rem;
  }
  
  .pagination-controls {
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-sm);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 95%;
    max-width: 95%;
    min-width: unset;
    bottom: 72px; /* Position to touch bottom navigation bar */
  }
  
  .pagination-controls button {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8rem;
    min-width: 60px;
  }
}

@media (max-width: 480px) {
  .pagination-controls {
    padding: var(--space-sm);
    gap: var(--space-xs);
    width: 95%;
    max-width: 95%;
    bottom: 72px; /* Position to touch bottom navigation bar */
  }
  
  .pagination-controls button {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8rem;
  }
  
  .pagination-controls .page-info {
    font-size: 0.85rem;
  }
  
  .feature-buttons {
    flex-direction: column;
    gap: var(--space-xs);
  }
  
  .feature-request-button {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.8rem;
    margin-top: 0;
    height: 38px;
  }
  
  .search-container {
    width: 100%;
    max-width: 100%;
  }
  
  .modal-overlay {
    padding: var(--space-sm);
  }
  
  .modal-header {
    padding: var(--space-lg) var(--space-lg) var(--space-md);
  }
  
  .modal-header h3 {
    font-size: 1.25rem;
  }
  
  .modal-form {
    padding: var(--space-lg);
  }
  
  .form-actions {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: var(--space-md);
  }
  
  .notification {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    transform: translateY(-100px);
  }
  
  .notification.show {
    transform: translateY(0);
  }
  
  .notification-content {
    min-width: unset;
    width: 100%;
  }
  
  .site-footer {
    padding: var(--space-lg) var(--space-md);
    font-size: 0.85rem;
  }
  
  .footer-main-credit {
    font-size: 0.8rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  .pagination-controls,
  .theme-toggle-container,
  .controls {
    display: none !important;
  }
  
  .table-scroll {
    overflow: visible !important;
    box-shadow: none !important;
  }
  
  table {
    min-width: unset !important;
  }
  
  th, td {
    padding: 0.5rem !important;
    font-size: 0.75rem !important;
  }
}

/* Pinterest-style Bottom Navigation (Mobile Only) */
.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000000;
    border-top: 1px solid #333333;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  }

  .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #666666;
    min-width: 60px;
  }

  .bottom-nav-item:hover {
    color: #999999;
  }

  .bottom-nav-item.active {
    color: #ffffff;
  }

      .bottom-nav-item svg {
        width: 24px;
        height: 24px;
        transition: all 0.2s ease;
      }

      .bottom-nav-item.active svg {
        transform: scale(1.05);
      }

      /* PNG icon styling - exclude profile icons */
      .bottom-nav-item img:not(.profile-icon) {
        width: 21px;
        height: 21px;
        transition: all 0.2s ease;
        filter: brightness(0) saturate(100%) invert(40%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
      }

      .bottom-nav-item.active img:not(.profile-icon) {
        filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
        transform: scale(1.05);
      }

  .bottom-nav-label {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
  }

  .bottom-nav-item.active .bottom-nav-label {
    font-weight: 600;
  }

  /* Create button special styling - no background */
  .bottom-nav-item.create {
    background: none;
    color: #666666;
    border-radius: 12px;
    padding: 8px 12px;
    margin: 0;
  }

  .bottom-nav-item.create:hover {
    color: #999999;
    transform: scale(1.05);
  }

  .bottom-nav-item.create.active {
    color: #ffffff;
  }

  .bottom-nav-item.create svg {
    width: 24px;
    height: 24px;
  }

  .bottom-nav-item.create .bottom-nav-label {
    color: inherit;
    font-weight: 500;
  }

  .bottom-nav-item.create.active .bottom-nav-label {
    font-weight: 600;
  }

  /* Profile icon styling */
  .bottom-nav-item .profile-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: all 0.2s ease;
  }

  .bottom-nav-item.active .profile-icon {
    border-color: #ffffff;
  }

  .bottom-nav-item .profile-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #666666;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
  }

  .bottom-nav-item.active .profile-placeholder {
    background: #ffffff;
    color: #000000;
  }

  /* Add bottom padding to body to prevent content from being hidden behind nav */
  body {
    padding-bottom: 80px;
  }

  /* Hide top navigation controls on mobile when bottom nav is present */       
  .mobile-hide-top-nav .header-controls {                                       
    display: none;
  }
}

/* Pinterest-style Create Modal */
.create-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.create-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.create-modal {
  background: #2a2a2a;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 500px;
  padding: 24px 24px 32px 24px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  position: relative;
}

.create-modal-overlay.show .create-modal {
  transform: translateY(0);
}

.create-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.create-modal-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.create-modal-close {
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.create-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.create-modal-options {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.create-option {
  background: #3a3a3a;
  border: none;
  border-radius: 16px;
  padding: 24px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #ffffff;
}

.create-option:hover {
  background: #4a4a4a;
  transform: translateY(-2px);
}

.create-option:active {
  transform: translateY(0);
}

.create-option-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
}

.create-option-text {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}

.create-modal-handle {
  width: 40px;
  height: 4px;
  background: #666666;
  border-radius: 2px;
  margin: 0 auto;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}

/* Desktop styles for create modal */
@media (min-width: 769px) {
  .create-modal-overlay {
    align-items: center;
  }
  
  .create-modal {
    border-radius: 20px;
    transform: translateY(20px) scale(0.95);
    max-width: 400px;
  }
  
  .create-modal-overlay.show .create-modal {
    transform: translateY(0) scale(1);
  }
  
  .create-modal-handle {
    display: none;
  }
}

/* Collection Upload Styles */
.upload-section {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl);
}

.upload-section h1 {
  color: var(--text);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  text-align: center;
}

.upload-description {
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--space-2xl);
  font-size: 1.1rem;
}

.upload-form {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--border);
}

.form-group {
  margin-bottom: var(--space-xl);
}

.form-group label {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  font-size: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

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

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

    /* Sport and Player Search Styles */
    .sport-player-row {
      display: flex;
      gap: var(--space-md);
      align-items: flex-start;
    }

    .sport-dropdown-container {
      flex: 0 0 150px;
    }


    .player-search-container {
      position: relative;
      flex: 1;
    }

    .player-search-container input {
      width: 100%;
      height: 48px;
      padding: var(--space-md);
      border: 2px solid var(--border);
      border-radius: var(--radius-xl);
      background: var(--surface);
      color: var(--text);
      font-size: 0.95rem;
      font-weight: 500;
      font-family: inherit;
      box-sizing: border-box;
      box-shadow: var(--shadow-xs);
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      outline: none;
    }

    .player-search-container input:hover {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
      transform: translateY(-1px);
    }

    .player-search-container input:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

    .player-search-container input:disabled {
      background: var(--surface);
      color: var(--text-muted);
      cursor: not-allowed;
    }

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.suggestion-item {
  padding: var(--space-md);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.selected {
  background: var(--surface-hover);
}

.suggestion-player {
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.suggestion-details {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Selected Players Styles */
.selected-players {
  margin-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.selected-player {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  gap: var(--space-sm);
  justify-content: space-between;
}

.selected-player .player-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.selected-player .player-details {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: auto;
}

.selected-player .remove-player {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.selected-player .remove-player:hover {
  background: var(--surface-hover);
  color: var(--error);
}

/* Card Upload Styles */
.card-uploads-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.card-player-search {
  margin-bottom: var(--space-lg);
}

.card-player-search label {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
}

.card-player-search .player-search-container {
  position: relative;
  flex: 1;
}

.card-player-search .player-search-container input {
  width: 100%;
  height: 48px;
  padding: var(--space-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  box-sizing: border-box;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.card-player-search .player-search-container input:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  transform: translateY(-1px);
}

.card-player-search .player-search-container input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.card-player-search .search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  max-height: 150px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.card-player-search .suggestion-item {
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
}

.card-player-search .suggestion-item:last-child {
  border-bottom: none;
}

.card-player-search .suggestion-item:hover,
.card-player-search .suggestion-item.selected {
  background: var(--surface-hover);
}

.card-player-search .suggestion-player {
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-xs);
  font-size: 0.85rem;
}

.card-player-search .suggestion-details {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.selected-card-player {
  margin-top: var(--space-sm);
}

.selected-card-player .selected-player {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xs) var(--space-sm);
  gap: var(--space-xs);
}

.selected-card-player .player-info {
  display: flex;
  flex-direction: column;
}

.selected-card-player .player-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.8rem;
}

.selected-card-player .player-details {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.selected-card-player .remove-player {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.selected-card-player .remove-player:hover {
  background: var(--surface-hover);
  color: var(--error);
}

.card-upload-slot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.card-slot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.card-slot-header h3 {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.remove-card-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.remove-card-btn:hover {
  background: var(--surface-hover);
  color: var(--error);
}

.card-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-2xl);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-upload-area:hover {
  border-color: var(--primary);
  background: var(--surface-hover);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-muted);
}

.upload-placeholder svg {
  color: var(--text-muted);
}

.upload-placeholder p {
  margin: 0;
  font-size: 1rem;
}

.uploaded-image {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.uploaded-image img {
  max-width: 100%;
  max-height: 300px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.change-image-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.change-image-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

    .add-card-btn {
      background: var(--surface);
      border: 2px dashed var(--border);
      color: var(--text);
      padding: var(--space-lg);
      border-radius: var(--radius-md);
      cursor: pointer;
      font-size: 1rem;
      font-weight: 500;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: var(--space-sm);
      transition: all 0.2s ease;
      width: 100%;
      margin-top: 5px;
    }

.add-card-btn:hover {
  border-color: var(--primary);
  background: var(--surface-hover);
  color: var(--primary);
}

/* Submit Button */
.submit-btn {
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  padding: var(--space-lg) var(--space-2xl);
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  position: relative;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid var(--white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Auth Required Styles */
.auth-required {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.auth-required h1 {
  color: var(--text);
  margin-bottom: var(--space-md);
}

.auth-required p {
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.auth-btn {
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

    /* Mobile Responsive */
    @media (max-width: 768px) {
      .upload-section {
        padding: var(--space-md);
      }
      
      .upload-section h1 {
        font-size: 2rem;
      }
      
      .upload-form {
        padding: var(--space-lg);
      }
      
      .card-upload-area {
        min-height: 150px;
        padding: var(--space-lg);
      }
      
      .uploaded-image img {
        max-height: 200px;
      }

      .sport-player-row {
        flex-direction: column;
        gap: var(--space-sm);
      }

      .sport-dropdown-container {
        flex: none;
        width: 100%;
      }

      .card-player-search .player-search-container {
        flex: none;
        width: 100%;
      }


      .player-search-container input {
        height: 48px;
        padding: var(--space-md);
        font-size: 0.95rem;
        line-height: 1.4;
        width: 100%;
        box-sizing: border-box;
        border: 2px solid var(--border);
        border-radius: var(--radius-xl);
        background: var(--surface);
        color: var(--text);
        font-weight: 500;
        box-shadow: var(--shadow-xs);
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        outline: none;
      }

      .player-search-container input:hover {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        transform: translateY(-1px);
      }

      .player-search-container input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
      }

      .card-player-search .player-search-container input {
        height: 48px;
        padding: var(--space-md);
        font-size: 0.95rem;
        line-height: 1.4;
        width: 100%;
        box-sizing: border-box;
        border: 2px solid var(--border);
        border-radius: var(--radius-xl);
        background: var(--surface);
        color: var(--text);
        font-weight: 500;
        box-shadow: var(--shadow-xs);
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        outline: none;
      }

      .card-player-search .player-search-container input:hover {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        transform: translateY(-1px);
      }

      .card-player-search .player-search-container input:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
      }
    }