/* Les variables de thème sont maintenant dans common-theme.css */
/* Variables héritées pour compatibilité */
:root {
  --bg: var(--bg-primary);
  --panel: var(--bg-secondary);
  --border: var(--border-medium);
  --text: var(--text-primary);
  --highlight: var(--accent-primary);
  --highlight-glow: var(--shadow-medium);
  --used: var(--text-tertiary);
  --accent: var(--danger);
  --accent-glow: var(--shadow-medium);
  --caldya-gold: var(--accent-primary);
  --caldya-blue: var(--accent-primary);
}

[data-theme="dark"] {
  --bg: var(--bg-primary);
  --panel: var(--bg-secondary);
  --border: var(--border-medium);
  --text: var(--text-primary);
  --highlight: var(--accent-primary);
  --highlight-glow: var(--shadow-medium);
  --used: var(--text-tertiary);
  --accent: var(--danger);
  --accent-glow: var(--shadow-medium);
  --caldya-gold: var(--accent-primary);
  --caldya-blue: var(--accent-primary);
}

/* html, body rules removed. dashboard handles these */
#fearlessContainer {
  position: relative;
  height: calc(100vh - 120px);
  overflow: hidden;
  display: flex;
}

/* Sessions toggle button */
.fl-sessions-toggle {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 110;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(42, 45, 60, 0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.fl-sessions-toggle:hover { background: rgba(59,130,246,0.2); color: #fff; }
.fl-sessions-panel.collapsed + .fearless-layout-wrapper ~ .fl-sessions-toggle,
#fearlessContainer .fl-sessions-panel.collapsed ~ .fl-sessions-toggle { left: 8px; }

/* Sessions panel */
.fl-sessions-panel {
  transition: margin-left 0.2s ease, opacity 0.2s ease;
}
.fl-sessions-panel.collapsed {
  margin-left: -220px;
  opacity: 0;
  pointer-events: none;
}
.fl-sessions-panel {
  width: 220px;
  min-width: 220px;
  background: rgba(26, 29, 41, 0.8);
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 10;
}
.fl-sessions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 8px;
}
.fl-sessions-header h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fl-sessions-btn {
  background: rgba(59,130,246,0.15);
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,0.3);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 600;
}
.fl-sessions-btn:hover { background: rgba(59,130,246,0.25); }
.fl-sessions-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 8px;
}
.fl-session-item {
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fl-session-item:hover { background: rgba(59,130,246,0.1); }
.fl-session-item.active {
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  color: #fff;
}
.fl-session-item .fl-session-delete {
  opacity: 0;
  color: #ef4444;
  cursor: pointer;
  font-size: 14px;
  padding: 0 4px;
}
.fl-session-item:hover .fl-session-delete { opacity: 0.7; }
.fl-session-item:hover .fl-session-delete:hover { opacity: 1; }
.fl-sessions-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 8px 14px;
}
.fl-scrim-presets {
  padding: 4px 8px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.fl-scrim-preset-btn {
  background: rgba(34,197,94,0.12);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 600;
}
.fl-scrim-preset-btn:hover { background: rgba(34,197,94,0.22); }
.fl-scrim-save-btn {
  background: rgba(251,146,60,0.12);
  color: #fb923c;
  border: 1px solid rgba(251,146,60,0.25);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 600;
}
.fl-scrim-save-btn:hover { background: rgba(251,146,60,0.22); }

/* body::before supprimé pour un design sobre */

/* Drag and Drop Styling */
.champion-icon[draggable="true"] {
  cursor: grab;
}

.champion-icon[draggable="true"]:active {
  cursor: grabbing;
}

.player-column {
  transition: background-color 0.2s ease;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(30, 30, 50, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: rgba(61, 79, 115, 0.6);
  border-radius: 3px;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(61, 79, 115, 0.8);
}

::-webkit-scrollbar-corner {
  background: rgba(30, 30, 50, 0.1);
}

.fearless-header-bar {
  display: flex;
  align-items: center;
  padding: 8px 20px 8px 60px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-medium);
  box-shadow: 0 2px 4px var(--shadow-light);
  gap: 20px;
  position: relative;
  z-index: 100;
}

.logo {
  position: relative;
  left: -40px;
  height: 55px;
  width: auto;
  /* Animation supprimée pour design sobre */
}

.app-title {
  position: relative;
  left: -65px;
  font-size: 42px;
  font-weight: 800;
  margin: 0;
  color: var(--text-primary);
  letter-spacing: 2px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* Role Toggle Switch Styles */
.role-toggle-container {
  display: flex;
  align-items: center;
}
.role-toggle-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  gap: 5px;
  user-select: none;
}
.role-toggle-label input[type="checkbox"] {
  display: none;
}
.role-toggle-slider {
  position: relative;
  width: 50px;
  height: 26px;
  background: var(--border-light);
  border-radius: 34px;
  transition: background-color 0.3s ease;
  border: 1px solid var(--border-medium);
}
.role-toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.role-toggle-label input[type="checkbox"]:checked + .role-toggle-slider {
  background: var(--accent-primary);
}
.role-toggle-label input[type="checkbox"]:checked + .role-toggle-slider::before {
  transform: translateX(24px);
}
.role-toggle-text {
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
  max-width: 80px;
}

/* DMG Toggle Switch Styles */
.dmg-toggle-container {
  display: flex;
  align-items: center;
}

.dmg-toggle-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  gap: 5px;
  user-select: none;
}

.dmg-toggle-label input[type="checkbox"] {
  display: none;
}

.dmg-toggle-slider {
  position: relative;
  width: 50px;
  height: 26px;
  background: var(--border-light);
  border-radius: 34px;
  transition: background-color 0.3s ease;
  border: 1px solid var(--border-medium);
}

.dmg-toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dmg-toggle-label input[type="checkbox"]:checked + .dmg-toggle-slider {
  background: var(--accent-primary);
}

.dmg-toggle-label input[type="checkbox"]:checked + .dmg-toggle-slider::before {
  transform: translateX(24px);
}

.dmg-toggle-text {
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
}

/* Clean Damage Type Borders */
*.ap-damage,
*[class*="ap-damage"],
img.ap-damage,
.champion-icon.ap-damage,
.champion-grid .ap-damage,
.player-column .ap-damage,
.player-block .ap-damage,
.tier-container .ap-damage,
.all-champions-container .ap-damage,
div .ap-damage,
.small.ap-damage,
img.small.ap-damage,
img.champion-icon.ap-damage,
.champion-icon.small.ap-damage,
img.champion-icon.small.ap-damage {
  border: 2px solid #3498db !important;
  box-shadow: 0 0 6px rgba(52, 152, 219, 0.6) !important;
}

