/* General reset for margin and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General page styles */
html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f7f9fc;
    overflow-x: hidden;
}

/* Header and logo */
.header {
    background-color: #003366;
    padding: 20px;
    text-align: center;
    color: #ffffff;
}

.header img {
    width: 150px;
}

/* Disclamer container*/
.disclamer {
    color: gray;
    font-size: 12px;
}

/* Calculator container */
.calculator {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    text-align: center;
    overflow: hidden;
}

/* Calculator heading */
h1 {
    font-size: 24px;
    font-weight: bold;
    color: #003366;
    margin-bottom: 20px;
}

/* Labels and input fields */
label {
    display: block;
    margin: 15px 0 5px;
    font-weight: bold;
    font-size: 16px;
    color: #003366;
}

input, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ced4da;
    font-size: 16px;
    color: #495057;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input:focus, select:focus {
    border-color: #80bdff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
}

/* Buttons */
button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

/* Results container */
.result-section {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    margin-top: 20px;
}

/* Detailed calculation breakdown */
div p {
    font-size: 16px;
    margin: 10px 0;
    color: #333;
}

/* Key results styling */
strong {
    font-size: 18px;
    font-weight: bold;
    color: #003366;
    margin-bottom: 10px;
}

/* Highlight net income */
#net-income {
    background-color: #d4edda;
    color: #155724;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 20px;
    font-weight: bold;
}

/* Divider for clarity between sections */
div p span {
    float: right;
    font-weight: bold;
}

/* Align results text for readability */
div p {
    text-align: left;
    padding-left: 10px;
    line-height: 1.5;
}

/* Ensure spacing on smaller devices */
@media (max-width: 600px) {
    .calculator {
        padding: 20px;
        margin: 10px auto;
    }

    h1 {
        font-size: 20px;
    }

    input, select, button {
        font-size: 14px;
    }
}
