/* Waiver Wire Styles */
.waiver-wire-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2em;
}

.waiver-wire-header {
  text-align: center;
  margin-bottom: 2em;
}

.waiver-wire-header h2 {
  color: var(--text-primary);
  margin-bottom: 0.5em;
}

.waiver-wire-header .subtitle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
  font-size: 1em;
  color: var(--text-secondary);
}

.waiver-wire-header .subtitle strong {
  color: var(--accent-primary);
}

/* Filters Section */
.waiver-wire-filters {
  background: var(--bg-secondary);
  padding: 1.5em;
  border-radius: 12px;
  margin-bottom: 2em;
  border: 1px solid var(--border-color);
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.5em;
  align-items: center;
}

.search-container {
  position: relative;
}

.search-container input {
  width: 100%;
  padding: 0.75em 1em;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1em;
  transition: border-color 0.2s;
}

.search-container input:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.search-container input::placeholder {
  color: var(--text-muted);
}

.filter-container select,
.sort-container select {
  padding: 0.75em 1em;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1em;
  cursor: pointer;
  transition: border-color 0.2s;
}

.filter-container select:focus,
.sort-container select:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.sort-container {
  display: flex;
  gap: 0.5em;
  align-items: center;
}

.sort-order-btn {
  padding: 0.75em;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.2em;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.sort-order-btn:hover {
  border-color: var(--accent-primary);
  background: var(--bg-tertiary);
}

/* Players Grid */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.5em;
  margin-bottom: 2em;
}

/* Waiver Player Cards */
.waiver-player {
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.2s;
  overflow: hidden;
}

.waiver-player:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.waiver-player.clickable-card {
  cursor: pointer;
  transition: all 0.2s ease;
}

.waiver-player.clickable-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--accent-primary);
}

.waiver-player .click-hint {
  display: flex;
  align-items: center;
  margin-left: auto;
  font-size: 0.8em;
  color: var(--text-muted);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.waiver-player.clickable-card:hover .click-hint {
  opacity: 1;
  color: var(--accent-primary);
}

/* Player Card Structure */
.waiver-player .player-header {
  padding: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  background: none; /* Explicitly remove any background */
}

.waiver-player .player-top-row {
  display: flex;
  align-items: center;
  gap: 1em;
}

.waiver-player .player-bottom-row {
  display: flex;
  align-items: center;
  gap: 2em;
}

.waiver-player .player-info {
  flex: 1;
  min-width: 0;
}

.waiver-player .player-name {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.waiver-player .player-inline-details {
  font-size: 0.9em;
  font-weight: 500;
  color: var(--text-muted);
}

.waiver-player .player-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--border-color);
}

.waiver-player .player-position {
  font-weight: 600;
  font-size: 0.9em;
}

.waiver-player .player-team,
.waiver-player .player-age,
.waiver-player .player-exp {
  font-size: 0.85em;
  color: var(--text-muted);
}

