        :root { 
            --accent-color: #01497c;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #6c757d;
            --success-color: #28a745;
            --warning-color: #ffc107;
            --danger-color: #dc3545;
            --medical-green: #198754;
            --medical-yellow: #ffc107;
            --medical-orange: #fd7e14;
            --medical-red: #dc3545;
            --medical-purple: #6f42c1;
            --medical-blue: #0d6efd;
        }
        
   .bsa-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);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.application-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-color: var(--nutrition-blue);
}

.application-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(44, 125, 160, 0.1) 0%, rgba(44, 125, 160, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.application-icon i {
    transition: transform 0.3s ease;
}

.application-card:hover .application-icon i {
    transform: scale(1.1);
}

.application-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.3;
}

.application-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
}

 
.application-card.medical {
    border-top: 3px solid var(--medical-red);
}

.application-card.medical .application-icon {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.2) 100%);
    color: var(--medical-red);
}

.application-card.nutrition {
    border-top: 3px solid var(--nutrition-green);
}

.application-card.nutrition .application-icon {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.1) 0%, rgba(46, 125, 50, 0.2) 100%);
    color: var(--nutrition-green);
}

.application-card.cardiac {
    border-top: 3px solid var(--nutrition-blue);
}

.application-card.cardiac .application-icon {
    background: linear-gradient(135deg, rgba(25, 118, 210, 0.1) 0%, rgba(25, 118, 210, 0.2) 100%);
    color: var(--nutrition-blue);
}

.application-card.renal {
    border-top: 3px solid var(--medical-orange);
}

