.calculator-container {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}
.input-group-text {
    min-width: 100px;
    justify-content: center;
    font-weight: bold;
}
.btn-action {
    min-width: 100px;
}
.result-box {
    border-left: 4px solid #198754;
    background-color: #e7f1ff;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}
.example-btn {
    margin: 2px;
}
.formula-box {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
    border-left: 3px solid #0d6efd;
    font-family: "Cambria Math", serif;
}
.factorial-notation {
    font-size: 1.5rem;
    color: #0d6efd;
    font-weight: bold;
}
.step-item {
    padding: 10px 15px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #6c757d;
}
.highlight {
    color: #dc3545;
    font-weight: bold;
}
.history-item {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 8px;
    border-left: 3px solid #198754;
}
.factor-list {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}
.factor-item {
    display: inline-block;
    padding: 5px 10px;
    margin: 3px;
    background-color: #e9ecef;
    border-radius: 4px;
    font-size: 0.9rem;
}
.result-number {
    font-family: monospace;
    font-size: 1.1rem;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    white-space: nowrap;
    max-height: 200px;
    overflow-y: auto;
}
.digit-count {
    background-color: #198754;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    margin-left: 10px;
}
.progress {
    height: 25px;
    margin: 15px 0;
}
.computation-time {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 5px;
}
.toggle-btn {
    cursor: pointer;
    color: #0d6efd;
    font-weight: bold;
}
.toggle-btn:hover {
    text-decoration: underline;
}
.prime-factorization {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}
.prime-factor {
    background-color: #ffc107;
    color: #000;
    padding: 3px 8px;
    border-radius: 3px;
    margin: 2px;
    display: inline-block;
    font-size: 0.85rem;
}
.legend-item {
    display: inline-block;
    margin-right: 15px;
    font-size: 0.85rem;
}
.legend-color {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 3px;
    margin-right: 5px;
    vertical-align: middle;
}
