/* RESET GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f8fafc;
    color: #1e293b;
}

/* ==========================================
   ESTILOS DE LA PORTADA CENTRADA (index.html)
   ========================================== */
.fullscreen-cover {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
    padding: 20px;
}

.cover-card {
    max-width: 600px;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

.logo-wrapper {
    margin-bottom: 25px;
}

.center-logo {
    height: 240px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(204, 24, 24, 0.2));
}

.center-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #cc1818;
    letter-spacing: -1px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.center-subtitle {
    font-size: 1rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 2px;
}

.center-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.btn {
    display: inline-block;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.btn-red {
    background-color: #cc1818;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(204, 24, 24, 0.2);
}

.btn-red:hover {
    background-color: #b01414;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: #ffffff;
    color: #cc1818;
    border: 2px solid #cc1818;
}

.btn-outline:hover {
    background-color: #fff5f5;
    transform: translateY(-2px);
}

/* ==========================================
   MENÚ SUPERIOR FIJO (Páginas de datos)
   ========================================== */
.main-header {
    background-color: #cc1818;
    border-bottom: 4px solid #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-logo {
    height: 40px;
    width: auto;
    background-color: #ffffff;
    padding: 3px;
    border-radius: 6px;
}

.brand-text {
    color: #ffffff;
    font-weight: 800;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: #ffcccc;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-back {
    background-color: rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================
   DISEÑO ESTRUCTURAL DE LAS TABLAS INDEPENDIENTES
   ========================================== */
.dashboard-grid {
    max-width: 1100px;
    margin: 100px auto 40px auto; /* Separación del menú fijo */
    padding: 0 20px;
    animation: fadeIn 0.4s ease-out;
}

.card {
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8fafc;
}

.card-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #cc1818;
}

/* FORMATO PREMIUM DE TABLAS */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: #ffffff;
    color: #64748b;
    font-weight: 700;
    padding: 16px 24px;
    border-bottom: 2px solid #edf2f7;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 0.95rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #fffafb; /* Sutil cambio de color al pasar el ratón por la fila */
}

/* ESTADOS Y COMPONENTES */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge.finalizado { background-color: #fee2e2; color: #cc1818; }
.badge.pendiente { background-color: #f1f5f9; color: #475569; }

.txt-highlight { color: #cc1818; font-weight: 800; }
.row-highlight { background-color: #fff5f5 !important; font-weight: 700; border-left: 4px solid #cc1818; }

.sync-text { font-size: 0.75rem; font-weight: 700; color: #64748b; display: flex; align-items: center; gap: 6px; }
.dot-green { width: 8px; height: 8px; background-color: #10b981; border-radius: 50%; display: inline-block; }
.sync-badge { background-color: #cc1818; color: #ffffff; padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }

/* ANIMACIÓN */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 10px; padding: 10px; }
    .dashboard-grid { margin-top: 150px; }
    .center-title { font-size: 2rem; }
    .center-logo { height: 180px; }
    .center-buttons { flex-direction: column; gap: 12px; }
    .btn { width: 100%; }
}
/* PUNTOS DE ESTADO DE PARTIDO (GANADO/EMPATE/PERDIDO) */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px; /* Separación con el texto del resultado */
    vertical-align: middle;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* Colores dinámicos */
.dot-win {
    background-color: #2ecc71; /* Verde esmeralda para victorias */
    box-shadow: 0 0 6px rgba(46, 204, 113, 0.4);
}

.dot-draw {
    background-color: #f1c40f; /* Amarillo vibrante para empates */
    box-shadow: 0 0 6px rgba(241, 196, 15, 0.4);
}

.dot-loss {
    background-color: #e74c3c; /* Rojo suave para derrotas */
    box-shadow: 0 0 6px rgba(231, 76, 60, 0.4);
}
