/* ==========================================================================
   Dashboard — premium stats panel, stat-item-compact, best times pills
   ========================================================================== */

.premium-stats-panel {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .premium-stats-panel {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-tertiary) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.stat-item-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 12px;
    transition:
        transform 200ms var(--ease-out-strong),
        background-color 200ms ease;
}

/* Hover sutil — solo cambio de fondo. El panel de stats es informativo,
   no interactivo, así que evitamos lift que sugiera "esto se puede tocar". */
.stat-item-compact:hover {
    background-color: rgba(220, 53, 69, 0.05);
}

[data-bs-theme="dark"] .stat-item-compact:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.icon-red {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--primary-color); /* #dc3545 Ferrari/Vodafone Red */
}

.icon-dark {
    background-color: rgba(33, 37, 41, 0.1);
    color: var(--text-primary);
}

[data-bs-theme="dark"] .icon-dark {
    background-color: rgba(255, 255, 255, 0.1);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Best Times Pills */
.best-times-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-around;
}

.time-pill {
    display: flex;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50rem;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition:
        transform 200ms var(--ease-out-strong),
        box-shadow 200ms var(--ease-out-strong),
        border-color 200ms ease;
}

.time-pill:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.15);
}

.pill-distance {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-right: 0.5rem;
    padding-right: 0.5rem;
    border-right: 1px solid var(--border-color);
}

.pill-time {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.pill-time.missing {
    color: var(--text-muted);
    font-style: italic;
}

/* Recent Activity Cards Adjustments for Dashboard2 */
.activity-card-compact {
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.stats-row-compact .stats-box {
    padding: 0.5rem !important;
}

.stats-row-compact small {
    font-size: 0.7rem;
    margin-bottom: 0.1rem;
}

.stats-row-compact strong {
    font-size: 0.95rem;
}

/* Mobile specific tweaks */
@media (max-width: 768px) {
    .premium-stats-panel {
        padding: 1rem;
    }
    .stat-item-compact {
        padding: 0.5rem;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    .stat-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    .stat-value {
        font-size: 1.25rem;
    }
    .time-pill {
        padding: 0.4rem 0.8rem;
    }
}
