body {
    font-family: Arial;
    background: #f0f0f0;
    padding: 20px;
}

h1, h2 {
    text-align: center;
}

.logout {
    float: right;
    margin-bottom: 20px;
}

.btn {
    background: #003399;
    color: white;
    padding: 10px 14px;
    border-radius: 5px;
    text-decoration: none;
}

table {
    width: 95%;
    margin: 20px auto;
    border-collapse: collapse;
}

th, td {
    padding: 8px;
    border: 1px solid #333;
}

.login-box {
    width: 300px;
    margin: 100px auto;
    background: white;
    padding: 20px;
    border-radius: 12px;
}

input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
}

.error {
    color: red;
}

/* CONTENEDOR PRINCIPAL DE ESTADÍSTICAS + BOTÓN */
.topStatsRow {
    display: flex;
    justify-content: space-between;
    align-items: center;      /* (⭐) Esto los alinea en la MISMA ALTURA */
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 45px;
}

/* Texto de total cartones y asignados */
.statsLeft div {
    font-size: 16px;
    margin-bottom: 3px;
}

/* Contenedor a la derecha del botón */
.statsRight {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* Estilo del botón */
.resetBtn {
    background: #C62828;
    border: none;
    padding: 10px 18px;
    font-size: 15px;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.resetBtn:hover {
    background: #b71c1c;
}


.btn-red {
    background: #cc0000 !important;
    color: white !important;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
}

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: none; /* Se muestra con JS */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 99999;
    color: white;
    font-size: 20px;
}

/* Spinner */
.loader {
    border: 6px solid #ffffff;
    border-top: 6px solid #0A2A66;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 0.9s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* HEADER ADMIN */
.adminHeader {
    width: 100%;
    height: 55px;
    background: #0A2A66;
    color: white;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 25px;
    box-sizing: border-box;

    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;

    font-size: 20px;
    font-weight: 600;
}

/* LOGO */
.adminHeader .logoAdmin {
    max-height: 40px;
    width: auto;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.adminHeader .logoAdmin:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* TEXTO CENTRADO */
.adminHeader .center {
    flex: 1;
    text-align: center;
    font-size: 22px;
}

/* BOTÓN CERRAR SESIÓN */
.logoutBtn {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    background: #cc0000;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.2s ease;
}

.logoutBtn:hover {
    background: #990000;
}

/* EMPUJAR CONTENIDO DEBAJO DEL HEADER */
#adminHeaderSpacer {
    height: 55px;
}

/* Marca los números seleccionados por usuarios */
.marcado-admin {
    background: #ffb3b3 !important;
    border-color: red !important;
    color: #7a0000 !important;
    font-weight: bold;
}

.cantado {
    background: #82ff82 !important;
    border-color: #0da80d !important;
    color: #004d00 !important;
}

.linea-detectada td {
    background: #9cc7ff !important;
    border-color: #0051a8 !important;
}

.bingo-detectado td {
    background: #ffd86b !important;
    border-color: #c99700 !important;
}

.alertaGanador {
    background: #ffe29c;
    border: 2px solid #d6a300;
    padding: 15px;
    font-size: 20px;
    text-align: center;
    border-radius: 10px;
    width: 90%;
    margin: 15px auto;
}

.topStatsRow2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0px;
}



