body {
  font-family: sans-serif;
}

.container {
  max-width: 1600px;
}

.team {
  display: flex;
  margin-bottom: 10px;
  gap: 10px;
  justify-content: center;
  margin: 15px 10px;
}


/* div#teams-container {
  display: flex !important;
  width: 1800px;
  align-self: center;
  justify-self: center;
} */

/* Old slot styles removed - see Enhanced Ban/Pick Slots section below */


#timer {
  font-size: 24px;
  color: #f00;
  margin-bottom: 10px;
  text-align: center;
  font-weight: bold;
}

.search-result-item {
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.search-result-item:hover {
  background-color: #f0f0f0;
}

.search-result-item img {
  width: 32px;
  height: 32px;
  margin-right: 8px;
}

.slot-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-top: -9px;
}

.slot-name-box {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 14px;
  /* font-weight: normal; */
  text-align: center;
  padding: 2px 0;
}

#champ-selection-controls {
  min-height: 450px;
  position: relative;
}

.slot.skipped {
  background: rgb(20, 30, 48, 90%);
  /* filter: grayscale(1) brightness(0.9); */
}

.slot.skipped .slot-name-box {
  background-color: #555;
}



/* ==================== Fade Out Animation ==================== */

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* ==================== Champion Info Display (Left Side) ==================== */

#champion-info-display {
  position: absolute;
  left: -190px;
  top: 50%;
  transform: translateY(-50%) translateX(-20%);
  background: transparent;
  /* backdrop-filter: blur(7px);
  border: 1px solid rgba(255, 255, 255, 0.15); */
  border-radius: 12px;
  padding: 0.75rem;
  min-width: 140px;
  z-index: 5;
}

.info-item.info-element {
  background: rgb(0 0 0 / 10%) !important;
  border-radius: 12px;
}

.info-item.info-rank {
  background: rgb(0 0 0 / 10%) !important;
  border-radius: 12px;
}

#champion-info-display .info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#champion-info-display .info-element img {
  width: 24px;
  height: 24px;
}

#champion-info-display .info-element .info-label {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

#champion-info-display .info-rank {
  color: #fbbf24;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.5rem;
  margin-top: 0.25rem;
}

#champion-info-display .info-rank i {
  font-size: 0.9rem;
}

#champion-info-display .info-rank .info-value {
  color: #fbbf24;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Animation for info display */
#champion-info-display.d-flex {
  animation: slideInFromLeft 0.4s ease-out;
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(-50%) translateX(-20%);
  }
}

#champion-info-display.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

/* ==================== Champion Stats Display ==================== */

#champion-stats-display {
  position: absolute;
  right: -190px;
  top: 50%;
  transform: translateY(-50%) translateX(20%);
  background: transparent;
  /* backdrop-filter: blur(7px);
  border: 1px solid rgba(255, 255, 255, 0.15); */
  border-radius: 12px;
  padding: 0.75rem;
  min-width: 160px;
  z-index: 5;
}

#champion-stats-display .stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

#champion-stats-display .stat-item i {
  font-size: 1rem;
}

#champion-stats-display .stat-item .stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
}

#champion-stats-display .stat-item .stat-value {
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
}

#champion-stats-display .stat-ban {
  color: #ef4444;
}

#champion-stats-display .stat-pick {
  color: #10b981;
}

#champion-stats-display .stat-games {
  color: #3b82f6;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.5rem;
  margin-top: 0.25rem;
}

/* Animation for stats display */
#champion-stats-display.d-flex {
  animation: slideInFromRight 0.4s ease-out;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateY(-50%) translateX(20%);
  }
}

#champion-stats-display.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

/* ==================== Toast Notification System ==================== */

.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 400px;
}

.toast {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  pointer-events: auto;
  min-width: 300px;
  max-width: 400px;
  position: relative;
  overflow: hidden;
  border-left: 4px solid;
}

/* Toast Types */
.toast-success {
  border-left-color: #10b981;
}

.toast-success .toast-icon {
  color: #10b981;
}

.toast-error {
  border-left-color: #ef4444;
}

.toast-error .toast-icon {
  color: #ef4444;
}

.toast-warning {
  border-left-color: #f59e0b;
}

.toast-warning .toast-icon {
  color: #f59e0b;
}

.toast-info {
  border-left-color: #3b82f6;
}

.toast-info .toast-icon {
  color: #3b82f6;
}

.toast-confirm {
  border-left-color: #8b5cf6;
}

.toast-confirm .toast-icon {
  color: #8b5cf6;
}

/* Toast Icon */
.toast-icon {
  font-size: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px currentColor);
}

/* Toast Message */
.toast-message {
  flex: 1;
  color: white;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  word-wrap: break-word;
}

/* Toast Close Button */
.toast-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.toast-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: scale(1.1);
}

.toast-close i {
  font-size: 18px;
}

/* Toast Actions (for confirm) */
.toast-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
}

