/* Excel-style Table for Football Matches */
.excel-table {
  border-collapse: collapse;
  width: 100%;
  background: white;
  font-family: Arial, sans-serif;
  margin-bottom: 0;
}

.excel-table th,
.excel-table td {
  border: 1px solid #000;
  padding: 8px 12px;
  text-align: center;
  vertical-align: middle;
  font-size: 14px;
}

.excel-table thead {
  background-color: #d0d0d0;
  font-weight: bold;
}

.excel-table .league-header {
  background-color: #e8e8e8;
  font-weight: bold;
  text-align: center;
  font-size: 14px;
}

.excel-table .text-red {
  color: #ff0000;
  font-weight: bold;
}

.excel-table .time-col {
  width: 60px;
  font-size: 13px;
}

.excel-table .no-col {
  width: 40px;
  font-weight: bold;
}

.excel-table .team-col {
  width: 200px;
  text-align: left;
  padding-left: 12px;
}

.excel-table .score-col {
  width: 50px;
  font-weight: bold;
}

.excel-table .handicap-col {
  width: 100px;
  font-weight: bold;
}

/* Closed match row - darker background */
.match-row.match-closed {
  background-color: #d9d9d9 !important;
  opacity: 0.8;
}

.match-row.match-closed td {
  color: #666 !important;
}

.match-row.match-closed .text-red {
  color: #999 !important;
}

/* Disable click cursor on closed matches */
.match-row.match-closed .clickable-team {
  cursor: not-allowed !important;
}

/* Clickable team cells */
.clickable-team {
  cursor: pointer;
  transition: background-color 0.2s;
}

.clickable-team:hover {
  background-color: rgba(0, 123, 255, 0.1);
}

/* Selected team highlight */
.clickable-team.selected {
  background-color: rgba(0, 123, 255, 0.3) !important;
  font-weight: bold;
}

/* Row with selection */
.match-row.has-selection {
  background-color: rgba(0, 123, 255, 0.05) !important;
}

/* Score colors based on result */
.score-win {
  color: #28a745;
  font-weight: bold;
}

.score-draw {
  color: #6c757d;
  font-weight: bold;
}

.score-lose {
  color: #dc3545;
  font-weight: bold;
}

/* Predicted team highlight (green background) */
.predicted-team {
  background-color: #d4edda !important;
  font-weight: bold;
}

/* Card spacing for tips page */
.card .table-responsive {
  margin-bottom: 0;
}

.card-footer {
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-top: 2px solid #dee2e6;
}

/* Add margin to cards containing tables */
.card.mb-3,
.card.mb-4 {
  margin-bottom: 1.5rem !important;
}
