body, div, input, li, p, span, td, textarea {
    font-family: arial, helvetica, sans-serif;
    font-size: 16px;
}

.calculator-container {
    background-color: white;
    width: 80%;
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 0 5px #ccc;
}

.input-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.input-container label {
    width: 50%;
    text-align: right;
    margin-right: 4%;
}

.input-container input, .input-container select {
    width: 46%;
    padding: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    border: 1px solid #cfd1d8;
    border-radius: 3px;
    outline: none;
    margin-right: 5%;
}

.input-container input::placeholder, .input-container select::placeholder {
    font-size: 0.8em;
}

#button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#button-container button {
    padding: 10px;
    border: 0;
    color:#fff;
    font-size:16px;
    background:#084288;
    border-radius: 3px;
    margin: 0 10px;
    cursor: pointer;
}

#button-container button:hover {
    background-color: #434c6d;
}

#result, #breakdown, #annualSummary, #checklist {
    text-align: center;
    margin-top: 20px;
}

#result table {
    width: 100%;
    border-collapse: collapse;
}

#result td {
    width: 25%;
    font-size: 0.8em;
    padding: 5px;
}

#result tr:not(:first-child) {
    border-top: 1px solid lightgray;
}

#breakdown table, #annualSummary table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
}

#breakdown td, #annualSummary td {
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
}

#breakdown tr.category-header td {
    background-color: #084288;
    color: white;
    font-weight: bold;
    text-align: left;
}

#breakdown tr.total-row td {
    background-color: #f0f0f0;
    font-weight: bold;
    border-top: 2px solid #084288;
}

#annualSummary td:first-child {
    text-align: left;
}

#annualSummary td:last-child {
    text-align: right;
}

#annualSummary tr.highlight td {
    background-color: #e8f5e9;
    font-weight: bold;
}

#annualSummary tr.negative td {
    background-color: #ffebee;
}

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

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

.neutral {
    color: #6c757d;
}

.expense-label {
    text-align: left !important;
}

.expense-value {
    text-align: right !important;
}

#checklist {
    text-align: left;
    padding: 10px;
}

#checklistContent {
    font-size: 0.85em;
}

#checklistContent .checklist-item {
    padding: 8px;
    margin: 5px 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

#checklistContent .checklist-item.included {
    background-color: #d4edda;
}

#checklistContent .checklist-item.missing {
    background-color: #fff3cd;
}

#checklistContent .checklist-item .icon {
    margin-right: 10px;
    font-size: 1.2em;
}