.toast-btn {
  flex: 1;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toast-btn-confirm {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
}

.toast-btn-confirm:hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.toast-btn-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.toast-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* Toast Animations */
.toast-enter {
  opacity: 0;
  transform: translateX(400px) scale(0.8);
}

.toast-show {
  opacity: 1;
  transform: translateX(0) scale(1);
  animation: toast-slide-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-exit {
  opacity: 0;
  transform: translateX(0) scale(0.9);
  transition: all 0.3s ease;
}

@keyframes toast-slide-in {
  0% {
    opacity: 0;
    transform: translateX(400px) scale(0.8);
  }

  60% {
    transform: translateX(-10px) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Progress bar for toast */
.toast::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, currentColor, transparent);
  width: 100%;
  opacity: 0.5;
  animation: toast-progress 3s linear;
}

@keyframes toast-progress {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

/* Remove progress bar for confirm toasts */
.toast-confirm::after {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .toast-container {
    top: 10px;
    left: 10px;
    right: 10px;
    transform: none;
    max-width: none;
  }

  .toast {
    min-width: auto;
    max-width: none;
  }
}

/* Backdrop animations */
@keyframes backdrop-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes backdrop-fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

#main-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: #0a0e27;
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3)), url('../assets/background.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* #main-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: #0a0e27;
  background-image:
    radial-gradient(at 0% 0%, hsl(0, 0%, 0%) 0, transparent 70%),
    radial-gradient(at 30% 0%, hsl(225.4, 64.4%, 37.5%) 0, transparent 60%),
    radial-gradient(at 100% 0%, hsl(339.2, 91.1%, 31%) 0, transparent 60%)
} */

/* #main-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(at 40% 20%, hsla(28, 100%, 74%, 0.1) 0px, transparent 50%),
    radial-gradient(at 80% 0%, hsla(189, 100%, 56%, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 50%, hsla(355, 100%, 93%, 0.1) 0px, transparent 50%),
    radial-gradient(at 80% 50%, hsla(340, 100%, 76%, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 100%, hsla(22, 100%, 77%, 0.1) 0px, transparent 50%),
    radial-gradient(at 80% 100%, hsla(242, 100%, 70%, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 0%, hsla(343, 100%, 76%, 0.1) 0px, transparent 50%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  opacity: 0.8;
} */

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

#champ-grid-container {
  /* background: #121a2e; */
  background: rgb(0 0 0 / 30%);
  border: 1px solid #4f3b3b;
  padding: 10px;
  margin-top: 5px;
  min-height: 390px;
  max-height: 415px;
  overflow-y: auto;
  border-radius: 12px;
}

/* Host has larger champion grid */
body.host #champ-grid-container {
  margin-top: 15px;
  max-height: 510px;
}

.champ-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 2px;
}

.champ-item {
  text-align: center;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.champ-item img {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  transition: transform 0.2s;
  cursor: pointer;
  /* user-select: none; */
}

.gap-2 {
  justify-content: center;
  align-content: center;
  gap: .5rem !important;
}

.champ-item:hover {
  display: inline-table;
  border-color: #fff;
}

.champ-item:hover img {
  transform: scale(1);
}

.champ-item.pre-selected {
  display: inline-table;
  border-color: #ffd700;
  /* Màu vàng gold cho viền bao cả icon + tên */
  background: rgba(255, 215, 0, 0.1);
  /* Nền vàng nhạt */
}

.champ-item.pre-selected img {
  transform: scale(1);
}

.champ-item.pre-selected .grid-champ-name {
  /* color: #ffd700; */
  /* Màu vàng gold cho tên */
  font-weight: bold;
}

.champ-item.disabled {
  cursor: not-allowed;
}

.champ-item.disabled img {
  filter: grayscale(100%) brightness(0.5);
}

.champ-item.disabled:hover {
  border-color: transparent;
}

.champ-item.disabled:hover img {
  transform: none;
}

span.text-center {
  display: block;
  width: 100%;
  padding: 8px;
  background: #e3e3e3;
  color: white;
  border-radius: 50px;
  font-weight: 600;
}

div#vs-bans {
  align-content: center;
  align-items: center;
  min-width: 85px;
}

div#blue-bans {
  flex-direction: row-reverse;
}

.grid-champ-name {
  font-size: 11px;
  color: white;
  margin-top: 4px;
  white-space: nowrap;
}

#champ-search {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
  /* margin-bottom: 10px; */
  /* Thêm padding-right để văn bản không bị che bởi nút clear */
  padding-right: 40px;
}

#clear-search-btn i:hover {
  color: var(--bs-gray-600) !important;
}

#champ-search::placeholder {
  color: #a9a9a9;
}

#splash-art-container {
  display: none;
  /* Ẩn ban đầu */
  margin: 20px 0;
  position: relative;
  width: 280px;
  /* Kích thước của container */
  height: 250px;
  margin-left: auto;
  margin-right: auto;
}

.center-block {
  max-height: 260px;
  min-height: 260px;
  background: rgb(71 61 61 / 10%);
  /* Giảm độ mờ của nền */
  border-radius: 10px;
  /* padding: 10px 15px; */
  display: flex;
  /* Bật Flexbox */
  flex-direction: column;
  /* Xếp các mục theo chiều dọc */
  justify-content: center;
  /* Căn giữa các mục theo chiều dọc */
  align-items: center;
}

#splash-art-img {
  max-height: 250px;
  border-radius: 8px;
  /* Đưa ảnh lên trên SVG */
  z-index: 2;
  /* Căn giữa ảnh trong container */
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.logo-container {
  position: absolute;
  background: transparent;
  top: -12%;
  left: 40%;
  justify-content: center;
  align-content: center;
  align-items: center;
  justify-items: center;
}

div#splash-art-name {
  text-transform: uppercase;
  background: rgb(0 0 0 / 70%);
  /* padding: 2px 8px; */
  /* border-radius: 15px; */
  z-index: 3;
  font-size: 16px !important;
}

#splash-art-name {
  font-size: 16px;
  text-align: center;
  width: 100%;
  margin-top: auto;
  /* Quan trọng: Đẩy phần tử này xuống dưới cùng */
  /* padding-bottom: 10px; Thêm một chút khoảng cách ở dưới */
}

