:root {
    --table-row-hover: hsl(var(--b3));
    --table-header-bg: hsl(var(--b2));
    --table-border: hsl(var(--b3));
}

.table-data,
.table-standard,
.table-premium {
    width: 100%;
    border-collapse: collapse;
}

.table-data th,
.table-data td,
.table-standard th,
.table-standard td,
.table-premium th,
.table-premium td {
    padding: 0.5rem 0.75rem;
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid var(--table-border);
}

.table-data thead th,
.table-standard thead th,
.table-premium thead th {
    font-weight: 500;
    color: hsl(var(--bc) / 0.7);
}

.table-data tbody tr:hover,
.table-standard tbody tr:hover,
.table-premium tbody tr:hover {
    background-color: var(--table-row-hover);
}

.table-data tbody tr:last-child td,
.table-standard tbody tr:last-child td,
.table-premium tbody tr:last-child td {
    border-bottom: none;
}

.table-compact th,
.table-compact td {
    padding: 0.35rem 0.5rem;
}

.table-past-draft {
    table-layout: fixed;
}

.table-past-draft th:nth-child(1),
.table-past-draft td:nth-child(1) {
    width: 8rem;
    text-align: left;
}

.table-past-draft th:nth-child(2),
.table-past-draft td:nth-child(2) {
    width: 9.5rem;
    white-space: nowrap;
}

.table-past-draft th:nth-child(3),
.table-past-draft td:nth-child(3) {
    width: 12rem;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-past-draft th:nth-child(4),
.table-past-draft td:nth-child(4) {
    width: 4rem;
}

.table-past-draft th:nth-child(5),
.table-past-draft td:nth-child(5) {
    width: 9rem;
    text-align: left;
}

.table-past-draft th:nth-child(6),
.table-past-draft td:nth-child(6) {
    width: 8rem;
    text-align: left;
}


/* Simple progress bar styles */
.progress-stat {
    position: relative;
    width: 100%;
    height: 0.25rem;
    background-color: hsl(var(--b3));
    border-radius: 0.25rem;
    overflow: hidden;
}
.progress-stat-bar {
    height: 100%;
    background-color: hsl(var(--p));
}

.contract-timeline tbody tr.contract-active {
    font-weight: 600;
}

.player-averages-tight th,
.player-averages-tight td {
    padding: 0.25rem 0.35rem;
}

.player-averages-tight th,
.player-averages-tight td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-averages-tight th:not(:first-child),
.player-averages-tight td:not(:first-child) {
    text-align: center;
}

.player-averages-tight th:first-child,
.player-averages-tight td:first-child {
    text-align: left;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.35rem;
    border-radius: 0.25rem;
    background-color: hsl(var(--b3));
    font-weight: 500;
}

/* Player list table readability */
.players-table-shell .table-data {
    @apply bg-base-100/5 rounded-xl overflow-hidden;
}

.players-table-shell .table-data th,
.players-table-shell .table-data td {
    @apply text-base-content;
}

.players-table-shell .table-data thead th {
    @apply bg-base-200/40 border-b border-base-content/10;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.players-table-shell .table-data tbody tr {
    @apply bg-base-100/10 border-b border-base-content/10 transition-colors;
}

.players-table-shell .table-data tbody tr:hover {
    @apply bg-base-100/20;
}

/* Stats leaders contrast */
.stats-leaders-table table {
    @apply bg-base-100/5 text-base-content;
}

.stats-leaders-table thead tr {
    @apply bg-base-200/50 text-base-content/70 font-medium;
}

.stats-leaders-table tbody tr {
    @apply bg-base-100/10 border-b border-base-content/10;
}

.stats-leaders-table tbody tr:hover {
    @apply bg-base-100/20 text-base-content;
}
