/* =========================================================
   ANALYTICS HEADER
   ========================================================= */
.stats-header {
    margin-bottom: 2rem;
}

.stats-header h1 {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.stats-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =========================================================
   METRICS GRID
   ========================================================= */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stats-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stats-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05rem;
    color: var(--text-muted);
}

.stats-value {
    font-size: 1.8rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.text-green {
    color: var(--green);
}

.text-red {
    color: var(--red);
}

.text-blue {
    color: var(--blue);
}

/* =========================================================
   EXECUTION LOGS TABLE
   ========================================================= */
.log-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
}

.table-scroll-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.log-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.log-table th,
.log-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    white-space: nowrap;
}

.log-table th {
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.log-table tbody tr:last-child td {
    border-bottom: none;
}