.waiver-player .player-status {
  display: inline-block;
  padding: 0.25em 0.5em;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.waiver-player .player-status.status-q {
  background: rgba(255, 152, 0, 0.2);
  color: #ff9800;
}

.waiver-player .player-status.status-d {
  background: rgba(255, 87, 34, 0.2);
  color: #ff5722;
}

.waiver-player .player-status.status-out {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
}

.waiver-player .player-status.status-ir {
  background: rgba(156, 39, 176, 0.2);
  color: #9c27b0;
}

/* Projections Display */
.waiver-player .projections {
  display: flex;
  gap: 2em;
  align-items: center;
}

.waiver-player .projection {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: transparent;
  border: none;
  padding: 0;
}

.waiver-player .proj-label {
  font-size: 0.75em;
  font-weight: 500;
  color: #3498db;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  margin-bottom: 0.1em;
}

.waiver-player .proj-points {
  font-size: 1.3em;
  font-weight: 700;
  line-height: 1;
  color: #3498db;
}

/* KTC Value Display */
.waiver-player .ktc-value {
  display: flex;
  align-items: center;
  gap: 0.25em;
  padding: 0;
  background: transparent;
  border: none;
}

.waiver-player .ktc-value-number {
  font-weight: 700;
  font-size: 1.2em;
  color: var(--accent-primary);
}

.waiver-player .ktc-trend {
  font-size: 1em;
  font-weight: 600;
}

.waiver-player .ktc-rank {
  font-size: 0.8em;
  color: var(--text-muted);
  background: var(--bg-primary);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  margin-left: 0.25em;
}

.waiver-player .ktc-value.no-value {
  background: rgba(136, 136, 136, 0.1);
  border-color: rgba(136, 136, 136, 0.2);
}

.waiver-player .ktc-value.no-value .ktc-value-number {
  color: var(--text-muted);
  font-weight: 500;
}

.waiver-player .ktc-no-rank {
  font-size: 0.8em;
  color: var(--text-muted);
  font-style: italic;
}

/* Waiver Status Indicators */
.waiver-indicator {
  padding: 0.25em 0.5em;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: 600;
  margin-top: 0.5em;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.waiver-indicator.free-agent {
  background: rgba(0, 223, 196, 0.2);
  color: #00dfc4;
  border: 1px solid rgba(0, 223, 196, 0.3);
}

.waiver-indicator.on-waivers {
  background: rgba(255, 152, 0, 0.2);
  color: #ff9800;
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.waiver-indicator.existing-claim {
  background: rgba(156, 39, 176, 0.2);
  color: #9c27b0;
  border: 1px solid rgba(156, 39, 176, 0.3);
}

/* Drop player modal styles */
.drop-players-list {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin: 1em 0;
}

.drop-player-card {
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--border-color);
}

.drop-player-card:last-child {
  border-bottom: none;
}

.drop-player-card:hover {
  background: rgba(126, 196, 255, 0.1);
}

.drop-player-card.selected {
  background: rgba(0, 223, 196, 0.2);
  border-color: var(--accent-success);
}

.drop-player-content {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 1em;
}

.drop-player-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}

.drop-player-info {
  flex: 1;
  min-width: 0;
}

.drop-player-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25em;
}

.drop-player-details {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.9em;
  color: var(--text-muted);
}

.drop-player-position {
  font-weight: 600;
}

/* Waiver Overview Styles */
.waiver-overview-content {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.waiver-opportunity h4 {
  color: #7ec4ff;
  font-size: 0.9em;
  font-weight: 600;
  margin: 0 0 0.75em 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.overview-player-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.75em;
  border: 1px solid #2a2f40;
  transition: all 0.2s ease;
}

.overview-player-card:hover {
  border-color: #7ec4ff;
  background: rgba(126, 196, 255, 0.1);
}

.overview-player-info {
  display: flex;
  align-items: center;
  gap: 0.75em;
  flex: 1;
  min-width: 0;
}

.overview-player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid #2a2f40;
}

.overview-player-details {
  flex: 1;
  min-width: 0;
}

.overview-player-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.95em;
  margin-bottom: 0.25em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-player-meta {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.8em;
  flex-wrap: wrap;
}

.overview-player-position {
  font-weight: 600;
}

.overview-player-team {
  color: #888;
}

.overview-player-value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25em;
  flex-shrink: 0;
}

.overview-ktc-value {
  font-size: 1.2em;
  font-weight: 700;
  color: #7ec4ff;
}

.overview-ktc-trend {
  font-size: 0.9em;
  font-weight: 600;
}