*.ad-damage,
*[class*="ad-damage"],
img.ad-damage,
.champion-icon.ad-damage,
.champion-grid .ad-damage,
.player-column .ad-damage,
.player-block .ad-damage,
.tier-container .ad-damage,
.all-champions-container .ad-damage,
div .ad-damage,
.small.ad-damage,
img.small.ad-damage,
img.champion-icon.ad-damage,
.champion-icon.small.ad-damage,
img.champion-icon.small.ad-damage {
  border: 2px solid #e74c3c !important;
  box-shadow: 0 0 6px rgba(231, 76, 60, 0.6) !important;
}

*.mixed-damage,
*[class*="mixed-damage"],
img.mixed-damage,
.champion-icon.mixed-damage,
.champion-grid .mixed-damage,
.player-column .mixed-damage,
.player-block .mixed-damage,
.tier-container .mixed-damage,
.all-champions-container .mixed-damage,
div .mixed-damage,
.small.mixed-damage,
img.small.mixed-damage,
img.champion-icon.mixed-damage,
.champion-icon.small.mixed-damage,
img.champion-icon.small.mixed-damage {
  border: 2px solid #ff6b35 !important;
  box-shadow: 0 0 6px rgba(255, 107, 53, 0.6) !important;
}

/* Pick-rate number overlays */
.champion-container {
  position: relative;
  display: inline-block;
}

.pick-rate-overlay {
  position: absolute;
  top: 2px;
  right: 2px;
  color: #000;
  font-size: 14px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  min-width: 20px;
  text-align: center;
  z-index: 10;
  pointer-events: none;
}

/* Pick-rate color coding based on frequency */
.pick-rate-overlay.low {
  background: rgba(46, 204, 113, 0.95);
  border: 1px solid #2ecc71;
}

.pick-rate-overlay.medium {
  background: rgba(255, 193, 7, 0.95);
  border: 1px solid #ffc107;
}

.pick-rate-overlay.high {
  background: rgba(231, 76, 60, 0.95);
  border: 1px solid #e74c3c;
  color: #fff;
}

/* Team Preset Controls Styles */
.team-preset-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px;
  background: rgba(30, 30, 50, 0.5);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.team-preset-select {
  padding: 8px 12px;
  background: var(--panel);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
}
.team-preset-select:hover {
  border-color: var(--highlight);
  box-shadow: 0 0 10px var(--highlight-glow);
}
.team-preset-select:focus {
  outline: none;
  border-color: var(--highlight);
  box-shadow: 0 0 15px var(--highlight-glow);
}
.team-preset-select option {
  background: var(--panel);
  color: var(--text);
  padding: 5px;
}
.save-preset-button {
  background: var(--accent-primary);
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  padding: 8px 16px;
  color: var(--bg-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px var(--shadow-light);
}
.save-preset-button:hover {
  background: var(--accent-hover);
  box-shadow: 0 2px 4px var(--shadow-medium);
  transform: translateY(-1px);
}

.fearless-layout-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  overflow: hidden;
}

.fearless-main-content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.champion-panel {
  width: 600px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  border-right: 2px solid var(--border);
  padding: 20px;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.champion-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 10px 0;
  max-width: 70%;
  margin: 0 auto;
}

.champion-icon {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  object-fit: cover;
  border: 2px solid transparent;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
}

.champion-icon:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4), 0 0 20px var(--highlight-glow);
  border-color: var(--highlight);
}

.champion-icon.used {
  filter: grayscale(100%) brightness(0.5);
  opacity: 0.5;
}

.filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 20px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.role-name {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: rgba(253, 253, 253, 0.681);
  text-shadow: 0 0 10px rgba(253, 253, 253, 0.5);
  letter-spacing: 0.5px;
}

.role-icon-label {
  width: 32px;
  height: 32px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.role-icon, .damage-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.role-icon.active,
.damage-icon.active {
  border-color: var(--highlight);
  box-shadow: 0 0 15px var(--highlight-glow);
  transform: scale(1.1);
}

.role-icon:hover,
.damage-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

#searchInput {
  padding: 12px 16px;
  border-radius: 8px;
  border: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 14px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  min-width: 200px;
}

#searchInput:focus {
  outline: none;
  border-color: var(--highlight);
  box-shadow: 0 0 10px var(--highlight-glow);
  background: rgba(255, 255, 255, 0.15);
}

#searchInput::placeholder {
  color: rgba(240, 240, 240, 0.6);
}

button {
  padding: 12px 20px;
  margin: 4px;
  border-radius: 4px;
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: 1px solid var(--border-dark);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px var(--shadow-light);
}

button:hover {
  background: var(--accent-hover);
  box-shadow: 0 2px 4px var(--shadow-medium);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px var(--shadow-light);
}

.control-buttons {
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background-color: var(--panel);
  border-top: 1px solid var(--border);
}

.team-display {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  gap: 50px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.02);
}

.team {
  display: flex;
  gap: 25px;
  perspective: 1000px;
  align-items: stretch;
}

.team-container {
  transition: transform 0.3s ease;
}

.team-container:hover {
  transform: translateY(-5px);
}

.player-block {
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.player-block:hover {
  transform: translateY(-3px);
}

body.isolated .player-block.active {
  transition: none !important;
  transform: none !important;
}

body.isolated .player-block.active:hover {
  transform: none !important;
}

.fearless-page .team-name {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.editable-team-name {
  cursor: text;
  position: relative;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-height: 1.2em;
  outline: none;
  border: 2px solid transparent;
}

.editable-team-name:hover {
  background: var(--bg-tertiary);
}

.editable-team-name:focus {
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-primary);
  box-shadow: 0 2px 4px var(--shadow-medium);
  /* Override the gradient text when editing for better readability */
  -webkit-background-clip: initial;
  -webkit-text-fill-color: var(--text-primary);
  background-clip: initial;
  color: var(--text-primary);
}

.editable-team-name:empty::before {
  content: attr(data-placeholder);
  color: rgba(240, 240, 240, 0.5);
  font-style: italic;
}

.player-column {
  width: 320px;
  min-height: 200px;
  background: var(--panel);
  backdrop-filter: blur(10px);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: visible;
  box-sizing: border-box;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  flex: 1;
}

.player-column:hover {
  border-color: var(--highlight);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.player-block.active .player-column {
  border-color: var(--highlight);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

body.isolated .player-block.active .player-column:hover {
  border-color: var(--highlight) !important;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3) !important;
  transform: none !important;
  transition: none !important;
}

.player-column img.champion-icon.small {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  object-fit: cover;
}

#fearlessContainer .hidden {
  display: none !important;
}

body.isolated .player-block:not(.active) {
  opacity: 0.7;
  pointer-events: none;
}

body.isolated .global-team-name {
  opacity: 0.7;
}

/* Normal state - ensure player columns are in normal position */
body:not(.isolated) .player-column {
  position: relative !important;
  width: 320px !important;
  min-height: 200px !important;
  height: auto !important;
  bottom: auto !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  border-radius: 12px !important;
  z-index: auto !important;
}

/* Isolated state - player panel at bottom left */
body.isolated .player-block.active .player-column {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  top: auto !important;
  right: auto !important;
  width: 60vw !important;
  max-width: 800px !important;
  max-height: 80vh !important;
  height: auto !important;
  overflow-y: auto !important;
  background: var(--panel) !important;
  border: 2px solid var(--highlight) !important;
  border-radius: 0 20px 0 0 !important;
  z-index: 1000 !important;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3) !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
  opacity: 1 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-content: flex-start !important;
}

