#equation-display {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 2rem 0 1rem;
    font-size: 1.4rem;
    font-weight: 500;
}

.coeff-input {
    width: 36px;
    height: 36px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    padding: 2px;
}

.coeff-input:focus {
    outline: none;
    border-color: #6153cc;
}

/* Remove spinner arrows */
.coeff-input::-webkit-outer-spin-button,
.coeff-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.coeff-input {
    -moz-appearance: textfield;
}

.coeff-input.correct {
    border-color: #28a745;
    background-color: #e6f9e8;
}

.coeff-input.incorrect {
    border-color: #dc3545;
    background-color: #fde8e8;
}

.equation-formula {
    font-family: 'Georgia', serif;
}

.equation-plus {
    margin: 0 4px;
    color: #6c757d;
}

.equation-arrow {
    margin: 0 10px;
    font-size: 1.6rem;
    color: #495057;
}

#atom-count-table {
    margin: 1rem auto;
    max-width: 350px;
}

#atom-count-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

#atom-count-table th, #atom-count-table td {
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    text-align: center;
}

#atom-count-table th {
    background: #f8f9fa;
    font-weight: 600;
}

.count-match {
    color: #28a745;
    font-weight: bold;
}

.count-mismatch {
    color: #dc3545;
    font-weight: bold;
}