.overview-ktc-rank {
  font-size: 0.75em;
  color: #888;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

.waiver-status {
  background: rgba(255, 152, 0, 0.2);
  color: #ff9800;
  font-size: 0.7em;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.no-player {
  color: #888;
  font-style: italic;
  font-size: 0.9em;
  margin: 0;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .waiver-overview-content {
    gap: 1em;
  }
  
  .overview-player-card {
    padding: 0.5em;
  }
  
  .overview-player-avatar {
    width: 32px;
    height: 32px;
  }
  
  .overview-player-name {
    font-size: 0.9em;
  }
  
  .overview-ktc-value {
    font-size: 1em;
  }
}

.selection-counter {
  background: var(--bg-primary);
  padding: 0.75em;
  border-radius: 6px;
  text-align: center;
  margin: 1em 0;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

.drop-player-card.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.drop-player-card.disabled:hover {
  background: none;
}

.drop-player-projection {
  font-size: 1em;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: right;
}

/* Add these rules to your waiver-wire.css */

.drop-player-metrics {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5em;
  min-width: 80px;
}

.drop-player-ktc {
  display: flex;
  align-items: center;
  gap: 0.25em;
  text-align: right;
}

.drop-player-ktc .ktc-value-number {
  font-weight: 700;
  font-size: 1em;
  color: var(--accent-primary);
}

.drop-player-ktc .ktc-trend {
  font-size: 0.9em;
  font-weight: 600;
}

.drop-player-ktc .ktc-rank {
  font-size: 0.75em;
  color: var(--text-muted);
  background: var(--bg-primary);
  padding: 0.1em 0.3em;
  border-radius: 3px;
  border: 1px solid var(--border-color);
}

/* Status badges in drop modal */
.drop-player-card .player-status {
  font-size: 0.75em;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  margin-left: 0.5em;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2em;
  margin-top: 2em;
  padding: 2em 0;
}

.pagination-btn {
  padding: 0.75em 1.5em;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--accent-primary);
  background: var(--bg-tertiary);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0 1em;
}

/* Loading/Error States */
.waiver-wire-container .loading,
.waiver-wire-container .error-message {
  text-align: center;
  padding: 4em 2em;
  color: var(--text-muted);
  font-size: 1.1em;
}

.waiver-wire-container .error-message {
  color: var(--accent-danger);
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  border-radius: 8px;
  margin: 2em auto;
  max-width: 500px;
}

/* Empty State */
.waiver-wire-empty {
  text-align: center;
  padding: 4em 2em;
  color: var(--text-muted);
}

.waiver-wire-empty h3 {
  color: var(--text-secondary);
  margin-bottom: 1em;
}

.waiver-wire-empty p {
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Modal Overlay Styles - These are global as they overlay everything */
.modal-overlay {
  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: 10000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 2em;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.large-modal {
  max-width: 600px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5em;
  padding-bottom: 1em;
  border-bottom: 1px solid var(--border-color);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: var(--bg-secondary);
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 1em;
  color: var(--text-primary);
  font-size: 1.4em;
}

.modal-content p {
  margin-bottom: 1em;
  color: var(--text-secondary);
}

.modal-content strong {
  color: var(--accent-primary);
}

/* Player summary in modal */
.player-summary {
  display: flex;
  align-items: center;
  gap: 1.5em;
  margin-bottom: 2em;
  padding: 1.5em;
  background: var(--bg-primary);
  border-radius: 8px;
}

.player-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--border-color);
}

.player-summary-info {
  flex: 1;
}

/* Loading Progress Styles */
.loading-progress {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 400px;
  margin: 2em auto;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 1em;
  padding: 0.75em 1em;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #444;
  transition: all 0.3s ease;
  opacity: 0.5;
}

.progress-step.active {
  opacity: 1;
  border-left-color: #7ec4ff;
  background: rgba(126, 196, 255, 0.1);
  animation: pulse-blue 2s infinite;
}

.progress-step.complete {
  opacity: 1;
  border-left-color: #00dfc4;
  background: rgba(0, 223, 196, 0.1);
}

.progress-step.error {
  opacity: 1;
  border-left-color: #f44336;
  background: rgba(244, 67, 54, 0.1);
}

.progress-icon {
  font-size: 1.2em;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.progress-text {
  font-weight: 500;
  color: #fff;
  flex: 1;
}

.progress-step.active .progress-text {
  color: #7ec4ff;
}

.progress-step.complete .progress-text {
  color: #00dfc4;
}

.progress-step.error .progress-text {
  color: #f44336;
}

@keyframes pulse-blue {
  0%, 100% { 
    box-shadow: 0 0 5px rgba(126, 196, 255, 0.3);
  }
  50% { 
    box-shadow: 0 0 20px rgba(126, 196, 255, 0.6);
  }
}

/* Mobile responsive */
@media (max-width: 480px) {
  .loading-progress {
    max-width: 300px;
    gap: 0.75em;
  }
  
  .progress-step {
    padding: 0.5em 0.75em;
  }
  
  .progress-icon {
    font-size: 1em;
    width: 20px;
  }
  
  .progress-text {
    font-size: 0.9em;
  }
}



.pending-bid-status {
  background: rgba(156, 39, 176, 0.2);  /* Purple background with transparency */
  color: #9c27b0;  /* Purple text */
  font-size: 0.7em;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(156, 39, 176, 0.3);  /* Purple border */
}

.player-summary-info h4 {
  margin: 0 0 0.5em 0;
  color: var(--text-primary);
  font-size: 1.3em;
}

.player-summary-info p {
  margin: 0 0 0.5em 0;
  color: var(--text-secondary);
}

.player-summary-stats {
  display: flex;
  gap: 1.5em;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-label {
  font-size: 0.8em;
  color: var(--text-muted);
  margin-bottom: 0.25em;
}

.stat-value {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--accent-primary);
}

/* Action sections */
.action-section {
  margin-bottom: 2em;
  padding: 1.5em;
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.action-section h4 {
  margin: 0 0 1em 0;
  color: var(--text-primary);
}

.action-section p {
  margin: 0 0 1em 0;
  color: var(--text-secondary);
}

.action-btn {
  padding: 0.75em 1.5em;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 1em;
  margin-bottom: 0.5em;
}

/* Warning section */
.warning-section {
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.3);
  padding: 1.5em;
  border-radius: 8px;
  margin-bottom: 2em;
}

.warning-section p {
  margin: 0 0 0.5em 0;
  color: #ff9800;
}

.warning-section p:last-child {
  margin-bottom: 0;
}

.form-select,
.form-input {
  width: 100%;
  padding: 0.75em;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1em;
  margin-bottom: 1.5em;
  transition: all 0.2s;
}

.form-select:focus,
.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-input[type="number"] {
  -moz-appearance: textfield;
}

.form-input[type="number"]::-webkit-outer-spin-button,
.form-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.modal-buttons {
  display: flex;
  gap: 1em;
  justify-content: flex-end;
  margin-top: 1.5em;
}

.modal-buttons button {
  padding: 0.75em 1.5em;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.modal-buttons .btn-primary {
  background: var(--accent-primary);
  color: white;
}

.modal-buttons .btn-primary:hover {
  background: #5aa3e8;
  transform: translateY(-1px);
}

.modal-buttons .btn-secondary {
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.modal-buttons .btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--text-secondary);
}

/* Update existing button styles for claim states */
.update-claim-btn {
  padding: 0.75em 1.5em;
  background: var(--bg-primary);
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9em;
}

.update-claim-btn:hover:not(:disabled) {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-1px);
}

.update-claim-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Different button states for free agents vs waiver players */
.free-agent-add {
  background: var(--accent-primary);
}

.waiver-add {
  background: #ff9800;
}

.waiver-add:hover:not(:disabled) {
  background: #f57c00;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .waiver-wire-container {
    padding: 1.5em;
  }
  
  .players-grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1em;
  }
}

