
        :root {
            --primary-color: #2c7da0;
            --secondary-color: #a9d6e5;
            --accent-color: #01497c;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #6c757d;
            --success-color: #28a745;
            --warning-color: #ffc107;
            --medical-red: #dc3545;
            --medical-green: #198754;
            --medical-yellow: #ffc107;
            --medical-orange: #fd7e14;
            --diabetes-blue: #0d6efd;
            --diabetes-purple: #6f42c1;
        }
        
        bo 
        .page-header {
            background: linear-gradient(135deg, rgba(169, 214, 229, 0.4) 0%, rgba(44, 125, 160, 0.4) 100%);
            padding: 1.5rem 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid rgba(44, 125, 160, 0.2);
            position: relative;
            overflow: hidden;     color: var(--text-color);
        }
         
        .breadcrumb {
            background-color: transparent;
            padding: 0.5rem 0;
            margin-bottom: 0.5rem;
        }
        
        .breadcrumb-item a {
            color: var(--text-muted);
            text-decoration: none;
        }
        
        .breadcrumb-item.active {
            color: var(--text-color);
        }
         
        /* Risk Score Grid */
        .risk-score-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }
        
        .risk-score-card {
            background: white;
            border-radius: 8px;
            padding: 1.25rem;
            border: 1px solid var(--border-color);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            text-align: center;
        }
        
        .risk-score-card.active {
            border: 2px solid var(--primary-color);
            background-color: rgba(44, 125, 160, 0.05);
        }
        
        .risk-score-name {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-color);
        }
        
        .risk-score-value {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--primary-color);
        }
        
        .risk-score-desc {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-top: 0.5rem;
        }
         
        .medical-info-box {
            background-color: rgba(220, 53, 69, 0.05);
            border-left: 3px solid var(--medical-red);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
         
        /* Responsive Adjustments */
        @media (max-width: 768px) { 
            .risk-score-grid {
                grid-template-columns: 1fr;
            }
        }
        
        /* Measurement System Toggle */
        .measurement-system {
            display: flex;
            background-color: var(--light-gray);
            border-radius: 6px;
            padding: 4px;
            margin-bottom: 1.5rem;
        }
        
        .system-btn {
            flex: 1;
            text-align: center;
            padding: 0.75rem;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 600;
        }
        
        .system-btn.active {
            background-color: var(--primary-color);
            color: white;
        }
        
        /* Toast notifications */
        .toast-container {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 1050;
        }
        
        /* Action buttons */
        .action-btn {
            background-color: white;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 0.5rem 1rem;
            margin-left: 0.5rem;
            transition: all 0.3s;
            color: var(--text-color);
        }
        
        .action-btn:hover {
            background-color: var(--light-gray);
            color: var(--primary-color);
        }
        
        /* Input group styling */
        .input-group {
            margin-bottom: 1rem;
        }
        
        /* Reference table */
        .reference-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        
        .reference-table th, .reference-table td {
            padding: 0.75rem;
            text-align: left;
            border: 1px solid var(--border-color);
        }
        
        .reference-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        
        .reference-table tr:nth-child(even) {
            background-color: rgba(44, 125, 160, 0.05);
        }
        
        .generating-indicator {
            display: none;
            text-align: center;
            padding: 1rem;
            color: var(--text-muted);
        }
        
        /* Risk-specific styles */
        .risk-formula-box {
            background-color: rgba(44, 125, 160, 0.05);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border: 1px solid rgba(44, 125, 160, 0.2);
        }
        
        .formula-text {
            font-family: 'Courier New', monospace;
            font-size: 1.1rem;
            color: var(--accent-color);
            margin-bottom: 0.5rem;
        }
        
        .formula-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--primary-color);
        }
        
        .risk-applications {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }
        
        .application-card {
            background: white;
            border-radius: 8px;
            padding: 1.25rem;
            border: 1px solid var(--border-color);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .application-icon {
            width: 48px;
            height: 48px;
            border-radius: 8px;
            background-color: rgba(44, 125, 160, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
            color: var(--primary-color);
            font-size: 1.25rem;
        }
        
        .application-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-color);
        }
        
        .application-desc {
            color: var(--text-muted);
            font-size: 0.9rem;
        }
        
        /* Risk category indicators */
        .risk-category {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
            margin-right: 0.5rem;
        }
        
        .risk-low {
            background-color: rgba(40, 167, 69, 0.1);
            color: #28a745;
        }
        
        .risk-moderate {
            background-color: rgba(255, 193, 7, 0.1);
            color: #ffc107;
        }
        
        .risk-high {
            background-color: rgba(253, 126, 20, 0.1);
            color: #fd7e14;
        }
        
        .risk-very-high {
            background-color: rgba(220, 53, 69, 0.1);
            color: #dc3545;
        }
        
        /* Range slider styling */
        .form-range {
            width: 100%;
            height: 1rem;
            padding: 0;
            background-color: transparent;
            -webkit-appearance: none;
        }
        
        .form-range:focus {
            outline: none;
        }
        
        .form-range::-webkit-slider-thumb {
            width: 1rem;
            height: 1rem;
            margin-top: -0.5rem;
            background-color: var(--primary-color);
            border: 0;
            border-radius: 1rem;
            -webkit-appearance: none;
        }
        
        .form-range::-webkit-slider-runnable-track {
            width: 100%;
            height: 0.5rem;
            cursor: pointer;
            animate: 0.2s;
            background: var(--light-gray);
            border-radius: 0.5rem;
        }
        
        .slider-value {
            background-color: var(--primary-color);
            color: white;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            font-size: 0.8rem;
            margin-left: 0.5rem;
        }
        
        /* Risk chart styling */
        .risk-chart-container {
            position: relative;
            height: 350px;
            width: 100%;
            margin: 1.5rem 0;
        }
        
        /* Risk classification */
        .risk-classification {
            padding: 1rem;
            border-radius: 8px;
            margin: 1rem 0;
            border-left: 5px solid;
        }
        
        .risk-low-bg {
            background-color: rgba(40, 167, 69, 0.1);
            border-left-color: var(--medical-green);
        }
        
        .risk-moderate-bg {
            background-color: rgba(255, 193, 7, 0.1);
            border-left-color: var(--medical-yellow);
        }
        
        .risk-high-bg {
            background-color: rgba(253, 126, 20, 0.1);
            border-left-color: var(--medical-orange);
        }
        
        .risk-very-high-bg {
            background-color: rgba(220, 53, 69, 0.1);
            border-left-color: var(--medical-red);
        }
        
        /* Prevention calculator */
        .prevention-calculator {
            background-color: rgba(44, 125, 160, 0.05);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border: 1px solid rgba(44, 125, 160, 0.2);
        }
        
        /* Risk factor visualization */
        .risk-factor-item {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
            padding: 0.75rem;
            border-radius: 6px;
            background-color: var(--light-gray);
        }
        
        .risk-factor-icon {
            width: 40px;
            height: 40px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            color: white;
        }
        
        .risk-factor-name {
            font-weight: 600;
            flex-grow: 1;
        }
        
        .risk-factor-score {
            font-weight: 700;
            color: var(--primary-color);
        }
        
        /* Form radio and checkbox styling */
        .form-check-input:checked {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }
        
        .form-check-input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.25rem rgba(44, 125, 160, 0.25);
        }
        
        /* Progress bar styling */
        .progress {
            height: 1.5rem;
            border-radius: 10px;
            margin-bottom: 1rem;
        }
        
        .progress-bar {
            background-color: var(--primary-color);
        }
        
        /* Diabetes-specific colors */
        .diabetes-risk-low {
            background-color: #d4edda;
            color: #155724;
        }
        
        .diabetes-risk-moderate {
            background-color: #fff3cd;
            color: #856404;
        }
        
        .diabetes-risk-high {
            background-color: #ffe5d0;
            color: #a86405;
        }
        
        .diabetes-risk-very-high {
            background-color: #f8d7da;
            color: #721c24;
        }
        
        /* Form section styling */
        .form-section {
            margin-bottom: 2rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--border-color);
        }
        
        .form-section-title {
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--primary-color);
        }
    