/* Countdown Bar Styles */
#countdown-bar-container {
  width: 100%;
  height: 10px;
  background-color: #e3e2e2;
  border-radius: 5px;
  margin-top: 5px;
  overflow: hidden;
}

#countdown-bar {
  height: 100%;
  width: 100%;
  background-color: #4caf50;
  transition: transform 1s linear;
  transform-origin: center;
}

#lock-in-button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  background-color: #198754;
  /* Màu xanh của Bootstrap (btn-success) */
  border-color: #198754;
  border-radius: 30px;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

#countdown-text {
  /* position: absolute;
  top: 50%; */
  /* left: 50%; */
  /* transform: translate(-50%, -50%); */
  z-index: 4;
  font-size: 68px;
  font-weight: bold;
  color: white;
  /* -webkit-text-stroke: 1.5px black; */
  text-shadow: 3px 3px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

#lock-in-button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
}

#blue-team-container,
#red-team-container {
  text-align: center;
}

/* Countdown Warning Animation */
@keyframes flash-warning {
  50% {
    color: #dc3545;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  }
}

.time-warning {
  animation: flash-warning 1s infinite;
}

/* Old slot animations removed - see Enhanced Ban/Pick Slots section */


.bg-light {
  align-content: center;
  align-items: center;
  height: 100vh;
  --bs-bg-opacity: 1;
  background-color: rgba(var(--bs-light-rgb), var(--bs-bg-opacity)) !important;
}

.picks-container {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 1rem;
}

/* picks-column styles moved to Enhanced Ban/Pick Slots section */

#player2-container .picks-container {
  flex-direction: row-reverse;
}

/* ==================== Player Info Cards ==================== */

.player-info-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  /* Changed from hidden to show external indicator */
}

.player-info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.player-info-card.blue-team {
  border-color: rgba(59, 130, 246, 1);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(30, 41, 59, 0.9) 100%);
}

.player-info-card.blue-team::before {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.player-info-card.blue-team:hover {
  border-color: rgba(59, 130, 246, 1);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.6);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35) 0%, rgba(30, 41, 59, 0.9) 100%);
}

.player-info-card.red-team {
  border-color: rgba(239, 68, 68, 1);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(30, 41, 59, 0.9) 100%);
}

.player-info-card.red-team::before {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.player-info-card.red-team:hover {
  border-color: rgba(239, 68, 68, 1);
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.6);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.35) 0%, rgba(30, 41, 59, 0.9) 100%);
}

.player-info-card:hover::before {
  opacity: 1;
}

/* Active Turn Indicator - External Vertical Blinking Bar (No Text) */
/* Player 1 (Blue Team) - Right Side */
#player1-container .player-info-card.active-turn::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  width: 6px;
  height: 80%;
  border-radius: 3px;
  background: linear-gradient(180deg, #10b981, #34d399, #10b981);
  animation: vertical-bar-blink 1s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
}

/* Player 2 (Red Team) - Left Side */
#player2-container .player-info-card.active-turn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -20px;
  transform: translateY(-50%);
  width: 6px;
  height: 80%;
  border-radius: 3px;
  background: linear-gradient(180deg, #10b981, #34d399, #10b981);
  animation: vertical-bar-blink 1s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
}

@keyframes vertical-bar-blink {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
  }

  50% {
    opacity: 0.4;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
  }
}

.player-avatar-container {
  position: relative;
  flex-shrink: 0;
}

.player-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.player-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

.blue-avatar {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.red-avatar {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.player-info-card:hover .player-avatar {
  transform: scale(1.1) rotate(5deg);
}

.player-status-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  animation: pulse-status 2s ease-in-out infinite;
}

.player-status-indicator.online {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}

.player-status-indicator.offline {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  animation: none;
}

@keyframes pulse-status {

  0%,
  100% {
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
  }

  50% {
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.8);
  }
}

.player-details {
  flex: 1;
  min-width: 0;
}

