/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.data-table-clickable-row {
  cursor: pointer;
}

.data-table-bold-row {
  font-weight: 700;
}

.scoreboard-message-list {
  overflow-y: auto;
}

.scoreboard-message {
  display: block;
  padding: 0.25rem 0;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.scoreboard-message:last-child {
  margin-bottom: 0;
}

.scoreboard-message-author {
  font-weight: 600;
  margin-right: 0.4rem;
  color: #2f8fff;
}

.scoreboard-message-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: -3px;
  margin-right: 0.3rem;
}

/* Mirrors Bootstrap's .container max-width breakpoints so the pinned panel lines
   up with the page content's width instead of using its own fixed cap. */
.scoreboard-messages-pinned {
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  max-height: 50vh;
  z-index: 1030;
  margin: 0 auto !important;
  border: 2px solid #fff !important;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
}

@media (min-width: 576px) {
  .scoreboard-messages-pinned {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .scoreboard-messages-pinned {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .scoreboard-messages-pinned {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .scoreboard-messages-pinned {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .scoreboard-messages-pinned {
    max-width: 1320px;
  }
}

.table-matchup-win {
  --bs-table-bg: #a3e9a4;
  --bs-table-color: #000;
}

.bg-matchup-win {
  background-color: #a3e9a4 !important;
}

.bg-drafted-other {
  background-color: #f1a9a0 !important;
  color: #000 !important;
}

.drag-assign-column {
  min-width: 220px;
  flex: 0 0 220px;
}

.drag-assign-list {
  min-height: 3rem;
}

.drag-assign-card {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.drag-assign-card.dragging {
  opacity: 0.4;
}

.draft-flag-icon {
  border: none;
  background: none;
  line-height: 1;
  text-decoration: none;
}

.draft-flag-indicator {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.text-bright-green {
  color: #00ff00 !important;
}

table.draft-order-table th,
table.draft-order-table td {
  border: 1px solid #000;
}

.draft-pick-flash {
  animation: draft-pick-flash 1.5s ease-out;
}

@keyframes draft-pick-flash {
  0% { box-shadow: inset 0 0 0 3px #198754; }
  100% { box-shadow: inset 0 0 0 3px transparent; }
}

