body, div, input, li, p, span, td, textarea {
    font-family: arial, helvetica, sans-serif;
    font-size: 16px;
}

.calculator-container {
    background-color: white;
    width: 90%;
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 0 5px #ccc;
}

.calculator-container h3 {
    color: #084288;
    font-size: 14px;
    margin: 15px 0 10px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

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

.input-container label {
    width: 55%;
    text-align: right;
    margin-right: 5%;
    font-size: 14px;
}

.input-container input, .input-container select {
    width: 30%;
    padding: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    border: 1px solid #cfd1d8;
    border-radius: 3px;
    outline: none;
}

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

#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 {
    text-align: left;
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    display: none;
}

#result.show {
    display: block;
}

#result h3 {
    color: #084288;
    margin-top: 0;
    font-size: 16px;
    margin-bottom: 15px;
}

#result .health-score {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

#result .health-score .score-value {
    font-size: 48px;
    font-weight: bold;
}

#result .health-score .score-label {
    font-size: 18px;
    margin-top: 5px;
}

#result .health-score.excellent {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

#result .health-score.good {
    background: linear-gradient(135deg, #17a2b8, #20c997);
    color: white;
}

#result .health-score.fair {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #333;
}

#result .health-score.poor {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
}

#result .metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

#result .metric-card {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #084288;
}

#result .metric-card .metric-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

#result .metric-card .metric-value {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

#result .metric-card .metric-benchmark {
    font-size: 11px;
    color: #888;
    margin-top: 3px;
}

#result .metric-card.positive .metric-value {
    color: #28a745;
}

#result .metric-card.negative .metric-value {
    color: #dc3545;
}

#result .metric-card.neutral .metric-value {
    color: #ffc107;
}

#result .full-width {
    grid-column: 1 / -1;
}

#result .benchmark-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #084288;
}

#result .benchmark-title {
    font-weight: bold;
    color: #084288;
    margin-bottom: 10px;
}

#result .benchmark-bar {
    background: #e9ecef;
    height: 24px;
    border-radius: 12px;
    position: relative;
    margin: 8px 0;
    overflow: hidden;
}

#result .benchmark-fill {
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    min-width: 50px;
}

#result .benchmark-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
}

.help-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    cursor: help;
    color: #084288;
    font-size: 14px;
    position: relative;
}

.help-icon:hover .disclaimer {
    display: block;
}

.disclaimer {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 15px;
    width: 300px;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    top: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-size: 13px;
}

.disclaimer p {
    margin: 5px 0;
}
