/* ===== DASHBOARD ===== */
#dashboard {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Dashboard del torneo a squadre: stesso aspetto scuro della individuale,
   così le caselle traslucide sono leggibili. Nascosta quando è vuota
   (prima che venga disegnata) per non mostrare un riquadro scuro vuoto. */
#team-dashboard-content {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
#team-dashboard-content:empty { display: none; }

.dashboard-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f39c12;
    margin-bottom: 1.5rem;
}

.dashboard-empty {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
    font-size: 1rem;
}

.dashboard-empty .dashboard-empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.75rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.12);
}

.stat-card .stat-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.4rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #f39c12;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.75rem;
    color: #bdc3c7;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.3rem;
}

.dashboard-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .dashboard-bottom { grid-template-columns: 1fr; }
}

.dashboard-panel {
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255,255,255,0.08);
}

.dashboard-panel h4 {
    color: #ecf0f1;
    margin: 0 0 0.75rem 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.podium-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.podium-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.podium-list li:last-child { border-bottom: none; }

.podium-medal {
    font-size: 1.2rem;
    width: 1.5rem;
    text-align: center;
}

.podium-name {
    flex: 1;
    color: #ecf0f1;
    font-weight: 500;
}

.podium-pts {
    color: #f39c12;
    font-weight: 700;
    font-size: 1rem;
}

.progress-round { margin-bottom: 0.5rem; }

.progress-round-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #bdc3c7;
    margin-bottom: 0.3rem;
}

.progress-bar-outer {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    height: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-bar-inner {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, #f39c12, #e74c3c);
    transition: width 0.5s ease;
}

.games-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #bdc3c7;
    margin-bottom: 0.3rem;
}

.games-bar-outer {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    height: 10px;
    overflow: hidden;
}

.games-bar-inner {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    transition: width 0.5s ease;
}
