body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f4f8;
    color: #334155;
    display: flex;
    justify-content: center;
    align-items: stretch;
    min-height: 100vh;
    padding: 2rem;
}
.input-section {
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    padding-right: 1rem; /* Add some padding for the scrollbar */
}
.container {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    max-width: 90vw;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}
@media (min-width: 768px) {
    .container {
        grid-template-columns: 2fr 1fr;
    }
}
input[type="number"] {
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.2s;
}
input[type="number"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}
.toggle-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}
.toggle-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}
.toggle-option:hover {
    background-color: #f0f4f8;
}
.toggle-option input[type="radio"] {
    margin-right: 0.5rem;
    accent-color: #3b82f6;
}
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: background-color 0.2s;
}
.checkbox-option:hover {
    background-color: #f0f4f8;
}
.checkbox-option input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: #3b82f6;
    height: 1.1em;
    width: 1.1em;
}
.toggle-group-dbs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}
.toggle-group-dbs .toggle-option {
    padding-left: 1.5rem;
}
.result-box {
    background-color: #ecfdf5;
    border: 1px solid #d1fae5;
    border-radius: 0.75rem;
    padding: 1.5rem;
}
.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px dashed #a7f3d0;
}
.result-item:last-child {
    border-bottom: none;
}
.result-item span:first-child {
    font-weight: 600;
}
.total-interest {
    font-size: 1.25rem;
    font-weight: 700;
    color: #059669;
    margin-top: 1rem;
    text-align: center;
}
.interest-breakdown-item {
    font-size: 0.9rem;
    color: #4b5563;
    padding-left: 1rem;
    display: flex;
    justify-content: space-between;
}

.interest-breakdown-item span:last-child {
    display: inline-block;
    width: 100px; /* Adjust width as needed */
    text-align: right;
}
.interest-breakdown-item::before {
    content: "•";
    color: #34d399;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}
.text-right {
    text-align: right;
}
