Analyze these lab results and include a section for Good, Bad, and Needs Work.    <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Lab Results Analysis</title>
    <style>
        body {
            font-family: 'Roboto', sans-serif;
            background-color: #FFFFFF;
            color: #001555;
            line-height: 1.6;
            padding: 20px;
        }
        
        h1 {
            text-align: center;
            color: #001555;
        }

        h2 {
            color: #001555;
            border-bottom: 2px solid #001555;
            padding-bottom: 5px;
            margin-top: 50px;
        }

        .lab-section {
            margin-bottom: 20px;
        }

        p {
            font-size: 0.95rem;
        }

        .lab-result {
            margin-bottom: 15px;
            padding: 10px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        .flag-normal {
            color: #4CAF50;
            font-weight: 600;
            text-align: right;
            float: right;
        }

        .flag-warning {
            color: #D00010;
            font-weight: 600;
            text-align: right;
            float: right;
        }

        .flag-critical {
            color: #F44336;
            text-align: right;
            float: right;
        }

        .label {
            font-weight: bold;
            margin-right: 10px;
        }

        .result-value1 {
            font-size: 1em;
            font-weight: 500;
            border-bottom: 2px solid #4CAF50;
        }

        .result-value2 {
            font-size: 1em;
            font-weight: 500;
            border-bottom: 2px solid #D00010;
        }

        .icon-safe::before,
        .icon-warning::before,
        .icon-critical::before {
            margin-right: 5px;
        }

        .icon-safe::before {
            content: "✓";
            color: #4CAF50;
            font-weight: 600;
            margin-left: 10px;
        }

        .icon-warning::before,
        .icon-critical::before {
            content: "⚠";
            font-weight: 600;
            margin-left: 10px;
        }

        .icon-warning::before {
            color: #D00010;
        }

        .icon-critical::before {
            color: #F44336;
        }

        .header {
            display: flex;
            max-width: 100%;
            background-color: #FFFFFF;
            margin-bottom: 20px;
        }

        .header-left {
            flex: 1;
            display: flex;
            justify-content: flex-start;
            align-items: center;
        }

        .header-right {
            flex: 1;
            text-align: right;
            font-weight: 400;
            font-size: 16px;
            color: #010078;
            padding-top: 10px;
            max-width:100%;
           margin-left: 0px;
        }

        .himage img {
            max-width: 60%;
            height: auto;
        }

        .contact-info {
            margin: 0;
        }

        .right2 {
            font-size: 1.05rem;
            font-weight: 500;
            color: #000000;
        }
        
       . right3 {
            font-size: 0.85rem;
            font-weight: 600;
            color: #000000;
        }

        .right1 {
            font-size: 1rem;
            margin-bottom: 1px;
            font-weight: 500;
        }

        .right {
            font-size: 0.8rem;
            font-weight: 500;
        }
    </style>
</head>
<body>
    <header class="header">
        <div class="header-left">
            <div class="himage">
                <img src="imglogo2.png" alt="Lab Logo" />
            </div>
        </div>
        <div class="header-right">
            <div class="right1">Lab Results For: 
            <span class="right2">MADHU RAM</span></div>
            <div class="right">Date Collected:  <span class="right3">Aug 15, 2024</span>
        </div></div>
    </header>
    
    <!-- Hematology Profile Section -->
    <div class="lab-section">
        <h2>Hematology Profile</h2>
        <!-- WBC -->
        <div class="lab-result">
            <span class="label">White Blood Cells (WBC):</span>
            <span class="result-value1">5.5 x 10<sup>9</sup>/L</span>
            <span class="flag-normal icon-safe">(Normal)</span>
            <p>White blood cells are part of the immune system. The normal range is 4.0-10.0 x 10<sup>9</sup>/L, indicating the immune response is within a healthy range.</p>
        </div>
        <!-- RBC -->
        <div class="lab-result">
            <span class="label">Red Blood Cells (RBC):</span>
            <span class="result-value1">4.52 x 10<sup>12</sup>/L</span>
            <span class="flag-normal icon-safe">(Normal)</span>
            <p>Red blood cells carry oxygen throughout the body. The normal range is 3.50-5.00 x 10<sup>12</sup>/L, and this result falls within the average range.</p>
        </div>
        <!-- Hemoglobin -->
        <div class="lab-result">
            <span class="label">Hemoglobin:</span>
            <span class="result-value1">131 g/L</span>
            <span class="flag-normal icon-safe">(Normal)</span>
            <p>Hemoglobin is a protein in red blood cells that carries oxygen. A normal range is 115-155 g/L, and the result shows a healthy level.</p>
        </div>
        <!-- Hematocrit -->
        <div class="lab-result">
            <span class="label">Hematocrit:</span>
            <span class="result-value1">0.40 L/L</span>
            <span class="flag-normal icon-safe">(Normal)</span>
            <p>Hematocrit reflects the volume percentage of red blood cells in the blood. The normal range is 0.35-0.45 L/L, indicating a balanced blood volume ratio.</p>
        </div>
        <!-- Platelets -->
        <div class="lab-result">
            <span class="label">Platelets:</span>
            <span class="result-value1">162 x 10<sup>9</sup>/L</span>
            <span class="flag-normal icon-safe">(Normal)</span>
            <p>Platelets help blood clot. A normal range is 150-400 x 10<sup>9</sup>/L, meaning this value is within the safe range.</p>
        </div>
    </div>
    
    <!-- Glucose and Hemoglobin A1C -->
    <div class="lab-section">
        <h2>Glucose & Hemoglobin A1C</h2>
        <!-- Hemoglobin A1C -->
        <div class="lab-result">
            <span class="label">Hemoglobin A1C:</span>
            <span class="result-value2">6.6%</span>
            <span class="flag-warning icon-warning">(Above Normal)</span>
            <p>This result indicates a higher average blood sugar over 3 months. Normal levels are 4.5-5.9%, while the target for diabetes is <7.0%. A level ≥6.5% confirms Type 2 Diabetes.</p>
        </div>
    </div>
    
    <!-- Lipid Panel Section -->
    <div class="lab-section">
        <h2>Lipid Profile</h2>
        <!-- Total Cholesterol -->
        <div class="lab-result">
            <span class="label">Total Cholesterol:</span>
            <span class="result-value1">5.05 mmol/L</span>
            <span class="flag-normal icon-safe">(Normal)</span>
            <p>Total cholesterol is within the healthy range of 2.00 - 5.19 mmol/L, indicating a good balance in cholesterol levels.</p>
        </div>
        <!-- LDL Cholesterol -->
        <div class="lab-result">
            <span class="label">LDL Cholesterol:</span>
            <span class="result-value2">3.16 mmol/L</span>
            <span class="flag-warning icon-warning">(Slightly High)</span>
            <p>LDL cholesterol, known as "bad" cholesterol, should ideally be below 3.40 mmol/L. For high-risk patients, the goal is less than 2.00 mmol/L.</p>
        </div>
        <!-- Lipoprotein (a) -->
        <div class="lab-result">
            <span class="label">Lipoprotein (a):</span>
            <span class="result-value2">119 nmol/L</span>
            <span class="flag-warning icon-warning">(Elevated)</span>
            <p>High levels of lipoprotein (a) are associated with increased risk for cardiovascular issues. The normal level is less than 100 nmol/L.</p>
        </div>
        <!-- HDL Cholesterol -->
        <div class="lab-result">
            <span class="label">HDL Cholesterol:</span>
            <span class="result-value1">1.34 mmol/L</span>
            <span class="flag-normal icon-safe">(Healthy)</span>
            <p>HDL is the "good" cholesterol, and levels should be above 1.19 mmol/L. This value indicates healthy heart function.</p>
        </div>
        <!-- Triglycerides -->
        <div class="lab-result">
            <span class="label">Triglycerides:</span>
            <span class="result-value1">1.21 mmol/L</span>
            <span class="flag-normal icon-safe">(Normal)</span>
            <p>Triglycerides are a type of fat in the blood. The normal range is <2.21 mmol/L, and this result shows a healthy level.</p>
        </div>
    </div>
    
    <!-- Kidney Function Section -->
    <div class="lab-section">
        <h2>Kidney Function</h2>
        <!-- Creatinine -->
        <div class="lab-result">
            <span class="label">Creatinine:</span>
            <span class="result-value1">69 µmol/L</span>
            <span class="flag-normal icon-safe">(Normal)</span>
            <p>Creatinine levels reflect kidney function. The normal range is 45-90 µmol/L, and this value is within the healthy range.</p>
        </div>
        <!-- Glomerular Filtration Rate (eGFR) -->
        <div class="lab-result">
            <span class="label">Glomerular Filtration Rate (eGFR):</span>
            <span class="result-value1">79 mL/min/1.73 sq m</span>
            <span class="flag-normal icon-safe">(Normal)</span>
            <p>eGFR measures kidney efficiency. Values ≥60 indicate good kidney function, and this result shows no major concern.</p>
        </div>
    </div>
    
    <!-- Thyroid Function Section -->
    <div class="lab-section">
        <h2>Thyroid Function</h2>
        <!-- Thyroid Stimulating Hormone (TSH) -->
        <div class="lab-result">
            <span class="label">Thyroid Stimulating Hormone (TSH):</span>
            <span class="result-value1">1.77 mU/L</span>
            <span class="flag-normal icon-safe">(Normal)</span>
            <p>TSH levels are within the normal range of 0.32-5.04 mU/L, indicating proper thyroid function and normal metabolism regulation.</p>
        </div>
    </div>
    
    <div class="section">
        <h2>Conclusion</h2>
        <p>Overall, the results show stable kidney function and adequate thyroid function. However, the patient should closely monitor their lipid levels, especially LDL and lipoprotein (a), which are elevated and could increase the risk of cardiovascular issues. Blood sugar levels indicate Type 2 diabetes, which is consistent with the patient's known health condition.</p>
    </div>
</body>
</html>