        :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;
            --heart-color: #e63946;
            --heart-light: #ffccd5;
        }
         
        .page-header {
            background: linear-gradient(135deg, rgba(255, 204, 213, 0.4) 0%, rgba(230, 57, 70, 0.4) 100%);
            padding: 1.5rem 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid rgba(230, 57, 70, 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);
        }
         
        .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;
        }
         
        
        /* 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(230, 57, 70, 0.05);
        }
        
        .generating-indicator {
            display: none;
            text-align: center;
            padding: 1rem;
            color: var(--text-muted);
        }
        
        /* Age category indicators */
        .age-category {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
            margin-right: 0.5rem;
        }
        
        .age-child {
            background-color: rgba(40, 167, 69, 0.1);
            color: #28a745;
        }
        
        .age-adult {
            background-color: rgba(0, 123, 255, 0.1);
            color: #007bff;
        }
        
        .age-elderly {
            background-color: rgba(108, 117, 125, 0.1);
            color: #6c757d;
        }
        
        /* Chart styling */
        .chart-container {
            position: relative;
            height: 400px;
            width: 100%;
            margin: 2rem 0;
        }
        
        /* Heart Age Specific Styles */
        .heart-age-result {
            background: linear-gradient(135deg, rgba(255, 204, 213, 0.4) 0%, rgba(230, 57, 70, 0.4) 100%);
            border-radius: 12px;
            padding: 2rem;
            text-align: center;
            margin: 2rem 0;
            border: 1px solid rgba(230, 57, 70, 0.2);
        }
        
        .heart-age-value {
            font-size: 4rem;
            font-weight: 800;
            color: var(--heart-color);
            margin: 1rem 0;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
        }
        
        .age-comparison {
            font-size: 1.25rem;
            margin-bottom: 1rem;
            color: var(--text-color);
        }
        
        .heart-age-gauge {
            position: relative;
            width: 200px;
            height: 100px;
            margin: 2rem auto;
        }
        
        .gauge-background {
            width: 200px;
            height: 100px;
            border-radius: 100px 100px 0 0;
            background: #e9ecef;
            overflow: hidden;
            position: relative;
        }
        
        .gauge-fill {
            position: absolute;
            width: 200px;
            height: 100px;
            border-radius: 100px 100px 0 0;
            background: linear-gradient(90deg, #28a745 0%, #ffc107 50%, #dc3545 100%);
            transform-origin: center bottom;
            transform: rotate(0deg);
            transition: transform 1s ease;
        }
        
        .gauge-needle {
            position: absolute;
            width: 4px;
            height: 90px;
            background: var(--text-color);
            bottom: 0;
            left: 50%;
            transform-origin: bottom center;
            transform: translateX(-50%) rotate(0deg);
            transition: transform 1s ease;
            z-index: 10;
        }
        
        .gauge-labels {
            display: flex;
            justify-content: space-between;
            width: 200px;
            margin-top: 0.5rem;
            font-size: 0.8rem;
            color: var(--text-muted);
        }
        
        .heart-age-interpretation {
            padding: 1.5rem;
            border-radius: 8px;
            margin: 1.5rem 0;
            border-left: 5px solid;
        }
        
        .heart-age-young {
            background-color: rgba(40, 167, 69, 0.1);
            border-left-color: var(--medical-green);
        }
        
        .heart-age-normal {
            background-color: rgba(255, 193, 7, 0.1);
            border-left-color: var(--medical-yellow);
        }
        
        .heart-age-old {
            background-color: rgba(220, 53, 69, 0.1);
            border-left-color: var(--medical-red);
        }
        
        .risk-factor-card {
            background-color: rgba(230, 57, 70, 0.05);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border: 1px solid rgba(230, 57, 70, 0.2);
        }
        
        .risk-factor-item {
            display: flex;
            margin-bottom: 1.5rem;
            align-items: center;
            padding: 1rem;
            background-color: white;
            border-radius: 8px;
            border: 1px solid var(--border-color);
        }
        
        .risk-factor-icon {
            width: 60px;
            height: 60px;
            border-radius: 8px;
            background-color: rgba(230, 57, 70, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1.5rem;
            color: var(--heart-color);
            font-size: 1.5rem;
            flex-shrink: 0;
        }
        
        .risk-factor-content {
            flex: 1;
        }
        
        .risk-factor-name {
            font-weight: 600;
            margin-bottom: 0.25rem;
            color: var(--heart-color);
        }
        
        .risk-factor-score {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--text-color);
            margin-right: 1rem;
        }
        
        .form-check-input:checked {
            background-color: var(--heart-color);
            border-color: var(--heart-color);
        }
        
        .form-check-input:focus {
            border-color: var(--heart-color);
            box-shadow: 0 0 0 0.25rem rgba(230, 57, 70, 0.25);
        }
        
        .form-range::-webkit-slider-thumb {
            background-color: var(--heart-color);
        }
        
        .form-range::-webkit-slider-thumb:active {
            background-color: #c1121f;
        }
        
        .form-range::-moz-range-thumb {
            background-color: var(--heart-color);
        }
        
        .form-range::-moz-range-thumb:active {
            background-color: #c1121f;
        }
        
        .risk-indicator {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
            margin-left: 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(220, 53, 69, 0.1);
            color: #dc3545;
        }
        
        .risk-very-high {
            background-color: rgba(108, 117, 125, 0.1);
            color: #6c757d;
        }
        
        .recommendation-card {
            background-color: white;
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            margin-bottom: 1rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .recommendation-icon {
            width: 48px;
            height: 48px;
            border-radius: 8px;
            background-color: rgba(230, 57, 70, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            color: var(--heart-color);
            font-size: 1.25rem;
        }
        
        .heart-age-chart {
            position: relative;
            height: 350px;
            width: 100%;
            margin: 1.5rem 0;
        }
        
        .heart-health-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(230, 57, 70, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
            color: var(--heart-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;
        }
        
        .faq-section {
            margin-top: 2rem;
        }
        
        .accordion-button:not(.collapsed) {
            background-color: rgba(230, 57, 70, 0.1);
            color: var(--heart-color);
        }
        
        @media (max-width: 768px) {
            .heart-age-value {
                font-size: 3rem;
            }
            
            .heart-health-applications {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            }
        }
        
        @media (max-width: 576px) {
            .risk-factor-item {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .risk-factor-icon {
                margin-right: 0;
                margin-bottom: 1rem;
            }
            
            .heart-health-applications {
                grid-template-columns: 1fr;
            }
        }
        
        /* Slider value display */
        .slider-value {
            background-color: var(--heart-color);
            color: white;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            font-size: 0.8rem;
            margin-left: 0.5rem;
        }
        
        /* Blood pressure classification */
        .bp-classification {
            padding: 0.5rem;
            border-radius: 6px;
            margin: 0.5rem 0;
            font-size: 0.85rem;
            text-align: center;
        }
        
        .bp-normal {
            background-color: rgba(40, 167, 69, 0.1);
            color: #28a745;
        }
        
        .bp-elevated {
            background-color: rgba(255, 193, 7, 0.1);
            color: #ffc107;
        }
        
        .bp-hypertension1 {
            background-color: rgba(253, 126, 20, 0.1);
            color: #fd7e14;
        }
        
        .bp-hypertension2 {
            background-color: rgba(220, 53, 69, 0.1);
            color: #dc3545;
        }
        
        .bp-crisis {
            background-color: rgba(108, 117, 125, 0.1);
            color: #6c757d;
        }
        
        /* Cholesterol classification */
        .chol-classification {
            padding: 0.5rem;
            border-radius: 6px;
            margin: 0.5rem 0;
            font-size: 0.85rem;
            text-align: center;
        }
        
        .chol-desirable {
            background-color: rgba(40, 167, 69, 0.1);
            color: #28a745;
        }
        
        .chol-borderline {
            background-color: rgba(255, 193, 7, 0.1);
            color: #ffc107;
        }
        
        .chol-high {
            background-color: rgba(220, 53, 69, 0.1);
            color: #dc3545;
        }
        
        /* BMI classification */
        .bmi-classification {
            padding: 0.5rem;
            border-radius: 6px;
            margin: 0.5rem 0;
            font-size: 0.85rem;
            text-align: center;
        }
        
        .bmi-underweight {
            background-color: rgba(0, 123, 255, 0.1);
            color: #007bff;
        }
        
        .bmi-normal {
            background-color: rgba(40, 167, 69, 0.1);
            color: #28a745;
        }
        
        .bmi-overweight {
            background-color: rgba(255, 193, 7, 0.1);
            color: #ffc107;
        }
        
        .bmi-obese1 {
            background-color: rgba(253, 126, 20, 0.1);
            color: #fd7e14;
        }
        
        .bmi-obese2 {
            background-color: rgba(220, 53, 69, 0.1);
            color: #dc3545;
        }
        
        .bmi-obese3 {
            background-color: rgba(108, 117, 125, 0.1);
            color: #6c757d;
        }
        
        /* Heart rate zones */
        .hr-zone {
            padding: 0.5rem;
            border-radius: 6px;
            margin: 0.5rem 0;
            font-size: 0.85rem;
            text-align: center;
        }
        
        .hr-resting {
            background-color: rgba(40, 167, 69, 0.1);
            color: #28a745;
        }
        
        .hr-moderate {
            background-color: rgba(255, 193, 7, 0.1);
            color: #ffc107;
        }
        
        .hr-elevated {
            background-color: rgba(220, 53, 69, 0.1);
            color: #dc3545;
        }
        
        /* Interactive heart visualization */
        .heart-visualization {
            width: 200px;
            height: 200px;
            margin: 2rem auto;
            position: relative;
        }
        
        .heart-svg {
            width: 100%;
            height: 100%;
            fill: var(--heart-light);
            stroke: var(--heart-color);
            stroke-width: 2;
        }
        
        .heart-pulse {
            animation: heartbeat 1.5s ease-in-out infinite;
        }
        
        @keyframes heartbeat {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
    