.player-name {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.player-stats {
  display: flex;
  gap: 8px;
  align-items: center;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  background: rgb(0 0 0 / 10%) !important;
  padding: 2px 8px;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.stat-item i {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* Blinking animation for active turn - DISABLED */
/* .stat-item.active-turn {
  animation: stat-item-blink 1.5s cubic-bezier(0.18, 0.89, 0.32, 1.28) infinite;
} */

/* @keyframes stat-item-blink {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.05);
  }
} */

/* ==================== Player Countdown Progress Bar ==================== */

.player-countdown-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  border-radius: 0 0 16px 16px;
  display: none;
  /* Hidden */
}

.player-countdown-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #10b981, #34d399, #10b981);
  transition: width 0.1s linear, background 0.3s ease;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Green gradient for both teams */
.player-info-card.blue-team .player-countdown-bar,
.player-info-card.red-team .player-countdown-bar {
  background: linear-gradient(90deg, #10b981, #34d399, #10b981);
}

/* Warning state when time is low */
.player-countdown-bar.warning {
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #f59e0b) !important;
  animation: progress-pulse 1s ease-in-out infinite;
}

@keyframes progress-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* Hide progress bar when not active */
.player-countdown-progress.hidden {
  opacity: 0;
}

/* Old stat-pulse animation removed */


/* ==================== Enhanced Ban/Pick Slots ==================== */

.slot {
  width: 130px;
  height: 110px;
  border: 2px solid #444;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transform-style: preserve-3d;
  user-select: none;
  background: rgb(20, 30, 48, 90%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

/* Blue Team Border */
.slot.blue {
  border-color: rgba(59, 130, 246, 0.9);
}

/* Red Team Border */
.slot.red {
  border-color: rgba(239, 68, 68, 0.9);
}

/* Enhanced Slot Reveal Animation with 3D Flip */
@keyframes slot-reveal-3d {
  0% {
    transform: perspective(1000px) rotateY(90deg) scale(0.8);
    opacity: 0;
    box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0);
  }

  50% {
    transform: perspective(1000px) rotateY(0deg) scale(1.1);
    box-shadow: 0 0 25px 8px rgba(255, 215, 0, 0.8);
  }

  100% {
    transform: perspective(1000px) rotateY(0deg) scale(1);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
}

.slot-reveal-animation {
  animation: slot-reveal-3d 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Glow effect for filled slots */
.slot:not(:empty) {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.slot.blue:not(:empty) {
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.5);
  border-color: rgba(59, 130, 246, 1);
}

.slot.red:not(:empty) {
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.5);
  border-color: rgba(239, 68, 68, 1);
}

/* Enhanced Highlight Animation */
.highlight {
  border: 3px solid transparent;
  animation: blink-border-enhanced 1.5s ease-in-out infinite;
  position: relative;
}

@keyframes blink-border-enhanced {

  0%,
  100% {
    border-color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6), 0 0 40px rgba(16, 185, 129, 0.3);
  }

  50% {
    border-color: #34d399;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.9), 0 0 60px rgba(16, 185, 129, 0.5);
  }
}

.highlight::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 12px;
  background: linear-gradient(45deg, #10b981, #34d399, #10b981);
  background-size: 200% 200%;
  animation: gradient-rotate 3s linear infinite;
  z-index: -1;
  opacity: 0.3;
}

@keyframes gradient-rotate {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Phase Labels */
.picks-column {
  position: relative;
  padding-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

.picks-column.phase-1::before {
  content: 'PHASE 1';
  position: absolute;
  top: -5px;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  /* background: rgba(255, 255, 255, 0.1); */
  padding: 3px 5px;
  border-radius: 8px;
  text-align: center;
  /* border: 1px solid rgba(255, 255, 255, 0.2); */
  opacity: 0.8;
}

.picks-column.phase-2::before {
  content: 'PHASE 2';
  position: absolute;
  top: -5px;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  /* background: rgba(255, 255, 255, 0.1); */
  padding: 3px 5px;
  border-radius: 8px;
  text-align: center;
  /* border: 1px solid rgba(255, 255, 255, 0.2); */
  opacity: 0.8;
}

/* Slot Turn Numbers - Real DOM Element (for ban slots) */
.slot-turn-number {
  position: absolute;
  top: 4px;
  left: 3px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  z-index: 3;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* Slot Turn Numbers - Top Left Corner (for pick slots using data-turn-number attribute) */
.slot[data-turn-number]::before {
  content: attr(data-turn-number);
  position: absolute;
  top: 4px;
  left: 3px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  z-index: 3;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Different styling for picks vs bans */
.picks-column>.slot[data-turn-number]::before {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.4);
}

/* Ban/Pick Labels */
.ban,
.pick {
  font-size: 12px;
  width: 100%;
  text-align: center;
  padding: 2px;
  border-radius: 4px 4px 0 0;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.ban {
  background: linear-gradient(135deg, #555, #333);
  color: #fff;
}

.pick {
  background: linear-gradient(135deg, #f0f0f0, #ddd);
  color: #000;
}

.skipped>.pick {
  background: #141d2f;
  color: transparent;
  font-size: 0px;
  /* text-box: none; */
}

/* Banned Slot Overlay */
.slot.banned {
  position: relative;
}


/* .slot.blue::before,
.slot.red::before {
  font-family: "bootstrap-icons";
  content: '\F7DB';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: rgb(255 255 255);
  opacity: 0.1;
} */


#blue-bans>.slot::before,
#red-bans>.slot::before {
  font-family: "bootstrap-icons";
  content: '\F6B6';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  color: rgb(255 255 255);
  opacity: 0.1;
  /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); */
  /* pointer-events: none; */
  /* z-index: -1; */
}

.slot.banned::after {
  font-family: "bootstrap-icons";
  content: '\F6B6';
  /* bi-no-entry-fill */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  color: rgb(220, 53, 69);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: -1;
  /* animation: banned-pulse 2s ease-in-out infinite; */
}

@keyframes banned-pulse {

  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

div#player-status {
  text-transform: uppercase;
  font-size: 10px;
  user-select: none;
}

#host-controls-toggle.btn.rounded-circle {
  width: 40px;
  height: 40px;
  padding: 0;
}

/* Pre-Draft Selection Styles */
#pre-draft-selection-view {
  /* background-color: rgba(0, 0, 0, 0.5); */
  /* padding: 20px; */
  border-radius: 15px;
  margin-bottom: 20px;
}

/* Pre-Draft Header */
.pre-draft-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.pre-draft-header i {
  font-size: 1.5rem;
}

/* Pre-Draft Card */
.pre-draft-card {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pre-draft-section-header {
  margin-bottom: 0.75rem;
}

.pre-draft-section-header i {
  font-size: 1.1rem;
}

.pre-draft-selections-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  min-height: 90px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 12px;
}

.pre-draft-selections-grid .champ-item img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.pre-draft-selections-grid .champ-item:hover img {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Pre-Draft Input */
.pre-draft-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: white;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.pre-draft-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
  color: white;
  outline: none;
}

.pre-draft-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Pre-Draft Button */
.pre-draft-btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: 50px;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.pre-draft-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
  color: white;
}

.pre-draft-btn-primary:disabled {
  background: #334155;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}

.pre-draft-btn-primary i {
  font-size: 1.1rem;
  vertical-align: middle;
}

/* Custom Scrollbar for Pre-Draft Grid */
.pre-draft-champ-grid-container {
  max-height: 450px;
  overflow-y: auto;
  padding: 5px;
  margin-top: 10px;
}

div#selected-champ-element-container {
  transform: translate(-90%, -50%);
}

div#selected-champ-rank-container {
  transform: translate(-90%, -50%);
}


div#pre-draft-my-champ-grid {
  gap: 8px;
  padding: 5px 10px;
}

.champ-item.pre-draft-selected {
  display: inline-table;
  border: 1px solid #f10000;
  /* Bootstrap primary blue - bao cả icon + tên */
  box-shadow: 0 0 10px #0D6EFD;
  background: rgba(13, 110, 253, 0.1);
  /* Nền xanh nhạt */
}

.champ-item.pre-draft-selected img {
  transform: scale(1.05);
}

.champ-item.pre-draft-selected .grid-champ-name {
  color: #ffffff;
  /* Màu xanh blue cho tên */
  font-weight: bold;
}

/* Pre-Draft Display on Main Screen */
.pre-draft-display-container {
  background: #121a2e;
  border: 1px solid #4f3b3b;
  border-radius: 12px;
  padding: 2px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pre-draft-display-title {
  color: #e0e0e0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  margin: 2px;
  text-transform: uppercase;
  /* letter-spacing: 0.5px; */
}

.pre-draft-display-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  gap: 2px;
}

.pre-draft-display-grid .champ-item img {
  width: 45px;
  height: 45px;
}

/* Style for the name under the unowned champ icons */
.pre-draft-display-champ-name {
  font-size: 12px;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  text-align: center;
}

/* Old slot numbering removed - see Enhanced Ban/Pick Slots section */


/* Glassmorphism Styles */
#draft-view>.glass-panel {
  /* background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); */
  color: white;
}

/* ==================== Modern Login Panel Styles ==================== */

/* Login Panel Container */
.login-panel {
  background: linear-gradient(135deg, rgb(41 58 85 / 95%) 0%, rgba(15, 23, 42, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 24px;
  padding: 1.2rem;
  box-shadow: 0 20px 60px rgb(26 14 14 / 50%);
  color: white;
  max-width: 480px;
  margin: 0 auto;
}

/* Login Header */
.login-header {
  text-align: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.login-logo-container {
  /* margin-bottom: 0.5rem; */
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.login-logo {
  width: 100px;
  height: 100px;
  /* filter: drop-shadow(0 0 20px rgba(96, 165, 250, 0.5)); */
  transition: transform 0.3s ease;
}

.login-logo:hover {
  transform: scale(1.1);
}

.login-title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #60a5fa 50%, #a0e9ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 30px rgba(96, 165, 250, 0.3);
}

.login-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.5px;
}

/* Login Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.login-form-group {
  /* display: flex; */
  flex-direction: column;
  gap: 0.625rem;
}

.login-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 5px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-label i {
  font-size: 1rem;
  color: #60a5fa;
}

/* Login Inputs */
.login-input,
.login-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 0.875rem 1.125rem;
  font-size: 1rem;
  color: white;
  transition: all 0.3s ease;
  outline: none;
}

.login-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.login-input:focus,
.login-select:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.1);
}

