.risk-badge {
            font-size: 1.2rem;
            font-weight: 600;
            padding: 0.4rem 1rem;
            border-radius: 40px;
            display: inline-block;
        }
        .risk-normal { background-color: #d4edda; color: #155724; }
        .risk-prediabetes { background-color: #fff3cd; color: #856404; }
        .risk-diabetes { background-color: #f8d7da; color: #721c24; }
        .glucose-scale {
            background: linear-gradient(90deg, #28a745 0%, #ffc107 50%, #dc3545 100%);
            height: 12px;
            border-radius: 12px;
            margin: 20px 0;
            position: relative;
        }
        .glucose-marker {
            position: absolute;
            width: 18px;
            height: 18px;
            background: #2c3e50;
            border: 3px solid white;
            border-radius: 50%;
            top: -3px;
            transform: translateX(-50%);
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
            transition: left 0.2s ease;
        }
        .indicator-labels {
            display: flex;
            justify-content: space-between;
            margin-top: 5px;
            font-size: 0.75rem;
            font-weight: 500;
        }
        .conversion-card {
            background: #f8f9fc;
            border-radius: 20px;
            padding: 1rem;
            border: 1px solid rgba(0,0,0,0.05);
            box-shadow: 0 4px 12px rgba(0,0,0,0.02);
        }
        .formula-badge {
            font-family: 'Courier New', monospace;
            background: #e9ecef;
            padding: 0.2rem 0.6rem;
            border-radius: 20px;
            font-size: 0.85rem;
        }
        .glossary-term {
            font-weight: 600;
            color: #2c7da0;
        }
        .canvas-container {
            text-align: center;
            margin-top: 1rem;
        }
        .a1c-canvas {
            width: 100%;
            max-width: 500px;
            height: auto;
            background: #fefefe;
            border-radius: 16px;
            margin-top: 0.5rem;
        }
        .legend {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin: 0.8rem 0;
        }
        .legend-color {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: inline-block;
        }
        .legend-color.normal { background-color: #28a745; }
        .legend-color.prediabetes { background-color: #ffc107; }
        .legend-color.diabetes { background-color: #dc3545; }
        .input-group-custom {
            margin-bottom: 1rem;
        }