.player-panel-close {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff4444 100%);
  color: white;
  font-size: 20px;
  font-weight: bold;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1001;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.player-panel-close:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(255, 107, 107, 0.4);
}

body.isolated .team-display {
  padding-bottom: 60vh;
}

body.isolated .player-block.active .champion-icon.small {
  width: 80px;
  height: 80px;
}

.champion-icon.unavailable {
  opacity: 0.3;
  filter: grayscale(100%) contrast(50%);
  border: 2px solid var(--accent);
  box-sizing: border-box;
  animation: pulse 2s infinite;
  cursor: pointer;
}

.champion-icon.unavailable:hover {
  opacity: 0.6;
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--accent-glow);
}

.champion-icon.alternative-highlight {
  border: 3px solid #10b981;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.9), 
              0 0 30px rgba(16, 185, 129, 0.5),
              0 0 15px rgba(16, 185, 129, 0.5) inset;
  animation: alternativeGlow 1.6s ease-in-out infinite;
  position: relative;
  z-index: 6;
  transform: scale(1.08);
}

.champion-icon.alternative-highlight:hover {
  transform: scale(1.15);
  box-shadow: 0 0 35px rgba(16, 185, 129, 1), 
              0 0 30px rgba(16, 185, 129, 0.6),
              0 0 15px rgba(16, 185, 129, 0.6) inset;
  border-color: #ffffff;
}

@keyframes alternativeGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.9), 
                0 0 8px rgba(16, 185, 129, 0.5),
                0 0 2px rgba(16, 185, 129, 0.5) inset;
    transform: scale(1.08);
    border-color: #10b981;
  }
  50% {
    box-shadow: 0 0 20px rgba(16, 185, 129, 1), 
                0 0 15px rgba(16, 185, 129, 0.6),
                0 0 5px rgba(16, 185, 129, 0.6) inset;
    transform: scale(1.11);
    border-color: #00ffa2;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--accent-glow);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
  }
}

body.grid-only .team-display {
  padding-bottom: 50vh !important;
  width: 100vw !important;
}

body.grid-only .champion-panel {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 50vh;
  background-color: var(--panel);
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
  border-top: 2px solid var(--border);
  border-radius: 20px 20px 0 0;
  animation: slideUpPanel 0.3s ease-out;
}

