/* Table Styles */
#standings-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#standings-table thead {
    background-color: #2c3e50;
    color: white;
}

#standings-table th {
    padding: 12px 6px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sub-header row styling */
#standings-table .sub-header th {
    padding: 8px 6px;
    font-size: 0.8rem;
    font-weight: 500;
    background-color: #34495e;
    text-transform: none;
    letter-spacing: normal;
}

#standings-table td {
    padding: 10px 6px;
    text-align: center;
    border-bottom: 1px solid #ecf0f1;
    font-size: 0.85rem;
}

#standings-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Conditional Row Styles */
.top-four {
    background-color: #d5f4e6 !important;
    font-weight: 600;
}

.top-four:hover {
    background-color: #c8f0d8 !important;
}

.relegation {
    background-color: #fadbd8 !important;
    font-weight: 600;
}

.relegation:hover {
    background-color: #f8c8c4 !important;
}

/* Club Column Styling */
.club-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: left;
}

.team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
}

.team-name {
    font-weight: 500;
}

/* Players Table Styles */
.players-table-container {
    margin-bottom: 40px;
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.players-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    font-size: 0.9rem;
}

.players-table th {
    background-color: #2c3e50;
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #34495e;
}

.players-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.players-table tbody tr:hover {
    background-color: #f8f9fa;
}

.players-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.players-table tbody tr:nth-child(even):hover {
    background-color: #e9ecef;
}

.rank-cell {
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    width: 60px;
}

.player-name {
    font-weight: 600;
    color: #2c3e50;
}

.points-cell {
    font-weight: 700;
    color: #27ae60;
    text-align: center;
    width: 100px;
}

.strikes-cell {
    text-align: center;
    width: 80px;
}

.strikes-badge {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.used-teams-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-badge {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.75rem;
    margin: 1px;
}

.monthly-selections-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.month-selection {
    display: inline-block;
    background-color: #9b59b6;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.75rem;
    margin: 1px;
}

.contributions-cell {
    text-align: center;
    white-space: nowrap;
}

.contributions-cell .contribution-amount {
    font-weight: bold;
    color: #28a745;
    margin-right: 8px;
}

.actions-cell {
    text-align: center;
    width: 120px;
}

/* Total Bank Row */
.total-bank-row {
    background-color: #f8f9fa;
    border-top: 2px solid #dee2e6;
    font-weight: bold;
}

.total-bank-label {
    text-align: right;
    padding: 12px 8px;
    color: #495057;
}

.total-bank-amount {
    text-align: center;
    padding: 12px 8px;
    color: #28a745;
    font-size: 1.1em;
}
