        :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;
            --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);
}
 
        .page-header {
            background: linear-gradient(135deg, rgba(111, 66, 193, 0.1) 0%, rgba(44, 125, 160, 0.1) 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);
        }
         
        /* Frailty Comparison Grid */
        .frailty-comparison-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }
        
        .frailty-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;
        }
        
        .frailty-method-card.active {
            border: 2px solid var(--primary-color);
            background-color: rgba(44, 125, 160, 0.05);
        }
        
        .frailty-method-name {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-color);
        }
        
        .frailty-method-value {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        
        .frailty-method-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) {
 
            
            .frailty-comparison-grid {
                grid-template-columns: 1fr;
            }
        }
        
        /* Frailty Level Indicators */
        .frailty-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;
        }
        
        .frailty-robust {
            background-color: rgba(40, 167, 69, 0.1);
            color: var(--medical-green);
            border: 1px solid rgba(40, 167, 69, 0.3);
        }
        
        .frailty-prefrail {
            background-color: rgba(255, 193, 7, 0.1);
            color: var(--medical-yellow);
            border: 1px solid rgba(255, 193, 7, 0.3);
        }
        
        .frailty-frail {
            background-color: rgba(220, 53, 69, 0.1);
            color: var(--medical-red);
            border: 1px solid rgba(220, 53, 69, 0.3);
        }
        
        .frailty-severely-frail {
            background-color: rgba(111, 66, 193, 0.1);
            color: var(--medical-purple);
            border: 1px solid rgba(111, 66, 193, 0.3);
        }
        
        /* Deficit Checkboxes */
        .deficit-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);
        }
        
        .deficit-category {
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid rgba(44, 125, 160, 0.1);
        }
        
        .deficit-category:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }
        
        .deficit-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1rem;
            margin: 1rem 0;
        }
        
        .deficit-item {
            display: flex;
            align-items: flex-start;
            padding: 0.75rem;
            background-color: white;
            border-radius: 6px;
            border: 1px solid var(--border-color);
            transition: all 0.3s;
        }
        
        .deficit-item:hover {
            border-color: var(--primary-color);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .deficit-checkbox {
            margin-right: 1rem;
            transform: scale(1.2);
            margin-top: 0.25rem;
        }
        
        .deficit-name {
            font-weight: 500;
            margin-bottom: 0.25rem;
        }
        
        .deficit-description {
            font-size: 0.85rem;
            color: var(--text-muted);
        }
        
        /* Frailty Curve */
        .frailty-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-old {
            background-color: rgba(40, 167, 69, 0.1);
            color: #28a745;
        }
        
        .age-middle-old {
            background-color: rgba(0, 123, 255, 0.1);
            color: #007bff;
        }
        
        .age-old-old {
            background-color: rgba(108, 117, 125, 0.1);
            color: #6c757d;
        }
        
        .age-oldest-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);
        }
        
        /* Frailty interpretation */
        .frailty-interpretation {
            padding: 1rem;
            border-radius: 8px;
            margin: 1rem 0;
            border-left: 5px solid;
        }
        
        .frailty-interpretation-robust {
            background-color: rgba(40, 167, 69, 0.1);
            border-left-color: var(--medical-green);
        }
        
        .frailty-interpretation-prefrail {
            background-color: rgba(255, 193, 7, 0.1);
            border-left-color: var(--medical-yellow);
        }
        
        .frailty-interpretation-frail {
            background-color: rgba(253, 126, 20, 0.1);
            border-left-color: var(--medical-orange);
        }
        
        .frailty-interpretation-severely-frail {
            background-color: rgba(220, 53, 69, 0.1);
            border-left-color: var(--medical-red);
        }
        
        /* Progress bars for deficits */
        .deficit-progress-container {
            margin: 1.5rem 0;
        }
        
        .deficit-progress {
            margin-bottom: 1rem;
        }
        
        .deficit-progress-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.25rem;
        }
        
        /* Clinical recommendations */
        .recommendations-box {
            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;
        }
        
        /* Print styles */
        @media print {
            .navbar, .page-header, .action-buttons, .ad-container, 
            .related-tools, .footer, .btn, .tool-header, 
            .deficit-section, .faq-section {
                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, .frailty-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;
            }
        }
        
        /* Toggle sections */
        .category-toggle {
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            padding: 0.75rem;
            background-color: rgba(44, 125, 160, 0.05);
            border-radius: 6px;
            margin-bottom: 1rem;
            transition: all 0.3s;
        }
        
        .category-toggle:hover {
            background-color: rgba(44, 125, 160, 0.1);
        }
        
        .category-toggle.active {
            background-color: rgba(44, 125, 160, 0.15);
        }
        
        .category-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
        }
        
        .category-content.expanded {
            max-height: 2000px;
        }
        
        /* Risk indicators */
        .risk-indicator {
            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;
        }
        
        /* Score breakdown */
        .score-breakdown {
            background-color: rgba(44, 125, 160, 0.05);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
        }
    