@keyframes slideUpPanel {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Player panel animations disabled for stability */

body.grid-only .champion-grid {
  justify-content: center;
  gap: 12px;
}

body.grid-only .champion-icon {
  width: 90px;
  height: 90px;
}

.grid-toggle-arrow {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 48px;
  background: linear-gradient(135deg, var(--panel) 0%, var(--caldya-blue) 100%);
  backdrop-filter: blur(10px);
  color: var(--bg-primary);
  font-size: 32px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  z-index: 1100;
  transition: all 0.3s ease;
  border: 2px solid var(--border);
  box-shadow: 0 4px 15px var(--shadow-medium);
}

.grid-toggle-arrow:hover {
  transform: translateX(-50%) translateY(-5px);
  box-shadow: 0 6px 20px var(--shadow-heavy);
}

body.grid-only .grid-toggle-arrow {
  transform: translateX(-50%) rotate(180deg);
}

.close-button {
  position: absolute;
  top: 15px;
  right: 20px;
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff4444 100%);
  color: white;
  font-size: 24px;
  font-weight: bold;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1200;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.close-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(255, 107, 107, 0.4);
  background: linear-gradient(135deg, #ff4444 0%, var(--accent) 100%);
}

.close-button:active {
  transform: scale(0.95);
}

/* Responsive Design */

/* Large Desktop (1600px+) - No changes needed */

/* Desktop (1200px-1600px) */
@media (max-width: 1600px) {
  .champion-panel {
    width: 500px;
  }
  
  .player-column {
    width: 280px;
    min-height: 150px;
  }
  
  .team {
    gap: 20px;
  }
}

/* Small Desktop (1024px-1200px) */
@media (max-width: 1200px) {
  .champion-panel {
    width: 450px;
  }
  
  .player-column {
    width: 250px;
    min-height: 150px;
  }
  
  .champion-icon {
    width: 70px;
    height: 70px;
  }
  
  .team-display {
    padding: 20px;
    gap: 40px;
  }
}

/* Tablet Landscape (768px-1024px) */
@media (max-width: 1024px) {
  .header {
    padding: 15px;
    flex-wrap: wrap;
    position: relative;
  }
  
  .app-title {
    font-size: 14px;
    order: 2;
    flex: 1;
    text-align: center;
  }
  
  .logo {
    height: 40px;
    order: 1;
  }
  
  .scrim-button, .draft-button, .share-button, .clear-button {
    position: static;
    transform: none;
    order: 3;
    margin: 0 5px;
  }
  
  .instructions-button {
    position: static;
    transform: none;
    order: 4;
  }
  
  .main-content {
    flex-direction: column;
  }
  
  .champion-panel {
    width: 100%;
    height: auto;
    max-height: 400px;
    border-right: none;
    border-bottom: 2px solid var(--border);
    order: -1;
  }
  
  .team-display {
    flex-direction: row;
    justify-content: space-around;
    padding: 20px;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .team-container {
    flex: 0 1 auto;
  }
  
  .team {
    flex-direction: column;
    gap: 10px;
  }
  
  .player-column {
    width: 320px;
    min-height: 100px;
  }
  
  .player-column img.champion-icon.small {
    width: 60px;
    height: 60px;
  }
  
  .filter-container {
    gap: 10px;
    padding: 15px;
  }
  
  .role-filter {
    display: flex;
    gap: 8px;
  }
  
  #searchInput {
    width: 180px;
  }
  
  button {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .champion-grid {
    max-width: 100%;
    gap: 5px;
  }
  
  .champion-icon {
    width: 65px;
    height: 65px;
  }
}

/* Tablet Portrait & Mobile Landscape (640px-768px) */
@media (max-width: 768px) {
  .layout-wrapper {
    height: auto;
    min-height: 100vh;
  }
  
  .header {
    padding: 10px;
    gap: 10px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
  }
  
  .logo {
    grid-column: 1;
    grid-row: 1;
    height: 35px;
  }
  
  .app-title {
    grid-column: 2;
    grid-row: 1;
    font-size: 22px;
    text-align: center;
    letter-spacing: 0;
  }
  
  .instructions-button {
    grid-column: 3;
    grid-row: 1;
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .scrim-button {
    grid-column: 1 / 2;
    grid-row: 2;
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .draft-button {
    grid-column: 2 / 3;
    grid-row: 2;
    padding: 6px 12px;
    font-size: 12px;
    justify-self: start;
  }
  
  .share-button {
    grid-column: 2 / 3;
    grid-row: 2;
    padding: 6px 12px;
    font-size: 12px;
    justify-self: center;
  }
  
  .clear-button {
    grid-column: 3 / 4;
    grid-row: 2;
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .main-content {
    flex-direction: column;
    overflow-y: auto;
  }
  
  .champion-panel {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 60vh;
    max-height: none;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    border-top: 2px solid var(--border);
    transition: bottom 0.3s ease;
    z-index: 999;
  }
  
  .champion-panel:not(.hidden) {
    bottom: 0;
  }
  
  .grid-toggle-arrow {
    bottom: 10px;
    width: 60px;
    height: 40px;
    font-size: 24px;
  }
  
  body.grid-only .grid-toggle-arrow {
    bottom: 60vh;
  }
  
  .team-display {
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    gap: 30px;
    padding-bottom: 60px; /* Space for toggle arrow */
  }
  
  .team-container {
    width: 100%;
    max-width: 500px;
  }
  
  .team {
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .player-block {
    flex: 0 0 calc(50% - 4px);
    max-width: 200px;
  }
  
  .player-block:last-child {
    flex: 0 0 100%;
    max-width: 200px;
  }
  
  .role-name {
    font-size: 18px;
    margin-bottom: 8px;
  }
  
  .player-column {
    width: 100%;
    min-height: 100px;
    padding: 10px;
  }
  
  .player-column img.champion-icon.small {
    width: 50px;
    height: 50px;
  }
  
  .team-name {
    font-size: 24px;
    margin-bottom: 15px;
  }
  
  .filter-container {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }
  
  .role-filter {
    justify-content: center;
  }
  
  .role-icon, .damage-icon {
    width: 30px;
    height: 30px;
  }
  
  #searchInput {
    width: 100%;
    max-width: 250px;
    padding: 8px 12px;
    font-size: 14px;
  }
  
  button {
    padding: 6px 12px;
    font-size: 12px;
    margin: 2px;
  }
  
  .champion-grid {
    gap: 4px;
  }
  
  .champion-icon {
    width: 55px;
    height: 55px;
  }
  
  /* Isolated state adjustments */
  body.isolated .player-block.active .player-column {
    width: 90vw !important;
    max-width: 600px !important;
    max-height: 50vh !important;
    overflow-y: auto !important;
  }
  
  body.isolated .player-block.active .champion-icon.small {
    width: 60px;
    height: 60px;
  }
}

/* Mobile Portrait (480px-640px) */
@media (max-width: 640px) {
  .app-title {
    font-size: 18px;
  }
  
  .logo {
    height: 30px;
  }
  
  .player-block {
    flex: 0 0 100%;
    max-width: 300px;
  }
  
  .player-column {
    min-height: 80px;
  }
  
  .team-name {
    font-size: 20px;
  }
  
  .role-name {
    font-size: 16px;
  }
  
  .champion-icon {
    width: 50px;
    height: 50px;
  }
  
  .champion-panel {
    height: 70vh;
  }
  
  body.grid-only .grid-toggle-arrow {
    bottom: 60vh;
  }
}

/* Small Mobile (below 480px) */
@media (max-width: 480px) {
  .header {
    padding: 8px;
    gap: 5px;
  }
  
  .app-title {
    font-size: 16px;
  }
  
  .logo {
    height: 25px;
  }
  
  .instructions-button {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  
  .scrim-button, .draft-button, .share-button, .clear-button {
    padding: 5px 10px;
    font-size: 11px;
  }
  
  .team-display {
    padding: 10px 5px;
    gap: 20px;
  }
  
  .team-name {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .role-name {
    font-size: 14px;
    margin-bottom: 5px;
  }
  
  .player-column {
    width: 100%;
    min-height: 60px;
    padding: 8px;
  }
  
  .player-column img.champion-icon.small {
    width: 40px;
    height: 40px;
  }
  
  .filter-container {
    padding: 8px;
    gap: 5px;
  }
  
  .role-icon, .damage-icon {
    width: 25px;
    height: 25px;
  }
  
  #searchInput {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  button {
    padding: 5px 10px;
    font-size: 11px;
  }
  
  .champion-icon {
    width: 45px;
    height: 45px;
  }
  
  .champion-grid {
    gap: 3px;
  }
  
  .grid-toggle-arrow {
    width: 50px;
    height: 35px;
    font-size: 20px;
  }
  
  /* Modal adjustments */
  .modal-content {
    margin: 5% auto;
    padding: 15px;
    width: 98%;
  }
  
  .modal-content h2 {
    font-size: 20px;
  }
  
  .modal-content h3 {
    font-size: 16px;
  }
  
  .instructions-content {
    font-size: 14px;
  }
  
  /* Isolated state small mobile */
  body.isolated .player-block.active .player-column {
    width: 100vw !important;
    max-height: 45vh !important;
    overflow-y: auto !important;
    padding: 10px !important;
  }
  
  body.isolated .player-block.active .champion-icon.small {
    width: 45px;
    height: 45px;
  }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
  .header {
    padding: 5px 10px;
  }
  
  .champion-panel {
    height: 80vh;
  }
  
  body.grid-only .grid-toggle-arrow {
    bottom: 80vh;
  }
  
  .team-display {
    flex-direction: row;
    padding: 10px;
  }
  
  .team {
    flex-direction: column;
  }
  
  .player-column {
    min-height: 60px;
  }
  
  .player-column img.champion-icon.small {
    width: 35px;
    height: 35px;
  }
}

/* Header button base styles */
.scrim-button,
.draft-button,
.patch-button,
.save-scrim-button,
.share-button,
.clear-button {
  background: var(--accent-primary);
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  padding: 8px 16px;
  color: var(--bg-primary);
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px var(--shadow-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.scrim-button:hover,
.draft-button:hover,
.patch-button:hover,
.save-scrim-button:hover,
.share-button:hover {
  background: var(--accent-hover);
  box-shadow: 0 2px 4px var(--shadow-medium);
}

.clear-button {
  background: var(--danger);
  margin-left: auto; /* Push clear to the right */
}

.clear-button:hover {
  filter: brightness(0.9);
}

/* Instructions Button Styles */
.instructions-button {
  background: var(--accent-primary);
  border: 1px solid var(--border-dark);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: var(--bg-primary);
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px var(--shadow-light);
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
}

.instructions-button:hover {
  background: var(--accent-hover);
  box-shadow: 0 2px 4px var(--shadow-medium);
  transform: translateY(-50%);
}

.instructions-button:active {
  transform: translateY(-50%) scale(0.95);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: linear-gradient(135deg, var(--panel) 0%, rgba(30, 30, 50, 0.98) 100%);
  margin: 5% auto;
  padding: 30px;
  border: 2px solid var(--border);
  border-radius: 20px;
  width: 90%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content .close {
  position: absolute;
  right: 20px;
  top: 20px;
  color: var(--text);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
}

.modal-content .close:hover {
  color: var(--accent);
  background: rgba(255, 107, 107, 0.2);
  transform: scale(1.1);
}

.modal-content h2 {
  color: rgb(255, 255, 255);
  margin-bottom: 20px;
  font-size: 28px;
  text-align: center;
  background: linear-gradient(135deg, rgb(255, 255, 255) 0%, var(--caldya-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-content h3 {
  color: var(--caldya-gold);
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: 20px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 5px;
}

.instructions-content {
  line-height: 1.6;
  color: var(--text);
}

.instructions-content ul, .instructions-content ol {
  padding-left: 20px;
}

.instructions-content li {
  margin-bottom: 8px;
}

.instructions-content strong {
  color: var(--highlight);
}

.instructions-content ul ul {
  margin-top: 8px;
}

/* Responsive modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 20px;
    max-height: 75vh;
  }
  
  .modal-content h2 {
    font-size: 24px;
  }
  
  .modal-content h3 {
    font-size: 18px;
  }
  
  .instructions-button {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .scrim-button {
    left: 10px;
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* Notification animations */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Share button styling */
#shareButton {
  background: linear-gradient(135deg, var(--caldya-gold) 0%, #ffffff 100%);
  color: #1a1a1a;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

#shareButton:hover {
  background: linear-gradient(135deg, #ffffff 0%, var(--caldya-gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(234, 234, 234, 0.3);
}

#shareButton:active {
  transform: translateY(0);
}

/* ================== PRIORITY PICKS PANEL STYLES ================== */

/* Priority toggle arrow button - right side */
.priority-toggle-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 60px;
  background: linear-gradient(135deg, var(--panel) 0%, var(--caldya-blue) 100%);
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow-medium);
  z-index: 1001;
  font-size: 24px;
  font-weight: bold;
  color: var(--bg-primary);
}

.priority-toggle-arrow:hover {
  transform: translateY(-50%) translateX(-2px);
  box-shadow: 0 6px 20px var(--shadow-heavy);
}

/* Priority panel - right side */
#priority-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: absolute;
  right: 0;
  top: 0;
  width: 20vw;
  min-width: 250px;
  height: 100%;
  background-color: var(--panel);
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
  border-left: 2px solid var(--border);
  border-radius: 20px 0 0 20px;
}

#priority-panel:not(.hidden) {
  display: flex !important;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Priority header */
.priority-header {
  width: 100%;
  text-align: center;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.priority-header h3 {
  color: var(--caldya-gold);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Priority controls */
.priority-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.priority-btn {
  padding: 8px 12px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.add-btn {
  background: linear-gradient(135deg, var(--highlight) 0%, var(--caldya-blue) 100%);
  color: white;
  border-color: var(--highlight);
}

.add-btn:hover {
  background: linear-gradient(135deg, var(--caldya-blue) 0%, var(--highlight) 100%);
  box-shadow: 0 0 15px var(--highlight-glow);
  transform: translateY(-1px);
}

.clear-btn {
  background: linear-gradient(135deg, var(--accent) 0%, #ff4444 100%);
  color: white;
  border-color: var(--accent);
}

.clear-btn:hover {
  background: linear-gradient(135deg, #ff4444 0%, var(--accent) 100%);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-1px);
}

/* Priority champions list */
.priority-champions-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  align-items: center;
}

/* Priority champion card */
.priority-champion {
  width: 120px;
  height: 120px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.priority-champion:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4), 0 0 20px rgba(255, 255, 255, 0.3);
  border-color: var(--caldya-gold);
}

.priority-champion.unavailable {
  opacity: 0.4;
  filter: grayscale(100%) brightness(0.4) sepia(1) hue-rotate(300deg);
  cursor: not-allowed;
  border-color: var(--accent);
}

.priority-champion.unavailable::after {
  content: 'F';
  position: absolute;
  top: 5px;
  right: 5px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Remove button for priority champions */
.priority-champion .remove-btn {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  border: 2px solid var(--panel);
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  line-height: 1;
  padding: 0;
}

.priority-champion:hover .remove-btn {
  display: flex;
}

.priority-champion .remove-btn:hover {
  background: #ff4444;
  transform: scale(1.1);
}

/* Priority champion name overlay */
.priority-champion-name {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: white;
  font-size: 0.8rem;
  text-align: center;
  padding: 5px;
  border-radius: 0 0 9px 9px;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
  width: 100%;
}

/* Close button for priority panel */
#priority-panel .close-button {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(255, 107, 107, 0.2);
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

#priority-panel .close-button:hover {
  background: var(--accent);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* Responsive adjustments for priority panel */
@media (max-width: 1200px) {
  #priority-panel {
    width: 25vw;
    min-width: 220px;
  }
  
  .priority-champion {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 768px) {
  .priority-toggle-arrow {
    width: 40px;
    height: 60px;
    font-size: 24px;
    right: 10px;
  }
  
  #priority-panel {
    width: 40vw;
    min-width: 200px;
  }
  
  .priority-champion {
    width: 80px;
    height: 80px;
  }
  
  .priority-champion-name {
    font-size: 0.7rem;
    padding: 3px;
  }
}

@media (max-width: 480px) {
  #priority-panel {
    width: 50vw;
    min-width: 180px;
  }
  
  .priority-champion {
    width: 70px;
    height: 70px;
  }
  
  .priority-header h3 {
    font-size: 1rem;
  }
}

/* Three-tier system styles */
.tier-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 6px;
}

.tier-container.tier-prio {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
  border-color: rgba(255, 215, 0, 0.3);
}

.tier-container.tier-ok {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 150, 255, 0.1) 100%);
  border-color: rgba(0, 212, 255, 0.3);
}

.tier-container.tier-counter {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(22, 163, 74, 0.1) 100%);
  border-color: rgba(34, 197, 94, 0.3);
}

.tier-container.tier-meh {
  background: rgba(100, 100, 100, 0.1);
  border-color: rgba(150, 150, 150, 0.3);
}

.tier-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.8);
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  text-align: center;
  flex-shrink: 0;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tier-prio .tier-label {
  color: var(--caldya-blue);
  text-shadow: 0 0 10px rgba(248, 248, 248, 0.5);
}

.tier-ok .tier-label {
  color: var(--highlight);
  text-shadow: 0 0 10px rgba(230, 230, 230, 0.5);
}

.tier-counter .tier-label {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(196, 196, 196, 0.5);
}

.tier-meh .tier-label {
  color: rgba(200, 200, 200, 0.8);
}

.tier-champions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  align-content: flex-start;
  justify-content: center;
  min-height: 60px;
}

/* Adjust player column for tier system */
.player-column {
  flex-direction: column !important;
  align-content: flex-start !important;
}

/* Removed tier champions scrollbar - no longer needed */

/* Tier selection UI - removed */

/* Remove the separate duo lanes styling since it's now integrated */

.duo-lanes-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(200, 200, 200, 0.8); /* Same as tier-meh */
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  text-align: center;
  flex-shrink: 0;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.duo-lanes-champions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  align-content: flex-start;
  justify-content: center;
  min-height: 60px;
}

.duo-lanes-champions .champion-icon {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  object-fit: cover;
}

/* Tier Selector Modal */
.tier-selector-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.tier-selector-content {
  background: var(--panel);
  border-radius: 16px;
  padding: 30px;
  border: 2px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 400px;
  width: 90%;
}

.tier-selector-content h3 {
  margin: 0 0 20px 0;
  text-align: center;
  color: var(--caldya-blue);
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.tier-selector-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tier-select-btn {
  padding: 15px 25px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--highlight) 0%, var(--caldya-blue) 100%);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tier-select-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.tier-select-btn[data-tier="prio"] {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.8) 0%, rgba(255, 107, 107, 0.8) 100%);
}

.tier-select-btn[data-tier="ok"] {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.8) 0%, rgba(0, 150, 255, 0.8) 100%);
}

