/* style.css */
body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: #121212; 
    color: #e0e0e0; 
    padding: 20px; 
}

/* --- FILTROS --- */
.filters { 
    background: #1e1e1e; 
    padding: 25px; 
    border-radius: 12px; 
    margin-bottom: 30px; 
    display: flex; 
    gap: 25px; 
    align-items: center; 
    border: 1px solid #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    font-weight: bold;
}

.filters button {
    margin-left: 10px; /* Separa un poco los botones entre sí */
}

/* Agrupamos SELECT e INPUT para que se comporten igual */
select, 
input[type="text"] { 
    -webkit-appearance: none; /* Quita estilos de Safari/Chrome */
    -moz-appearance: none;    /* Quita estilos de Firefox */
    appearance: none;         /* Estándar */
    
    padding: 12px 15px; 
    background: #252525; 
    color: #eee; 
    border: 1px solid #444; 
    border-radius: 6px; 
    min-width: 180px;
    
    /* La clave para matar el azul */
    outline: 0 !important;
    outline: none !important;
    box-shadow: none; 
    
    transition: all 0.3s ease;
    box-sizing: border-box;
}

select { cursor: pointer; }

/* Forzar el verde en el foco */
select:focus,
input[type="text"]:focus {
    border-color: #00bc8c !important; /* Verde intenso */
    box-shadow: 0 0 0 2px rgba(0, 188, 140, 0.2) !important; /* Un "anillo" verde suave */
    background: #2a2a2a;
}

button[type="submit"],
button[type="button"] { 
    padding: 12px 25px; 
    background: #00bc8c; 
    color: #121212; 
    cursor: pointer; 
    font-weight: bold; 
    border: none; 
    border-radius: 6px;
    transition: all 0.3s;
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 46px; /* Forzamos la misma altura para ambos */
}

button[type="submit"]:hover,
button[type="button"]:hover { 
    background: #00ffbf; 
    transform: translateY(-2px);
}

/* --- TABLA --- */
table { 
    width: 100%; 
    border-collapse: collapse; 
    background: #1e1e1e; 
    border-radius: 8px; 
    overflow: hidden; 
}

th { 
    background: #2c2c2c; 
    padding: 0; 
    text-align: left; 
}

th a { 
    display: block; 
    padding: 15px; 
    color: #00bc8c; 
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.2s;
}

th a:hover { 
    background: #383838; 
    color: #00ffbf;
}

td { 
    padding: 12px 15px; 
    border-bottom: 1px solid #333; 
}

tr:hover { 
    background: #252525; 
}

/* --- ELEMENTOS DENTRO DE LA TABLA --- */

.sort-arrow {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.9em;
    color: #00bc8c; 
}

.route-link {
    color: #f1c40f; 
    font-weight: 600;
    font-size: 1.05em;
    text-decoration: none;
    transition: all 0.2s ease;
}

.route-link:hover {
    color: #ffffff; 
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.unit-badge { 
    font-size: 0.75em; 
    padding: 2px 6px; 
    background: #444; 
    border-radius: 3px; 
    color: #aaa; 
    margin-left: 5px; 
}

.game-tag { 
    font-size: 0.8em; 
    font-weight: bold; 
    color: #5dade2; 
    background: #2a2a2a;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid #3d3d3d;
    display: inline-block;
}