/* ====================================
   Statistics & Aggregate Components
   ==================================== */

/* Global Aggregate Stats */
.global-aggregate-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: var(--shadow-inset);
}

.ag-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background: var(--bg-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-raised);
    transition: all 0.3s ease;
}



.ag-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    /* Neutral Grey */
    opacity: 0.8;
}

.ag-value {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.ag-value.success {
    color: var(--color-success);
}

.ag-value.pending {
    color: var(--color-pending);
}

.ag-value.total {
    color: var(--text-accent);
}

.ag-value.progress {
    color: var(--color-progress);
}

.ag-value.failed {
    color: var(--color-failed);
}

/* Progress Labels */
.progress-label {
    font-weight: 700;
    color: var(--text-accent);
}

.progress-success {
    color: var(--color-success);
    font-weight: 600;
}

.progress-failed {
    color: var(--color-failed);
    font-weight: 600;
}

.progress-total {
    color: var(--color-progress);
    font-weight: 600;
}

.progress-percent {
    color: var(--color-info);
    font-weight: 700;
}