/* Playoff Bracket Tile (Old Bracket) */
.bracket-tile {
  width: 16rem; /* increased width for all */
  min-height: 2.2rem; /* reduced height */
  padding: 0.5rem 0.5rem; /* less vertical padding */
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px 0 rgb(0 0 0 / 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
}

/* Maintenance Page Styles */
body.maintenance {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: #f3f4f6;
  margin: 0;
}
.msg-maintenance {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px #0001;
  padding: 2.5rem 2rem;
  font-size: 1.3rem;
  color: #333;
  text-align: center;
}
/* Playoff Bracket Table Styles */
.bracket-table th, .bracket-table td {
  padding: 0.5rem 0.25rem;
  vertical-align: middle;
}
.bracket-tile {
  width: 14rem;
  min-height: 2.2rem;
  padding: 0.5rem 0.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px 0 rgb(0 0 0 / 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1rem;
}
/*
Participant status circles:
  .bg-green-500: participant has submitted prediction
  .bg-gray-300: participant has not submitted
  .w-3.h-3.rounded-full.border: used for the circle
*/
/* Fade animation for Tournament tab switching */
.fade-in {
  animation: fadeIn 0.2s;
  opacity: 1;
}
.fade-out {
  animation: fadeOut 0.2s;
  opacity: 0;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
/* Slide down animation for points table */
.points-table-collapsed {
  max-height: 0 !important;
  opacity: 0;
  transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.2s linear;
}
.points-table {
  max-height: 1000px;
  opacity: 1;
  transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.2s linear;
}
/* Smooth fading animation for LIVE tag */
.live-flash {
  animation: liveFade 2s ease-in-out infinite;
}
@keyframes liveFade {
  0%, 100% {
    color: #dc2626; /* Tailwind red-600 */
    text-shadow: 0 0 8px #f87171, 0 0 2px #fff;
    opacity: 1;
  }
  50% {
    color: #991b1b; /* Tailwind red-800 */
    text-shadow: 0 0 2px #991b1b;
    opacity: 0.5;
  }
}
/* Thin scrollbar */
.scrollbar-thin {
  scrollbar-width: thin;
  scrollbar-color: #d1d5db #f3f4f6;
}

/* Webkit browsers (Chrome, Safari) */
.scrollbar-thin::-webkit-scrollbar {
  height: 6px;
}
.scrollbar-thin::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 3px;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}