.tier-select-btn[data-tier="counter"] {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.8) 0%, rgba(22, 163, 74, 0.8) 100%);
}

.tier-select-btn[data-tier="meh"] {
  background: linear-gradient(135deg, var(--caldya-blue) 0%, #dadada 100%);
}

/* Tier Toggle Switch Styles */
.tier-toggle-container {
  display: flex;
  align-items: center;
}

.tier-toggle-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  gap: 5px;
  user-select: none;
}

.tier-toggle-label input[type="checkbox"] {
  display: none;
}

.tier-toggle-slider {
  position: relative;
  width: 50px;
  height: 26px;
  background: var(--border-light);
  border-radius: 34px;
  transition: background-color 0.3s ease;
  border: 1px solid var(--border-medium);
}

.tier-toggle-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tier-toggle-label input[type="checkbox"]:checked + .tier-toggle-slider {
  background: var(--accent-primary);
}

.tier-toggle-label input[type="checkbox"]:checked + .tier-toggle-slider::before {
  transform: translateX(24px);
}

.tier-toggle-text {
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
}

/* All Champions Container (when tiers are hidden) */
.all-champions-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease;
  align-content: flex-start;
  justify-content: center;
  min-height: 60px;
}

.all-champions-container:hover {
  background: rgba(0, 0, 0, 0.3);
}

