/* ==== LinguaServer charts (dashboard) ==== */

/* Tiny chart canvases */
canvas.chart-thumb-overall {
    width: 80px !important;
    height: 80px !important;
}

canvas.chart-thumb-pair {
    width: 36px !important;
    height: 36px !important;
}

/* Layout helpers */
.overall-chart {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pair-chart {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .25rem;
}

.lang-matrix-table td,
.lang-matrix-table th {
    vertical-align: top;
    text-align: center;
    padding: .35rem .4rem;
}

.lang-matrix-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    min-width: 90px;
}

/* Stacked bar */
.lang-progress {
    width: 100%;
    height: 5px;
    border-radius: 999px;
    overflow: hidden;
    background-color: #e9ecef;
}

.lang-progress-segment {
    height: 100%;
    float: left;
}

.lang-progress-t { background-color: #198754; }
.lang-progress-u { background-color: #ffc107; }
.lang-progress-i { background-color: #dc3545; }

.lang-matrix-count {
    font-size: .7rem;
    font-weight: 600;
}

/* Chips – tighter */
.marking-chip {
    display: inline-flex;
    align-items: center;
    gap: .15rem;
    padding: .05rem .3rem;
    border-radius: 999px;
    font-size: .65rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
}

.marking-chip-count {
    display: inline-block;
    padding: 0 .25rem;
    border-radius: 999px;
    font-size: .6rem;
}

/* per-status colors */
.marking-t { background-color: #198754; }
.marking-u { background-color: #ffc107; color: #212529; }
.marking-i { background-color: #dc3545; }

.marking-t .marking-chip-count,
.marking-i .marking-chip-count {
    background-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.marking-u .marking-chip-count {
    background-color: rgba(0, 0, 0, 0.12);
    color: #212529;
}

.lang-matrix-markings {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: .2rem;
}

/* icon-only buttons: extra tight */
.lang-matrix-actions .btn {
    padding: .1rem .25rem;
    line-height: 1;
}

.lang-matrix-actions .btn svg {
    width: 14px;
    height: 14px;
}

.btn-icon-only {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