.login-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2360a5fa' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.login-select option {
  background: #1e293b;
  color: white;
  padding: 0.5rem;
}

/* Login Button */
.login-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: 50px;
  padding: 0.5rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.login-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

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

.login-btn i {
  font-size: 1.125rem;
}


.confirm-pre-draft {
  padding-top: 1rem !important;
  text-align: center !important;
  justify-content: center;
  align-content: center;
  height: 50px;
}

button#confirm-pre-draft-button {
  width: 450px !important;
}

/* Responsive */
@media (max-width: 576px) {
  .login-panel {
    padding: 2rem 1.5rem;
  }

  .login-title {
    font-size: 1.75rem;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Glass Offcanvas */
.glass-offcanvas {
  background: rgb(63 77 91 / 85%) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

.glass-offcanvas .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-offcanvas .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.glass-toggle-btn {
  background: linear-gradient(45deg, #ff357a, #fff172);
  border: none;
  box-shadow: 0 0 15px rgba(255, 53, 122, 0.5);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.glass-toggle-btn:hover {
  transform: rotate(90deg) scale(1.1);
}

/* Loading Screen Styles */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

#loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  min-width: 300px;
}

.loading-spinner {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  position: relative;
  animation: pulse 2s ease-in-out infinite;
}

.loading-spinner::before,
.loading-spinner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

/* Outer ring */
.loading-spinner::before {
  width: 80px;
  height: 80px;
  border: 4px solid transparent;
  border-top-color: #3b82f6;
  border-right-color: #8b5cf6;
  animation: spin 1.2s linear infinite;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* Inner ring */
.loading-spinner::after {
  width: 60px;
  height: 60px;
  top: 10px;
  left: 10px;
  border: 4px solid transparent;
  border-bottom-color: #ec4899;
  border-left-color: #f59e0b;
  animation: spin 0.8s linear infinite reverse;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.5);
}

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

  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* Ban/Pick Transition Loading (minimal - icon only) */
#ban-pick-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

#ban-pick-loading.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Remove panel styling for ban/pick loading - just spinner on background */
#ban-pick-loading .loading-content {
  background: transparent;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Chat Widget Styles */
/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 350px;
  max-width: 90%;
  height: 400px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  z-index: 2000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: all 0.3s ease;
}

.chat-header {
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  cursor: pointer;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.chat-body::-webkit-scrollbar {
  width: 6px;
}

.chat-body::-webkit-scrollbar-track {
  background: transparent;
}

.chat-body::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.chat-message {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
  word-wrap: break-word;
}

.chat-message.self {
  align-self: flex-end;
  background: linear-gradient(45deg, #7e9cc7, #277c8d);
  color: white;
  border-bottom-right-radius: 2px;
}

.chat-message.other {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-bottom-left-radius: 2px;
}

/* Base Host Style */
.chat-message.host {
  border: 1px solid #ffd700;
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

/* Host + Self: Keep blue background, add gold border */
.chat-message.host.self {
  background: linear-gradient(45deg, #7e9cc7, #277c8d);
  border: 2px solid #ffd700;
}

/* Host + Other: Yellow tint */
.chat-message.host.other {
  background: rgba(255, 215, 0, 0.1);
}

.chat-message.host .chat-message-sender {
  color: #ffd700;
  font-weight: bold;
}

.chat-message-sender {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-timestamp {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 8px;
}

.chat-footer {
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 20px;
  padding: 6px 12px;
  outline: none;
  font-size: 0.9rem;
}

.chat-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.chat-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.chat-send-btn {
  background: transparent;
  border: none;
  color: #0d6efd;
  font-size: 1.2rem;
  padding: 0 5px;
  transition: transform 0.2s;
}

.chat-send-btn:hover {
  transform: scale(1.1);
  color: #0dcaf0;
}

.chat-toggle-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(45deg, #b55122, #59696d);
  border: none;
  color: white;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
  z-index: 2000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.chat-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.6);
}

.chat-notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #dc3545;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #0a0e27;
}

/* Responsive adjustment */
@media (max-width: 576px) {
  .chat-widget {
    width: 90%;
    right: 5%;
    bottom: 80px;
  }
}

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

  100% {
    transform: rotate(360deg);
  }
}

.loading-title {
  font-size: 2rem;
  font-weight: 600;
  background: linear-gradient(to right, #fff, #a0e9ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  animation: pulse 2s ease-in-out infinite;
}

.loading-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin-bottom: 20px;
}

.loading-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.loading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #638165, #32cf0b, #638165);
  background-size: 200% 100%;
  border-radius: 10px;
  width: 0%;
  transition: width 0.3s ease;
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

.loading-percentage {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: bold;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* Spine WebGL Canvas Container */
#spine-player-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 700px;
  background: transparent;
  z-index: -1;
  pointer-events: none;
  /* Let clicks pass through to stuff behind if needed */
  transition: opacity 0.3s ease-in-out;
}

/* Spine WebGL Canvas */
#spine-player-container canvas {
  width: 100% !important;
  height: 100% !important;
  background: transparent;
}

#splash-art-img {
  transition: opacity 0.3s ease-in-out;
}

#selected-champ-element-container {
  transition: opacity 0.3s ease-in-out;
}

div#selected-champ-name {
  justify-content: center;
  color: white;
  z-index: 3;
  transform: translate(-60%, 50%) !important;
  padding: 2px 5px !important;
  border-radius: 15px !important;
}

/* ==================== Modern Settings Panel Styles ==================== */

/* Settings Offcanvas */
.settings-offcanvas {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(148, 163, 184, 0.1);
  color: white;
  width: 420px !important;
}

/* Settings Header */
.settings-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  padding: 1.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.02);
}