.all-champions-container .champion-icon {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  object-fit: cover;
}

/* Duo Lanes when tiers are hidden */
.duo-lanes-label-notier {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(200, 200, 200, 0.8);
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 6px;
}

.duo-lanes-container-notier {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  background: rgba(100, 100, 100, 0.15);
  border-radius: 8px;
  border: 1px solid rgba(150, 150, 150, 0.3);
  transition: background-color 0.2s ease;
  align-content: flex-start;
  justify-content: center;
  min-height: 60px;
}

.duo-lanes-container-notier:hover {
  background: rgba(100, 100, 100, 0.25);
}

.duo-lanes-container-notier .champion-icon {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  object-fit: cover;
}

/* Responsive adjustments for toggle */
@media (max-width: 1200px) {
  .tier-toggle-container {
    position: static;
    transform: none;
    margin: 0 10px;
  }
}

@media (max-width: 768px) {
  .tier-toggle-container {
    position: static;
    transform: none;
    margin: 5px 0;
  }
  
  .tier-toggle-slider {
    width: 40px;
    height: 22px;
  }
  
  .tier-toggle-slider::before {
    height: 16px;
    width: 16px;
  }
  
  .tier-toggle-label input[type="checkbox"]:checked + .tier-toggle-slider::before {
    transform: translateX(18px);
  }
  
  .tier-toggle-text {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .tier-toggle-text {
    font-size: 11px;
  }
}

/* Red Filter Effect for Banned Champions (Bans Mode) */
.champion-icon.champion-crossed {
  filter: brightness(0.4) sepia(1) saturate(3) hue-rotate(320deg) contrast(1.2);
  box-shadow: 0 0 8px rgba(255, 0, 0, 0.6), inset 0 0 8px rgba(255, 0, 0, 0.4);
  border: 2px solid #ff0000 !important;
  position: relative;
}

.champion-icon.champion-crossed:hover {
  filter: brightness(0.5) sepia(1) saturate(3) hue-rotate(320deg) contrast(1.2);
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.8), inset 0 0 12px rgba(255, 0, 0, 0.5);
}