@media (max-width: 768px) {
  .waiver-wire-container {
    padding: 1em;
  }
  
  .filter-row {
    grid-template-columns: 1fr;
    gap: 1em;
  }
  
  .sort-container {
    justify-content: center;
  }
  
  .players-grid {
    grid-template-columns: 1fr;
    gap: 1em;
  }
  
  .pagination {
    gap: 1em;
    flex-direction: column;
  }
  
  .pagination-btn {
    width: 120px;
  }
  
  .waiver-player .player-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5em;
  }
  
  .waiver-player .projections {
    flex-wrap: wrap;
    gap: 1em;
  }

  /* Responsive modal */
  .player-summary {
    flex-direction: column;
    text-align: center;
  }
  
  .player-summary-stats {
    justify-content: center;
  }
  
  .large-modal {
    max-width: none;
    width: 95%;
    margin: 1em;
  }

  .modal-buttons {
    flex-direction: column;
  }
  
  .modal-buttons .btn-primary,
  .modal-buttons .btn-secondary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .waiver-player .player-header {
    gap: 0.75em;
  }
  
  .waiver-player .player-avatar {
    width: 50px;
    height: 50px;
  }
  
  .waiver-player .player-name {
    font-size: 1.1em;
  }
}

/* Waiver Wire Table Styles */
.waiver-table-container {
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow-x: auto;
  margin-top: 20px;
}

