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: 450px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 0 5px #ccc;
}

.section-title {
    background: #084288;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    margin: 15px 0 10px 0;
    font-weight: bold;
    text-align: center;
}

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

.input-container label {
    width: 45%;
    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: 10%;
}

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

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

#button-container button {
    padding: 10px 20px;
    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 {
    margin-top: 20px;
}

#result h3 {
    text-align: center;
    color: #084288;
    margin-bottom: 15px;
}

.result-highlight {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 15px;
}

.result-highlight .big-number {
    font-size: 2em;
    font-weight: bold;
    display: block;
    margin: 10px 0;
}

.result-highlight .label {
    font-size: 0.9em;
    opacity: 0.9;
}

.result-summary {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.result-summary h4 {
    color: #084288;
    margin: 0 0 10px 0;
    text-align: center;
}

.result-summary p {
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
}

.result-summary strong {
    color: #084288;
}

.result-summary .deduction {
    color: #dc3545;
}

.pay-comparison {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.pay-box {
    background: #f8f9fa;
    padding: 12px 8px;
    border-radius: 10px;
    text-align: center;
}

.pay-box.gross {
    background: #cce5ff;
}

.pay-box.net {
    background: #d4edda;
}

.pay-box h5 {
    color: #084288;
    margin: 0 0 5px 0;
    font-size: 0.75em;
}

.pay-box .value {
    font-size: 1.1em;
    font-weight: bold;
    color: #084288;
}

.pay-box .period {
    font-size: 0.7em;
    color: #666;
    margin-top: 3px;
}

.tax-breakdown {
    margin-top: 15px;
}

.tax-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.tax-item:last-child {
    border-bottom: none;
}

.tax-item .name {
    color: #333;
}

.tax-item .amount {
    font-weight: bold;
    color: #dc3545;
}

.tax-item.total {
    border-top: 2px solid #084288;
    margin-top: 10px;
    padding-top: 10px;
}

.tax-item.total .name,
.tax-item.total .amount {
    font-weight: bold;
    color: #084288;
}

.percentage-bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 30px;
    margin: 15px 0;
    overflow: hidden;
    display: flex;
}

.percentage-bar .take-home {
    background: linear-gradient(135deg, #28a745, #20c997);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8em;
    font-weight: bold;
}

.percentage-bar .taxes {
    background: linear-gradient(135deg, #dc3545, #c82333);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8em;
    font-weight: bold;
}

.error-message {
    color: red;
    text-align: center;
    margin-bottom: 10px;
}

@media (max-width: 480px) {
    .pay-comparison {
        grid-template-columns: 1fr;
    }
}