/* Red Filter for Priority Champions */
.priority-champion.priority-champion-crossed {
  filter: brightness(0.4) sepia(1) saturate(3) hue-rotate(320deg) contrast(1.2);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.7), inset 0 0 10px rgba(255, 0, 0, 0.5);
  border: 3px solid #ff0000 !important;
}

.priority-champion.priority-champion-crossed:hover {
  filter: brightness(0.5) sepia(1) saturate(3) hue-rotate(320deg) contrast(1.2);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.9), inset 0 0 15px rgba(255, 0, 0, 0.6);
}

/* Alternative simpler red tint if the above is too complex */
.champion-icon.champion-crossed-simple {
  filter: brightness(0.6) saturate(0.5);
  background: rgba(255, 0, 0, 0.3);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
  border: 2px solid #ff3333 !important;
}

/* Ensure the effect is visible even with other classes */
.champion-icon.champion-crossed.unavailable {
  filter: brightness(0.3) sepia(1) saturate(4) hue-rotate(320deg) contrast(1.5) grayscale(0.3);
}

.champion-icon.champion-crossed.alternative-highlight {
  filter: brightness(0.5) sepia(1) saturate(3) hue-rotate(320deg) contrast(1.2);
  border: 3px solid #ff0000 !important;
}

/* Patch Tracker Specific Styles */
.patch-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
}

