table.bayes-rule-exp {
    padding: 20px;
    margin: 0 auto;
    background: #f5f5f5;
    border-radius: 8px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.05);
}

td.upper_line {
    border-top: solid 1px #555;
    margin: 4px;
    text-align: center;
    padding-top: 8px;
}

td.numerator {
    white-space: nowrap;
    padding: 6px;
    text-align: center;
}

table.fraction {
    text-align: center;
    vertical-align: middle;
    margin-top: 0.7em;
    margin-bottom: 0.7em;
    line-height: 2.2em;
}

.prob-diseased-result {
    font-size: 24px;
    font-weight: bold;
    padding: 0 5px;
    border-radius: 4px;
    background: rgba(0,0,0,0.05);
}

.prob-diseased-worry {
    font-size: 24px;
    padding: 10px;
    margin-left: 15px;
    font-style: italic;
    font-weight: 500;
    border-radius: 4px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.bayesian-formula {
    font-size: 18px;
    line-height: 1.6;
}

.prob-positive, .prob-diseased, .prob-pos-given-diseased {
    padding: 2px 5px;
    border-radius: 3px;
    background: rgba(0,0,0,0.05);
}