/* Shared by the dialog's Stats tab and pages/stats-calc.html — moved out of
   dialog.css so the calculator page doesn't have to link dialog-chrome rules
   it has no use for. */
.stats-list {
    font-size: clamp(14px, 1.5vw + 0.5rem, 16px);
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stat-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.stat-value {
    font-weight: bold;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-bar {
    width: 100%;
    height: 6px;
    background: var(--stat-track-color);
    border-radius: 10px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: var(--secondary-color);
    border-radius: 10px;
    transition: width var(--transition-slow);
}

/* ===== pages/stats-calc.html ===== */
.stats-calc-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.stats-calc-result {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.stats-calc-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}

.stats-calc-header h2 {
    text-transform: uppercase;
}

#nature-select {
    padding: var(--space-2);
    border-radius: var(--radius-md);
    border: none;
    outline: none;
    background: var(--secondary-color);
    color: var(--color-white);
}

.stat-inputs {
    display: flex;
    gap: var(--space-3);
}

.stat-input-label {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 0.85rem;
}

.iv-input,
.ev-input {
    width: 4rem;
    padding: var(--space-1);
    border-radius: var(--radius-sm);
    border: none;
    outline: none;
    background: var(--secondary-color);
    color: var(--color-white);
}

.stat-row.nature-boost .stat-name {
    color: var(--stat-high);
}

.stat-row.nature-lower .stat-name {
    color: var(--stat-low);
}

.ev-total,
.bst-total-row {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}

.ev-total.over-limit {
    color: var(--color-danger);
}

.stage-table-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.stage-table {
    width: 100%;
    max-width: 24rem;
    border-collapse: collapse;
}

.stage-table th,
.stage-table td {
    padding: 0.25rem var(--space-2);
    text-align: center;
    border-bottom: 1px solid var(--secondary-color);
}