.settings-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #a0e9ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}

.settings-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.settings-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.settings-close:hover {
  opacity: 1;
}

/* Tab Navigation */
.settings-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  overflow-x: auto;
  scrollbar-width: none;
}

.settings-tabs::-webkit-scrollbar {
  display: none;
}

.settings-tab {
  flex: 1;
  min-width: 80px;
  padding: 0.875rem 0.5rem;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.settings-tab i {
  font-size: 1.125rem;
  transition: transform 0.3s ease;
}

.settings-tab:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
}

.settings-tab:hover i {
  transform: scale(1.1);
}

.settings-tab.active {
  color: #60a5fa;
}

.settings-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%);
  border-radius: 3px 3px 0 0;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* Settings Body */
.settings-body {
  padding: 1.25rem;
  overflow-y: auto;
  max-height: calc(100vh - 180px);
}

.settings-body::-webkit-scrollbar {
  width: 6px;
}

.settings-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.settings-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.settings-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Tab Content */
.settings-tab-content {
  display: none;
  animation: fadeInContent 0.3s ease;
}

.settings-tab-content.active {
  display: block;
}

@keyframes fadeInContent {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Settings Section */
.settings-section {
  margin-bottom: 1.5rem;
}

.settings-section:last-child {
  margin-bottom: 0;
}

.settings-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.settings-section-title i {
  color: #60a5fa;
  font-size: 1rem;
}

/* Settings Item */
.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.settings-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.settings-item:last-child {
  margin-bottom: 0;
}

.settings-item-info {
  flex: 1;
  margin-right: 1rem;
}

.settings-item-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.settings-item-desc {
  font-size: 0.75rem;
  color: #60a5fa;
  margin-top: 0.25rem;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  border-radius: 26px;
}

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

.toggle-switch input:checked+.toggle-slider {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

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

.toggle-switch:hover .toggle-slider {
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.4);
}

/* Settings Select */
.settings-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: white;
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.settings-select:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
  outline: none;
  color: white;
}