.patch-selector {
  background: rgba(51, 65, 85, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 15px;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  min-width: 150px;
}

.patch-selector option {
  background: var(--background);
  color: var(--text);
}

.save-patch-button {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 8px;
  padding: 8px 15px;
  color: white;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.save-patch-button:hover {
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.save-patch-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.delete-patch-button {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  border-radius: 8px;
  padding: 8px 15px;
  color: white;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.delete-patch-button:hover {
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.delete-patch-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-form label {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-form input {
  padding: 10px 15px;
  background: rgba(51, 65, 85, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 16px;
}

.modal-form input:focus {
  outline: none;
  border-color: var(--highlight);
  box-shadow: 0 0 10px var(--highlight-glow);
}

.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

.confirm-button, .cancel-button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.confirm-button {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.confirm-button:hover {
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.cancel-button {
  background: rgba(107, 114, 128, 0.8);
  color: white;
}

.cancel-button:hover {
  background: rgba(107, 114, 128, 1);
}

@media (max-width: 1200px) {
  .patch-controls {
    position: static;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px 0;
  }
}

/* ================== DRAWING FEATURE STYLES ================== */

/* Drawing Canvas */
.drawing-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  pointer-events: none;
  z-index: 50;
  display: block; /* Always visible to show drawings */
  /* Allow scroll events to pass through */
  touch-action: none;
}

.drawing-canvas.active {
  pointer-events: auto;
}

/* Special handling for drawing modes */
.drawing-canvas.active.pen-mode,
.drawing-canvas.active.eraser-mode,
.drawing-canvas.active.text-mode {
  pointer-events: auto;
  /* Allow vertical scrolling while drawing */
  touch-action: pan-y;
}

.drawing-canvas.active.cursor-mode {
  pointer-events: none !important;
  touch-action: auto;
}

/* Drawing Toolbar */
.drawing-toolbar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--panel) 0%, rgba(30, 30, 50, 0.98) 100%);
  backdrop-filter: blur(15px);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  z-index: 51;
  transition: all 0.3s ease;
}

.drawing-toolbar.hidden {
  display: none;
}

.toolbar-section {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-right: 1px solid var(--border);
}

.toolbar-section:last-of-type {
  border-right: none;
}

/* Tool Buttons */
.tool-button {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.tool-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--highlight);
  transform: scale(1.05);
}

.tool-button.active {
  background: linear-gradient(135deg, var(--highlight) 0%, var(--caldya-blue) 100%);
  border-color: var(--highlight);
  color: white;
  box-shadow: 0 0 15px var(--highlight-glow);
}

.tool-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.tool-button:disabled:hover {
  transform: none;
  border-color: transparent;
}

/* Color Picker */
.color-picker {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.color-picker:hover {
  border-color: var(--highlight);
  transform: scale(1.05);
}

.color-presets {
  display: flex;
  gap: 5px;
}

.color-preset {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.color-preset:hover {
  transform: scale(1.1);
  border-color: var(--highlight);
  box-shadow: 0 0 10px currentColor;
}

/* Brush Size */
.brush-size-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
}

.brush-size {
  width: 100px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
}

.brush-size::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--highlight);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.brush-size::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 10px var(--highlight-glow);
}

.brush-size::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--highlight);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.brush-size::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 10px var(--highlight-glow);
}

#brushSizeValue {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}

/* Close Drawing Button */
.close-drawing {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #ff4444 100%);
  color: white;
  border: 2px solid var(--panel);
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.close-drawing:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* Text Tool Styles */
.size-label {
  font-size: 12px;
  margin-right: 5px;
}

.font-size-select {
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.font-size-select:hover {
  border-color: var(--highlight);
  background: rgba(255, 255, 255, 0.15);
}

.font-size-select:focus {
  outline: none;
  border-color: var(--highlight);
  box-shadow: 0 0 10px var(--highlight-glow);
}

/* Text Box Container */
.text-box-container {
  position: absolute;
  display: inline-block;
  z-index: 1000;
}

/* Text Box Styles */
.text-box {
  position: relative;
  min-width: 100px;
  min-height: 30px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid var(--highlight);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-weight: 600;
  outline: none;
  cursor: text;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 0, 0, 0.6);
  user-select: text;
  text-align: left;
  display: inline-block;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  word-wrap: break-word;
  overflow-wrap: break-word;
  z-index: 1001;
}

.text-box:focus {
  outline: 2px dashed var(--caldya-gold);
  outline-offset: 4px;
  cursor: text;
  user-select: text;
  border-color: var(--caldya-gold);
  box-shadow: 0 0 15px rgb(255, 255, 255);
}

.text-box[contenteditable="false"] {
  cursor: move;
  user-select: none;
  border-color: var(--highlight);
}

.text-box-container.selected .text-box {
  border-color: var(--caldya-gold) !important;
  box-shadow: 0 0 20px rgb(255, 255, 255), 0 4px 20px rgba(0, 0, 0, 0.5);
  transform: scale(1.02);
}

.text-box-container.selected .text-box-handle {
  background: var(--caldya-gold);
  color: #000;
  border-color: rgb(255, 255, 255);
  opacity: 1;
}

.text-box-container.dragging {
  opacity: 0.8;
  cursor: move !important;
}

.text-box-container.dragging .text-box {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.text-box-handle {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  color: white;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  opacity: 0.8;
  transition: all 0.3s ease;
  user-select: none;
}

.text-box-handle:hover {
  transform: scale(1.1);
  opacity: 1;
}

/* Drawing Mode Body States */
body.drawing-mode {
  overflow-x: auto;
  overflow-y: auto;
}

/* Disable interactions in drawing mode except for drawing tools */
body.drawing-mode .champion-icon,
body.drawing-mode .player-block,
body.drawing-mode .role-icon,
body.drawing-mode .damage-icon,
body.drawing-mode input:not(.drawing-toolbar input),
body.drawing-mode button:not(.drawing-toolbar button),
body.drawing-mode select:not(.drawing-toolbar select) {
  pointer-events: none !important;
}

/* Keep drawing tools always interactive */
body.drawing-mode .drawing-toolbar,
body.drawing-mode .text-box {
  pointer-events: auto !important;
}

/* Cursor mode - re-enable all interactions */
body.drawing-mode.cursor-mode .champion-icon,
body.drawing-mode.cursor-mode .player-block,
body.drawing-mode.cursor-mode .role-icon,
body.drawing-mode.cursor-mode .damage-icon,
body.drawing-mode.cursor-mode input,
body.drawing-mode.cursor-mode button,
body.drawing-mode.cursor-mode select {
  pointer-events: auto !important;
}

/* Mobile Responsive Drawing Tools */
@media (max-width: 768px) {
  .drawing-toolbar {
    bottom: 10px;
    left: 10px;
    right: 10px;
    transform: none;
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  
  .toolbar-section {
    padding: 0 5px;
    gap: 5px;
  }
  
  .tool-button {
    width: 36px;
    height: 36px;
  }
  
  .color-picker {
    width: 30px;
    height: 30px;
  }
  
  .color-preset {
    width: 20px;
    height: 20px;
  }
  
  .brush-size {
    width: 80px;
  }
  
  .draw-button {
    right: 20px;
    padding: 8px 12px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .drawing-toolbar {
    bottom: 5px;
    left: 5px;
    right: 5px;
    padding: 6px 8px;
    gap: 8px;
  }
  
  .toolbar-section {
    border-right: none;
    padding: 0;
  }
  
  .tool-button {
    width: 30px;
    height: 30px;
  }
  
  .draw-button {
    right: 10px;
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* Team Analysis Notes Styling */
.team-notes-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  margin: 30px auto 20px auto;
  padding: 20px;
  box-shadow: 0 2px 4px var(--shadow-light);
  max-width: 1200px;
  width: calc(100% - 40px);
}

.team-notes-main-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-medium);
}

.team-notes-main-title {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.notes-category {
  margin-bottom: 25px;
  padding: 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.notes-category:hover {
  border-color: var(--border-dark);
  box-shadow: 0 2px 4px var(--shadow-medium);
}

.notes-category:last-child {
  margin-bottom: 0;
}

.team-notes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.team-notes-category-title {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.add-note-line-btn {
  background: var(--accent-primary);
  border: 1px solid var(--border-dark);
  border-radius: 6px;
  padding: 6px 12px;
  color: var(--bg-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px var(--shadow-light);
}

.add-note-line-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px var(--shadow-medium);
  background: var(--accent-hover);
}

.add-note-line-btn:active {
  transform: translateY(0);
}

.team-notes-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.note-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.note-line:hover {
  border-color: var(--border-medium);
  box-shadow: 0 2px 4px var(--shadow-light);
}

.note-champions {
  min-width: 100px;
  max-width: 120px;
  min-height: 32px;
  background: var(--bg-tertiary);
  border: 1px dashed var(--border-medium);
  border-radius: 6px;
  padding: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  transition: all 0.3s ease;
}

.note-champions.drag-over {
  border-color: var(--accent-primary);
  background: var(--bg-secondary);
  box-shadow: 0 2px 4px var(--shadow-medium);
}

.note-champion-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--border-medium);
  position: relative;
}

.note-champion-icon:hover {
  transform: scale(1.1);
  border-color: var(--accent-primary);
  box-shadow: 0 2px 4px var(--shadow-medium);
}

.note-champion-remove {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  font-size: 8px;
  line-height: 12px;
  text-align: center;
  cursor: pointer;
  display: none;
  font-weight: bold;
}

.note-champion-icon:hover .note-champion-remove {
  display: block;
}

.note-text {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  resize: vertical;
  min-height: 32px;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.note-text:focus {
  outline: none;
  background: var(--bg-tertiary);
  box-shadow: 0 2px 4px var(--shadow-light);
}

.note-text::placeholder {
  color: var(--text-tertiary);
}

.delete-note-line {
  background: var(--danger);
  border: 1px solid var(--border-dark);
  border-radius: 4px;
  width: 24px;
  height: 24px;
  color: white;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.delete-note-line:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 4px var(--shadow-medium);
  filter: brightness(0.9);
}

.delete-note-line:active {
  transform: scale(0.95);
}

/* Empty state styling */
.team-notes-lines:empty::after {
  content: "No notes in this category. Click '+ Add Line' to start.";
  display: block;
  text-align: center;
  color: var(--text-tertiary);
  font-style: italic;
  padding: 15px;
  background: var(--bg-tertiary);
  border-radius: 6px;
  border: 1px dashed var(--border-light);
}

/* Responsive adjustments for notes */
@media (max-width: 768px) {
  .team-notes-container {
    margin: 12px 0;
    padding: 12px;
  }
  
  .team-notes-main-header {
    margin-bottom: 15px;
  }
  
  .team-notes-main-title {
    font-size: 18px;
  }
  
  .notes-category {
    margin-bottom: 20px;
    padding: 12px;
  }
  
  .team-notes-header {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  
  .team-notes-category-title {
    font-size: 14px;
  }
  
  .note-line {
    flex-direction: column;
    gap: 8px;
  }
  
  .note-champions {
    min-width: unset;
    max-width: unset;
    width: 100%;
  }
  
  .note-text {
    min-height: 24px;
  }
  
  .delete-note-line {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .team-notes-main-title {
    font-size: 16px;
  }
  
  .team-notes-category-title {
    font-size: 13px;
  }
  
  .add-note-line-btn {
    font-size: 11px;
    padding: 5px 10px;
  }
  
  .note-champion-icon {
    width: 20px;
    height: 20px;
  }
  
  .note-text {
    font-size: 13px;
  }
  
  .notes-category {
    margin-bottom: 15px;
    padding: 10px;
  }
}
