/* Simple, clean styling */
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0; 
    background-color: #f4f4f9; 
    display: flex; 
    justify-content: center; 
    align-items: flex-start; 
    padding-top: 40px;
    min-height: 100vh; 
    box-sizing: border-box;
}

.container { 
    background: #fff; 
    padding: 2rem; 
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    width: 100%; 
    max-width: 500px; 
    margin: 0 15px;
}

h1 { 
    text-align: center; 
    color: #333; 
    margin-top: 0;
}

p { 
    text-align: center; 
    color: #666; 
    margin-bottom: 2rem;
}

.input-group { 
    display: flex; 
    margin-bottom: 1.5rem; 
}

#final-amount { 
    flex-grow: 1; 
    padding: 0.75rem; 
    border: 1px solid #ddd; 
    border-radius: 4px 0 0 4px; 
    font-size: 1rem; 
    -moz-appearance: textfield;
}
#final-amount::-webkit-outer-spin-button,
#final-amount::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


#calculate-btn { 
    padding: 0.75rem 1.5rem; 
    border: none; 
    background-color: #007bff; 
    color: white; 
    border-radius: 0 4px 4px 0; 
    cursor: pointer; 
    font-size: 1rem; 
    transition: background-color 0.2s;
}

#calculate-btn:hover { 
    background-color: #0056b3; 
}

#results table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 1rem; 
}

#results th, #results td { 
    padding: 0.8rem; 
    text-align: left; 
    border-bottom: 1px solid #eee; 
    vertical-align: middle;
}

#results th:not(:first-child),
#results td:not(:first-child) {
    text-align: right;
}

#results th { 
    color: #333;
    background-color: #f8f9fa;
}

#results .highlight { 
    font-weight: bold; 
    background-color: #fffbe6;
}
#results .highlight td:first-child {
    color: #d9534f;
}