.settings-select option {
  background: #1e293b;
  color: white;
}

/* Settings Input */
.settings-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: white;
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.settings-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
  outline: none;
  color: white;
}

.settings-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Radio Group */
.settings-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.settings-radio {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.settings-radio:hover {
  background: rgba(255, 255, 255, 0.06);
}

.settings-radio input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(148, 163, 184, 0.4);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.settings-radio input[type="radio"]:checked {
  border-color: #60a5fa;
  background: #60a5fa;
}

.settings-radio input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.settings-radio span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.settings-badge {
  margin-left: auto;
  padding: 0.25rem 0.5rem;
  background: rgba(96, 165, 250, 0.2);
  color: #60a5fa;
  font-size: 0.75rem;
  border-radius: 4px;
  font-weight: 500;
}

/* Empty State */
.settings-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

.settings-empty i {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 1rem;
}

.settings-empty p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin: 0;
}

/* Info Card */
.settings-info-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  padding: 1.25rem;
}

.settings-info-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.settings-info-header i {
  font-size: 1.5rem;
  color: #60a5fa;
}

.settings-info-header h6 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.settings-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.05);
}

.settings-info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-info-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.settings-info-value {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.settings-info-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ==================== Tools Tab Specific Styles ==================== */

/* Tools Card */
.tools-card {
  background: rgba(51, 65, 85, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 1rem;
}

.tools-card:last-child {
  margin-bottom: 0;
}

.tools-card-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.875rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9375rem;
  font-weight: 600;
}

.tools-card-header i {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Player Selection Group */
.player-selection-group {
  display: flex;
  gap: 0.3rem;
  margin: 5px 0px;
  flex-wrap: wrap;
  justify-content: center;
}

.player-selection-group .btn {
  flex: 1;
  min-width: 140px;
  padding: 0.75rem 1.25rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.player-selection-group .btn i {
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.1);
  width: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.player-selection-group .btn:hover {
  background: rgba(59, 130, 246, 0.15);
  /* border-color: #3b82f6; */
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.player-selection-group .btn:hover i {
  /* background: #3b82f6; */
  color: white;
}

.player-selection-group .btn.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
  color: #60a5fa;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

/* Tools Buttons */
.tools-btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  border-radius: 50px;
  /* Bo tròn hoàn toàn */
  color: white;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.tools-btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  color: white;
}

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

.tools-btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.tools-btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  color: white;
}

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

.tools-btn-apply {
  background: #3b82f6;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tools-btn-apply:hover {
  background: #2563eb;
  color: white;
}

/* Tools Input Group */
.tools-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.tools-number-input {
  width: 215px;
  flex: 0 0 80px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  padding: 0.625rem 0.5rem;
  transition: all 0.2s ease;
}

.tools-number-input:focus {
  outline: none;
  border-color: #60a5fa;
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

/* Hide default number input arrows */
.tools-number-input::-webkit-inner-spin-button,
.tools-number-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.tools-number-input {
  -moz-appearance: textfield;
  appearance: textfield;
}

.tools-input-controls {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tools-input-btn {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 4px;
  color: #60a5fa;
  width: 28px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.tools-input-btn i {
  font-size: 0.75rem;
}

.tools-input-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
}

.tools-input-btn:active {
  background: rgba(59, 130, 246, 0.35);
}

/* Tools Empty State */
.tools-empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Tools Card Toggle */
.tools-card-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tools-card-toggle {
  transition: transform 0.3s ease;
}

.tools-card.collapsed .tools-card-toggle {
  transform: rotate(-180deg);
}

.tools-card-body {
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  max-height: 500px;
  /* Arbitrary large height */
  opacity: 1;
  overflow: hidden;
}

.tools-card.collapsed .tools-card-body {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
}

/* Team Info Styles */
.team-info {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-info.team-blue {
  background: rgba(49, 123, 241, 0.2);
  border-color: rgba(49, 123, 241, 0.3);
}

.team-info.team-red {
  background: rgba(218, 59, 59, 0.2);
  border-color: rgba(218, 59, 59, 0.3);
}

.team-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.team-name {
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Drag & Drop Team Assignment */
.team-assignment-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.team-drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 0.75rem;
  min-height: 80px;
  transition: all 0.3s ease;
}

.team-drop-zone.team-blue-zone {
  background: rgba(49, 123, 241, 0.4);
  border-color: rgb(23 108 245 / 80%);
}

.team-drop-zone.team-red-zone {
  background: rgb(203 51 51 / 40%);
  border-color: rgba(218, 59, 59, 0.8);
}

.team-drop-zone.drag-over {
  border-style: solid;
  border-width: 3px;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.02);
}

.team-drop-zone.team-blue-zone.drag-over {
  border-color: rgba(49, 123, 241, 0.8);
  background: rgba(49, 123, 241, 0.2);
  box-shadow: 0 0 20px rgba(49, 123, 241, 0.3);
}

.team-drop-zone.team-red-zone.drag-over {
  border-color: rgba(218, 59, 59, 0.8);
  background: rgba(218, 59, 59, 0.2);
  box-shadow: 0 0 20px rgba(218, 59, 59, 0.3);
}

.team-zone-header {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

.team-zone-content {
  min-height: 40px;
}

.team-zone-placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  font-style: italic;
  padding: 0.5rem;
}

.player-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  cursor: grab;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.player-card:active {
  cursor: grabbing;
}

.player-card.dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

.player-card:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.player-card-icon {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.player-card-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  flex: 1;
}

/* Room ID Display */
.room-id-card {
  border: 1px solid rgba(59, 130, 246, 0.3);
}

span.sub-title {
  font-size: 14px;
  margin: 5px;
}

.sub-line {
  display: block;
  border-bottom: 1px solid #3e3d3d;
  width: 100%;
  margin-bottom: 10px;
}

.room-id-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 10px;
}

.room-id-value {
  flex: 1;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
}

.room-id-actions {
  display: flex;
  gap: 0.5rem;
}

.room-id-btn {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 8px;
  color: #ffffff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.tools-card-toggle>i {
  font-size: 12px;
}

.room-id-btn i {
  font-size: 1.125rem;
}

.room-id-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
  color: #93c5fd;
  transform: translateY(-1px);
}

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


/* Lucky Wheel */
.wheel-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 1rem 0;
}

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(#f97316 0% 50%, #a855f7 50% 100%);
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
  /* Ease out custom */
  transform: rotate(0deg);
}

.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  border: 4px solid rgba(255, 255, 255, 0.5);
}

