

/* Heading Styles */
h1 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
}

/* Label Styles */
label {
    display: block;
    margin: 10px 0;
    font-size: 1.2em;
}

/* Input Styles */
input[type="number"] {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    margin-bottom: 20px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Button Styles */
button {
    width: 100%;
    padding: 10px;
    font-size: 1.2em;
    background-color: #3b7eff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}


/* Compensation Items Styles */
.total-compensation-item, .compensation-item {
    text-align: center;
    font-size: 1.1em;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

/* Error Message Styling */
#errorMessage {
    color: red !important;
    font-size: 1em;
    text-align: center;
    margin-top: 10px;
    display: none;
}

/* Chart Styles */
#compensationChart {
    max-width: 100%;
    height: auto;
    margin: 20px auto;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

/* Tooltip Styles */
.tooltip {
    visibility: hidden;
    width: 250px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9em;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.fas.fa-info-circle:hover + .tooltip,
.fas.fa-info-circle:focus + .tooltip {
    visibility: visible;
    opacity: 1;
}