.application-card.renal .application-icon {
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.1) 0%, rgba(253, 126, 20, 0.2) 100%);
    color: var(--medical-orange);
} 
        /* Risk Comparison Grid */
        .risk-comparison-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }
        
        .risk-method-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-method-card.active {
            border: 2px solid var(--primary-color);
            background-color: rgba(44, 125, 160, 0.05);
        }
        
        .risk-method-name {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-color);
        }
        
        .risk-method-value {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        
        .risk-method-desc {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-top: 0.5rem;
        }
         
        /* Responsive Adjustments */
        @media (max-width: 768px) { 
            .risk-comparison-grid {
                grid-template-columns: 1fr;
            }
        }
        
        /* Risk Level Indicators */
        .risk-level-indicator {
            display: inline-block;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
            margin-right: 0.5rem;
            text-align: center;
        }
        
        .risk-low {
            background-color: rgba(40, 167, 69, 0.1);
            color: var(--medical-green);
            border: 1px solid rgba(40, 167, 69, 0.3);
        }
        
        .risk-moderate {
            background-color: rgba(255, 193, 7, 0.1);
            color: var(--medical-yellow);
            border: 1px solid rgba(255, 193, 7, 0.3);
        }
        
        .risk-high {
            background-color: rgba(253, 126, 20, 0.1);
            color: var(--medical-orange);
            border: 1px solid rgba(253, 126, 20, 0.3);
        }
        
        .risk-very-high {
            background-color: rgba(220, 53, 69, 0.1);
            color: var(--medical-red);
            border: 1px solid rgba(220, 53, 69, 0.3);
        }
        
        /* Comorbidity Checkboxes */
        .comorbidity-section {
            background-color: rgba(44, 125, 160, 0.03);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border: 1px solid rgba(44, 125, 160, 0.1);
        }
        
        .comorbidity-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1rem;
            margin: 1rem 0;
        }
        
        .comorbidity-item {
            display: flex;
            align-items: center;
            padding: 0.75rem;
            background-color: white;
            border-radius: 6px;
            border: 1px solid var(--border-color);
            transition: all 0.3s;
        }
        
        .comorbidity-item:hover {
            border-color: var(--primary-color);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .comorbidity-checkbox {
            margin-right: 1rem;
            transform: scale(1.2);
        }
        
        .comorbidity-name {
            font-weight: 500;
            margin-bottom: 0.25rem;
        }
        
        .comorbidity-weight {
            font-size: 0.85rem;
            color: var(--medical-red);
            font-weight: 600;
        }
        
        /* Survival Curve */
        .survival-curve-container {
            position: relative;
            height: 350px;
            width: 100%;
            margin: 1.5rem 0;
        }
        
        /* 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-young {
            background-color: rgba(40, 167, 69, 0.1);
            color: #28a745;
        }
        
        .age-middle {
            background-color: rgba(0, 123, 255, 0.1);
            color: #007bff;
        }
        
        .age-elderly {
            background-color: rgba(108, 117, 125, 0.1);
            color: #6c757d;
        }
        
        .age-old {
            background-color: rgba(220, 53, 69, 0.1);
            color: #dc3545;
        }
        
        /* 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);
        }
        
        /* Risk reduction calculator */
        .risk-reduction-calc {
            background-color: rgba(40, 167, 69, 0.05);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border: 1px solid rgba(40, 167, 69, 0.2);
        }
        
        /* 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);
        }
        
        /* 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;
        }
        
        /* Toggle switch */
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 30px;
            margin-right: 10px;
        }
        
        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 30px;
        }
        
        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 22px;
            width: 22px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        
        input:checked + .toggle-slider {
            background-color: var(--primary-color);
        }
        
        input:checked + .toggle-slider:before {
            transform: translateX(30px);
        }
        
        /* Risk interpretation */
        .risk-interpretation {
            padding: 1rem;
            border-radius: 8px;
            margin: 1rem 0;
            border-left: 5px solid;
        }
        
        .risk-interpretation-low {
            background-color: rgba(40, 167, 69, 0.1);
            border-left-color: var(--medical-green);
        }
        
        .risk-interpretation-moderate {
            background-color: rgba(255, 193, 7, 0.1);
            border-left-color: var(--medical-yellow);
        }
        
        .risk-interpretation-high {
            background-color: rgba(253, 126, 20, 0.1);
            border-left-color: var(--medical-orange);
        }
        
        .risk-interpretation-very-high {
            background-color: rgba(220, 53, 69, 0.1);
            border-left-color: var(--medical-red);
        }
        
        /* Print styles */
        @media print {
            .navbar, .page-header, .action-buttons, .ad-container, 
            .related-tools, .footer, .btn, .tool-header, 
            .comorbidity-section, #riskReductionCalc, .faq-section,
            #shareSection, #exportSection {
                display: none !important;
            }
            
            .tool-card, .result-container, .summary-card {
                border: none;
                box-shadow: none;
                padding: 0;
                margin: 0;
            }
            
            .container {
                max-width: 100%;
                padding: 0;
            }
            
            .result-container {
                break-inside: avoid;
                page-break-inside: avoid;
            }
            
            .chart-container, .survival-curve-container {
                height: 250px;
                page-break-inside: avoid;
            }
            
            body {
                font-size: 12pt;
            }
            
            .summary-value {
                font-size: 1.5rem;
            }
            
            h1, h2, h3, h4, h5, h6 {
                page-break-after: avoid;
            }
        }
        
        /* Enhanced risk factors */
        .enhanced-factor {
            background-color: rgba(111, 66, 193, 0.05);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border: 1px solid rgba(111, 66, 193, 0.2);
        }
        
        /* Ethnicity adjustments */
        .ethnicity-note {
            background-color: rgba(13, 110, 253, 0.05);
            border-left: 3px solid var(--medical-blue);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1rem 0;
        }
        
        /* Advanced options */
        .advanced-options {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
        }
        
        .advanced-options.expanded {
            max-height: 500px;
        }
        
        /* Export section */
        .export-section {
            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);
        }
        
        /* Case examples */
        .case-example {
            background-color: rgba(255, 193, 7, 0.05);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border: 1px solid rgba(255, 193, 7, 0.2);
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .case-example:hover {
            background-color: rgba(255, 193, 7, 0.1);
        }
        
        /* References section */
        .reference-item {
            padding: 0.5rem 0;
            border-bottom: 1px solid var(--border-color);
        }
        
        .reference-item:last-child {
            border-bottom: none;
        }
        
        /* Tooltip styling */
        .tooltip-inner {
            max-width: 300px;
            padding: 0.75rem;
            text-align: left;
        }
    