.project-dashboard {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}


/* Hero projet */

.dashboard-hero {
    position: relative;

    padding: 28px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 0% 0%,
            rgba(124, 92, 252, 0.11),
            transparent 34%
        ),
        radial-gradient(
            circle at 88% 10%,
            rgba(59, 200, 255, 0.055),
            transparent 34%
        ),
        var(--bg-surface-1);

    border:
        1px solid
        var(--border-default);

    border-radius:
        var(--radius-lg);
}

.dashboard-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 10px;

    color: var(--accent-purple-light);

    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dashboard-eyebrow-dot {
    width: 6px;
    height: 6px;

    background: var(--success);

    border-radius: 50%;

    box-shadow:
        0 0 10px
        rgba(53, 208, 127, 0.42);
}

.dashboard-project-name {
    margin-bottom: 8px;

    font-size: 28px;
}

.dashboard-description {
    max-width: 760px;

    margin-bottom: 0;

    color: var(--text-secondary);

    font-size: 14px;
    line-height: 1.55;
}

.dashboard-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 18px;
}

.dashboard-chip {
    display: inline-flex;
    align-items: center;

    min-height: 26px;

    padding: 4px 8px;

    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.025);

    border:
        1px solid
        var(--border-default);

    border-radius:
        var(--radius-sm);

    font-family: var(--font-mono);
    font-size: 10px;
}


/* Metrics */

.dashboard-metrics {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: var(--space-3);
}

.metric-card {
    min-width: 0;

    padding: 18px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.015),
            transparent
        ),
        var(--bg-surface-1);

    border:
        1px solid
        var(--border-default);

    border-radius:
        var(--radius-md);
}

.metric-label {
    margin-bottom: 9px;

    color: var(--text-muted);

    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric-value {
    color: var(--text-primary);

    font-size: 27px;
    font-weight: 650;

    letter-spacing: -0.035em;
}

.metric-note {
    margin-top: 5px;

    color: var(--text-muted);

    font-size: 11px;
}


/* Lower dashboard */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(280px, 0.6fr);

    gap: var(--space-4);
}

.dashboard-panel {
    padding: 20px;

    background: var(--bg-surface-1);

    border:
        1px solid
        var(--border-default);

    border-radius:
        var(--radius-md);
}

.dashboard-panel-title {
    margin-bottom: 16px;

    color: var(--text-primary);

    font-size: 14px;
    font-weight: 650;
}


/* Knowledge composition */

.knowledge-composition {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.knowledge-row {
    display: grid;

    grid-template-columns:
        130px
        minmax(0, 1fr)
        36px;

    gap: 12px;

    align-items: center;
}

.knowledge-label {
    color: var(--text-secondary);

    font-size: 12px;
}

.knowledge-bar {
    height: 5px;

    overflow: hidden;

    background:
        rgba(255, 255, 255, 0.045);

    border-radius: 999px;
}

.knowledge-bar-fill {
    height: 100%;

    background:
        linear-gradient(
            90deg,
            var(--accent-purple),
            var(--accent-cyan)
        );

    border-radius: 999px;
}

.knowledge-count {
    color: var(--text-muted);

    font-family: var(--font-mono);
    font-size: 11px;

    text-align: right;
}


/* Knowledge state */

.dashboard-health-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-health-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding-bottom: 10px;

    border-bottom:
        1px solid
        var(--border-default);
}

.dashboard-health-row:last-child {
    padding-bottom: 0;

    border-bottom: 0;
}

.health-label {
    color: var(--text-secondary);

    font-size: 12px;
}

.health-value {
    color: var(--text-primary);

    font-family: var(--font-mono);
    font-size: 11px;
}

.health-value.success {
    color: var(--success);
}

.health-value.warning {
    color: var(--warning);
}


/* Empty/loading */

.dashboard-empty {
    padding: 48px 20px;

    color: var(--text-muted);

    text-align: center;

    background: var(--bg-surface-1);

    border:
        1px dashed
        var(--border-default);

    border-radius:
        var(--radius-md);
}


/* Responsive */

@media (max-width: 1000px) {
    .dashboard-metrics {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

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

    .knowledge-row {
        grid-template-columns:
            100px
            minmax(0, 1fr)
            30px;
    }

    .dashboard-hero {
        padding: 20px;
    }
}
