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, #analysis, #timeline, #breakdown {
    text-align: center;
    margin-top: 20px;
}

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

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

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

#timeline table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8em;
}

#timeline th, #timeline td {
    padding: 8px 5px;
    text-align: center;
    border-bottom: 1px solid lightgray;
}

#timeline th {
    background-color: #084288;
    color: white;
    font-weight: bold;
}

#timeline tr:nth-child(even) {
    background-color: #f8f9fa;
}

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

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

.warning {
    color: #ffc107;
    font-weight: bold;
}

.breakdown-label {
    text-align: left !important;
    padding-left: 10px !important;
}

.breakdown-value {
    text-align: right !important;
    padding-right: 10px !important;
}