.wheel-pointer {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 40px;
  background: white;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  z-index: 5;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

.wheel-segment {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.segment-text {
  position: absolute;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  top: 25%;
  left: 50%;
  transform-origin: bottom center;
}

.segment-1 .segment-text {
  transform: translateX(-50%) rotate(-45deg);
  /* Center of blue (0-180 is blue? No, 0-50% is blue 0-180deg) */
  /* Blue is 0-180deg. Center is 90deg? 
     conic-gradient starts at 12 o'clock usually (0deg).
     If 0-50% (0-180deg) is Blue, center is 90deg (Right).
     If 50-100% (180-360deg) is Red, center is 270deg (Left).
     Wait, standard CSS gradients: 0deg is Top.
     0-50% (0-180deg) is Right Half? No.
     Let's assume default: 0deg is Top.
     Blue: 0 to 180 (Right half). Center: 90 deg.
     Red: 180 to 360 (Left half). Center: 270 deg.
  */
  transform: translateX(-50%) rotate(0deg) translate(0, -60px) rotate(90deg);
  /* Trying to position manually */
  /* Actually easiest is to just use standard positioning */
  top: 50%;
  left: 75%;
  transform: translate(-50%, -50%);
}

.segment-2 .segment-text {
  /* Red side - left */
  top: 50%;
  left: 25%;
  transform: translate(-50%, -50%);
}

/* Utility Timer */
.utility-timer-container {
  text-align: center;
  width: 100%;
}

.utility-timer-display {
  font-family: 'Courier New', monospace;
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  background: rgba(15, 23, 42, 0.5);
  border-radius: 12px;
  padding: 0.5rem;
  line-height: 1;
}

.utility-timer-display.active {
  color: #4ade80;
  /* Green when running */
  text-shadow: 0 0 15px rgba(74, 222, 128, 0.5);
}

.utility-timer-display.paused {
  color: #fbbf24;
  /* Yellow when paused */
  text-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
}

.utility-timer-display.finished {
  color: #ef4444;
  /* Red when finished */
  animation: blink 1s infinite;
}

@keyframes blink {
  50% {
    opacity: 0.5;
  }
}

button#reset-filters-btn {
  height: 38px;
  width: 33px;
}

.filter-groups.d-flex.gap-2 {
  height: 38px;
}

.timer-input {
  width: 80px;
  text-align: center;
}


/* Advanced Search & Filters */
.advanced-search-container input#champ-search {
  background: #2b2b2b !important;
  border: 1px solid #444 !important;
  color: white !important;
  font-size: 0.9rem;
}

.advanced-search-container {
  margin-top: 5px;
  margin-bottom: 0px;
}

.advanced-search-container input#champ-search:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
}

.filter-btn {
  background-color: #2b2b2b !important;
  border: 1px solid #444 !important;
  color: #ccc !important;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
}

.filter-btn:hover {
  background-color: #3f3f3f !important;
  color: white !important;
}

.filter-btn.active {
  background-color: #0ea5e9 !important;
  /* Blue color from image */
  border-color: #0ea5e9 !important;
  color: white !important;
}

.filter-btn.active i {
  color: white !important;
  /* Ensure icons turn white on active */
}

#reset-filters-btn:hover {
  background-color: #444 !important;
  color: white;
}

.element-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Scroll 1: Gradient Modern */
.scroll-1::-webkit-scrollbar {
  width: 5px;
}

.scroll-1::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.scroll-1::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00d4ff 0%, #0099ff 100%);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.scroll-1::-webkit-scrollbar-thumb:hover {
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.8);
}


/* Circular Countdown Styles */
#countdown-circle-container {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.countdown-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  display: none;
  /* Start from top */
}

.countdown-bg-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 8;
}

.countdown-progress-ring {
  fill: none;
  stroke: #4caf50;
  /* Green for > 10s */
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  /* Full circle initially */
  transition: stroke-dasharray 0.1s linear, stroke 0.3s ease;
}

.countdown-progress-ring.ring-warning {
  stroke: #ff3b3b;
  /* Red for <= 10s */
}

#countdown-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-family: sans-serif;
  /* Or your app's font */
}

.paused-text {
  font-size: 18px !important;
}

/* Hide old countdown elements if they still exist or are toggled */
#countdown-text {
  display: none !important;
}

#countdown-bar-container {
  display: none !important;
}