/* Estilos de tablas */

/* Filtros de búsqueda */
.filters {
	margin-bottom: 20px;
	display: flex;
	gap: 10px;
}

.filters input, .filters select, .filters button {
	padding: 7px 10px;
	font-size: 1em;
	border-radius: 4px;
	border: 1px solid #ccc;
}

.filters button {
	background: #222e3c;
	color: #fff;
	border: none;
	cursor: pointer;
}

/* Selector de día */
.day-selector {
	text-align: center;
	margin: 20px 0;
}

.day-selector button {
	margin: 0 10px;
	padding: 10px 20px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	background: #f0f0f0;
	color: black;
	transition: all 0.3s;
}

.day-selector button.active,
.day-selector button:hover {
	background: #007bff;
	color: white;
}

/* Tabla histórico y clasificación */
.tabla-historico {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	margin-bottom: 20px;
}

.tabla-historico th, .tabla-historico td {
	padding: 10px;
	border: 1px solid #e0e0e0;
	text-align: left;
}

.tabla-historico th {
	background: #222e3c;
	color: #fff;
}

.tabla-historico tr:nth-child(even) {
	background: #f4f4f4;
}

/* Efecto hover para filas clickeables */
.tabla-historico tr[data-player] {
	transition: all 0.2s ease;
}

.tabla-historico tr[data-player]:hover {
	background: #e3f2fd !important;
	transform: scale(1.01);
	box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

/* Clasificación: primero y último */
.tabla-historico tr.primero {
	background: #c8f7c5 !important;
	font-weight: bold;
}

.tabla-historico tr.primero td:nth-child(2) {
	background: #4caf50 !important;
	color: #fff;
}

.tabla-historico tr.ultimo {
	background: #ffd6d6 !important;
	font-weight: bold;
}

.tabla-historico tr.ultimo td:nth-child(2) {
	background: #e53935 !important;
	color: #fff;
}

/* Botón de detalle */
.detalle-btn {
	background: #1a2230;
	color: #fff;
	border: none;
	padding: 6px 12px;
	border-radius: 4px;
	cursor: pointer;
}

.detalle-btn:hover {
	background: #2a3a50;
}

/* Leyenda de clasificación */
.leyenda-clasificacion {
	margin-top: 25px;
	background: #f8f8f8;
	border-radius: 8px;
	padding: 18px 22px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	font-size: 1em;
}

.leyenda-clasificacion h3 {
	margin-top: 0;
	color: #222e3c;
	font-size: 1.1em;
}

.leyenda-clasificacion ul {
	margin: 0;
	padding-left: 20px;
}

.leyenda-clasificacion li {
	margin-bottom: 6px;
}

/* Lineup */
.lineup-container {
	display: flex;
	gap: 30px;
	margin-top: 10px;
}

.lineup-team {
	flex: 1;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	padding: 15px;
}

.blue-team {
	border-left: 8px solid #2196f3;
}

.red-team {
	border-left: 8px solid #e53935;
}

.lineup-team h4 {
	margin-top: 0;
	color: #222e3c;
}

.lineup-team ul {
	list-style: none;
	padding: 0;
}

.lineup-team li {
	padding: 6px 0;
	border-bottom: 1px solid #eee;
}

/* Estilos para estadísticas */
.estadisticas-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.fila {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.columna {
    flex: 1;
    margin: 0 10px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.columna.izquierda {
    text-align: center;
}

.columna h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
}

.estadistica-grande {
	font-size: 2.5em;
	font-weight: bold;
	color: #444444;
}

.estadisticas-container ul {
    list-style: none;
    padding: 0;
}

.estadisticas-container ul li {
    font-size: 1.2em;
    margin: 5px 0;
    color: #555;
}
