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

.calculator-container h1 {
    text-align: center;
    color: #084288;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
}

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

.input-container label {
    width: 160px;
    text-align: right;
    font-weight: bold;
}

.input-container input {
    width: 100px;
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #cfd1d8;
    border-radius: 5px;
    outline: none;
}

.input-container select {
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #cfd1d8;
    border-radius: 5px;
    outline: none;
    background-color: white;
}

.input-container .unit {
    color: #666;
    font-size: 0.9rem;
    min-width: 45px;
}

.input-container input:focus,
.input-container select:focus {
    border-color: #084288;
    box-shadow: 0 0 3px rgba(8, 66, 136, 0.3);
}

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

#button-container button {
    padding: 12px 20px;
    border: 0;
    color: #fff;
    font-size: 16px;
    background: #084288;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#button-container button:hover {
    background-color: #0a5ab8;
}

#result {
    margin-top: 20px;
    padding: 15px;
    min-height: 60px;
}

#result.success {
    background-color: #f5f5f5;
    border-radius: 10px;
}

#result.error {
    background-color: #ffebee;
    border-radius: 10px;
    border: 1px solid #f44336;
    color: #c62828;
    text-align: center;
}

.result-header {
    font-size: 1.1rem;
    font-weight: bold;
    color: #084288;
    text-align: center;
    margin-bottom: 15px;
}

.ratio-card {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ratio-card h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.ratio-value {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
}

.ratio-interpretation {
    text-align: center;
    padding: 8px;
    border-radius: 5px;
    font-weight: bold;
}

.risk-optimal {
    color: #1b5e20;
}

.risk-good {
    color: #2e7d32;
}

.risk-moderate {
    color: #f57c00;
}

.risk-high {
    color: #c62828;
}

.bg-optimal {
    background-color: #c8e6c9;
}

.bg-good {
    background-color: #dcedc8;
}

.bg-moderate {
    background-color: #fff3e0;
}

.bg-high {
    background-color: #ffcdd2;
}

.cholesterol-summary {
    background-color: #e3f2fd;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.cholesterol-summary h4 {
    color: #1565c0;
    margin: 0 0 10px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dotted #90caf9;
}

.summary-row:last-child {
    border-bottom: none;
}

.content-section {
    padding: 20px;
    line-height: 1.7;
}

.content-section h2 {
    color: #084288;
    margin-top: 25px;
    margin-bottom: 15px;
}

.content-section h3 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
}

.content-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.content-section li {
    margin-bottom: 8px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.info-table th,
.info-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.info-table th {
    background-color: #084288;
    color: white;
}

.info-table .optimal td:first-child { color: #1b5e20; font-weight: bold; }
.info-table .good td:first-child { color: #2e7d32; font-weight: bold; }
.info-table .moderate td:first-child { color: #f57c00; font-weight: bold; }
.info-table .high td:first-child { color: #c62828; font-weight: bold; }

.disclaimer {
    background-color: #fff3e0;
    border: 1px solid #ff9800;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}

.disclaimer h3 {
    color: #e65100;
    margin-top: 0;
}

.disclaimer p {
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 480px) {
    .calculator-container {
        width: 95%;
        padding: 15px;
    }

    .input-container {
        flex-direction: column;
        align-items: stretch;
    }

    .input-container label {
        width: 100%;
        text-align: left;
        margin-bottom: 5px;
    }

    .input-container input,
    .input-container select {
        width: 100%;
        box-sizing: border-box;
    }

    #button-container {
        flex-direction: column;
    }

    #button-container button {
        width: 100%;
    }

    .summary-row {
        flex-direction: column;
        text-align: center;
    }
}
