@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800&display=swap');

#sv-grupos-wrapper {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    max-width: 1000px;
    margin: 0 auto;
    color: #1e293b;
}
#sv-grupos-wrapper * {
    box-sizing: border-box;
}

/* --- NAVEGADOR DE CATEGORÍAS --- */
.sv-category-navigator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.sv-nav-arrow {
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 16px;
    transition: all 0.2s ease;
}

.sv-nav-arrow:hover:not(:disabled) {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.05);
}

.sv-current-cat-display {
    text-align: center;
    min-width: 200px;
}

.sv-cat-name {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.sv-cat-rama {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- GRID DE GRUPOS --- */
.sv-grid-grupos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}
@media (max-width: 768px) {
    .sv-grid-grupos {
        grid-template-columns: 1fr;
    }
}

.sv-grupo-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sv-grupo-header {
    background: #f8fafc;
    padding: 15px 20px;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

.sv-grupo-fase {
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
    background: #e2e8f0;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.sv-mini-table-container {
    overflow-x: auto;
}

.sv-mini-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 320px;
}
.sv-mini-table th {
    padding: 12px 10px;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
    background: #ffffff;
}
.sv-mini-table th:nth-child(2) { text-align: left; }
.sv-mini-table td {
    padding: 10px 10px;
    font-size: 13px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.sv-mini-table tr:last-child td {
    border-bottom: none;
}

.sv-td-pos {
    text-align: center;
    font-weight: 800;
    color: #94a3b8;
}
.sv-pos-1 { color: #eab308; } 
.sv-pos-2 { color: #94a3b8; } 
.sv-pos-3 { color: #b45309; } 

.sv-td-equipo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #1e293b;
}
.sv-td-equipo img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
}

.sv-td-stat {
    text-align: center;
    color: #64748b;
    font-weight: 600;
}
.sv-td-pts {
    text-align: center;
    font-weight: 900;
    color: #0f172a;
    background: #f8fafc;
    border-left: 1px solid #e2e8f0;
}

.sv-empty-state {
    grid-column: 1 / -1;
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.sv-th-tooltip {
    cursor: help;
    border-bottom: 1px dotted #94a3b8;
}

.accvs-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