.waiver-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.waiver-table thead {
  background: var(--bg-primary);
  border-bottom: 2px solid var(--border-color);
}

.waiver-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.waiver-sortable {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.waiver-sortable:hover {
  background: var(--bg-tertiary);
}

.waiver-table-row {
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

.waiver-table-row:hover {
  background: var(--bg-tertiary);
}

.waiver-table-row.waiver-clickable {
  cursor: pointer;
}

.waiver-table td {
  padding: 12px 16px;
  vertical-align: middle;
}

.waiver-table-player-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.waiver-table-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  object-fit: cover;
}

.waiver-table-player-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.waiver-table-player-name {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 14px;
}

.waiver-table-status-badge {
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1;
  background: rgba(255, 152, 0, 0.2);
  color: #ff9800;
}

.waiver-position-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.waiver-team-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  background: var(--secondary-background);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.waiver-status-indicator {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.waiver-status-indicator.on-waivers {
  background: rgba(255, 152, 0, 0.2);
  color: #ff9800;
}

.waiver-status-indicator.free-agent {
  background: rgba(76, 175, 80, 0.2);
  color: #4caf50;
}

.waiver-projection,
.waiver-ktc-value,
.waiver-ktc-rank {
  font-weight: 500;
  color: var(--text-primary);
}

/* Table column widths */
.waiver-th-league { width: 20%; }
.waiver-th-player { width: 20%; }
.waiver-th-position { width: 8%; }
.waiver-th-team { width: 8%; }
.waiver-th-status { width: 12%; }
.waiver-th-weekly { width: 10%; }
.waiver-th-season { width: 10%; }
.waiver-th-ktc-value { width: 7%; }
.waiver-th-ktc-rank { width: 7%; }

/* Responsive table */
@media (max-width: 768px) {
  .waiver-table-container {
    font-size: 12px;
  }

  .waiver-table th,
  .waiver-table td {
    padding: 8px 12px;
  }

  .waiver-table-avatar {
    width: 28px;
    height: 28px;
  }

  .waiver-table-player-name {
    font-size: 13px;
  }
}

/* Sortable table headers */
.waiver-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  position: relative;
}

.waiver-table th.sortable:hover {
  background: var(--bg-tertiary);
  color: var(--accent-primary);
}

.waiver-table th.sortable.sorted {
  color: var(--accent-primary);
}

.waiver-table th.sortable .sort-indicator {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.8em;
  color: var(--accent-primary);
}

.waiver-bench-slots {
  font-weight: 500;
  color: var(--text-primary);
}