﻿.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

    .dashboard-header h1 {
        margin: 0 0 4px;
        font-size: 22px;
        font-weight: 650;
        letter-spacing: -0.01em;
    }

.dashboard-subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--graphite);
}

.dashboard-loading {
    padding: 60px 0;
    text-align: center;
    color: var(--graphite);
}

/* ---------- Metric cards ---------- */

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius, 10px);
    padding: 18px;
    box-shadow: var(--shadow-sm, none);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

    .metric-card:hover {
        box-shadow: var(--shadow-md, none);
        transform: translateY(-1px);
    }

.metric-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.metric-label {
    margin: 0 0 4px;
    font-size: 12.5px;
    color: var(--graphite);
}

.metric-value {
    margin: 0;
    font-size: 22px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

/* ---------- Live chart ---------- */

.chart-panel {
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius, 10px);
    padding: 20px 22px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm, none);
}

.chart-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.chart-title {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 600;
}

.chart-subtitle {
    margin: 0;
    font-size: 12px;
    color: var(--graphite);
}

.live-dot {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--success);
}

.live-dot-ping {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    position: relative;
}

    .live-dot-ping::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: var(--success);
        animation: live-pulse 1.6s ease-out infinite;
    }

@keyframes live-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(2.6);
        opacity: 0;
    }
}

.chart-canvas-wrap {
    position: relative;
    height: 220px;
}

/* ---------- Section titles ---------- */

.section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--graphite);
    margin: 0 0 10px;
}

/* ---------- Activity list ---------- */

.activity-empty {
    color: var(--graphite);
    font-size: 13.5px;
    margin: 0;
}

.activity-list {
    border: 1px solid var(--hairline);
    border-radius: var(--radius, 10px);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-sm, none);
}

.activity-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--hairline);
    font-size: 13px;
}

    .activity-row:last-child {
        border-bottom: none;
    }

    .activity-row i {
        font-size: 15px;
        color: var(--graphite);
    }

.activity-desc {
    flex: 1;
}

.activity-time {
    color: var(--graphite);
    font-size: 12px;
}
