
        :root {
            --primary-color: #28a745;
            --secondary-color: #c3e6cb;
            --accent-color: #155724;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #6c757d;
            --success-color: #28a745;
            --warning-color: #ffc107;
            --danger-color: #dc3545;
            --info-color: #17a2b8;
            --health-blue: #007bff;
            --health-orange: #fd7e14;
        }
         
        
        .page-header {
            background: linear-gradient(135deg, rgba(195, 230, 203, 0.4) 0%, rgba(40, 167, 69, 0.4) 100%);
            padding: 1.5rem 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid rgba(40, 167, 69, 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);
        }
         
        /* Health Dimension Grid */
        .dimension-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }
        
        .dimension-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;
        }
        
        .dimension-score {
            font-size: 1.25rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        
        .dimension-score.excellent {
            color: var(--success-color);
        }
        
        .dimension-score.good {
            color: var(--health-blue);
        }
        
        .dimension-score.fair {
            color: var(--warning-color);
        }
        
        .dimension-score.poor {
            color: var(--danger-color);
        }
        
        .dimension-name {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-color);
        }
         
        .health-info-box {
            background-color: rgba(220, 53, 69, 0.05);
            border-left: 3px solid var(--danger-color);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
         
        /* Responsive Adjustments */
        @media (max-width: 768px) {
 
            .dimension-grid {
                grid-template-columns: 1fr;
            }
        }
        
        /* Health Score Indicators */
        .health-score-indicator {
            display: flex;
            background-color: var(--light-gray);
            border-radius: 6px;
            padding: 4px;
            margin-bottom: 1.5rem;
        }
        
        .score-bar {
            height: 10px;
            border-radius: 5px;
            margin-bottom: 0.5rem;
            background: linear-gradient(to right, #dc3545 0%, #ffc107 50%, #28a745 100%);
        }
        
        .score-labels {
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
            color: var(--text-muted);
        }
        
        /* 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(40, 167, 69, 0.05);
        }
        
        .generating-indicator {
            display: none;
            text-align: center;
            padding: 1rem;
            color: var(--text-muted);
        }
        
        /* Health-specific styles */
        .health-dimension-box {
            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);
        }
        
        .dimension-description {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            font-size: 1rem;
            color: var(--accent-color);
            margin-bottom: 0.5rem;
        }
        
        .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(40, 167, 69, 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;
        }
        
        /* 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-senior {
            background-color: rgba(108, 117, 125, 0.1);
            color: #6c757d;
        }
        
        /* 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;
        }
        
        /* Health chart styling */
        .health-chart-container {
            position: relative;
            height: 350px;
            width: 100%;
            margin: 1.5rem 0;
        }
        
        /* Health classification */
        .health-classification {
            padding: 1rem;
            border-radius: 8px;
            margin: 1rem 0;
            border-left: 5px solid;
        }
        
        .health-poor {
            background-color: rgba(220, 53, 69, 0.1);
            border-left-color: var(--danger-color);
        }
        
        .health-fair {
            background-color: rgba(255, 193, 7, 0.1);
            border-left-color: var(--warning-color);
        }
        
        .health-good {
            background-color: rgba(0, 123, 255, 0.1);
            border-left-color: var(--health-blue);
        }
        
        .health-excellent {
            background-color: rgba(40, 167, 69, 0.1);
            border-left-color: var(--success-color);
        }
        
        /* Recommendations */
        .recommendations {
            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);
        }
        
        /* Lifestyle assessment */
        .lifestyle-assessment {
            background-color: rgba(23, 162, 184, 0.05);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border: 1px solid rgba(23, 162, 184, 0.2);
        }
        
        /* Health span visualization */
        .healthspan-visualization {
            display: flex;
            height: 60px;
            border-radius: 8px;
            overflow: hidden;
            margin: 1.5rem 0;
            border: 1px solid var(--border-color);
        }
        
        .healthspan-healthy {
            background-color: var(--success-color);
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
        }
        
        .healthspan-unhealthy {
            background-color: var(--danger-color);
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
        }
        
        .healthspan-labels {
            display: flex;
            justify-content: space-between;
            margin-top: 0.5rem;
            font-size: 0.9rem;
            color: var(--text-muted);
        }
        
        /* Questionnaire styling */
        .question-item {
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--border-color);
        }
        
        .question-text {
            font-weight: 600;
            margin-bottom: 0.75rem;
        }
        
        .option-group {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        
        .option-btn {
            padding: 0.5rem 1rem;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            background-color: white;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .option-btn:hover {
            background-color: var(--light-gray);
        }
        
        .option-btn.selected {
            background-color: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
        
        /* Health dimension score */
        .dimension-score-circle {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            font-weight: 700;
            font-size: 1.5rem;
        }
        
        .score-excellent {
            background-color: rgba(40, 167, 69, 0.1);
            color: var(--success-color);
            border: 3px solid var(--success-color);
        }
        
        .score-good {
            background-color: rgba(0, 123, 255, 0.1);
            color: var(--health-blue);
            border: 3px solid var(--health-blue);
        }
        
        .score-fair {
            background-color: rgba(255, 193, 7, 0.1);
            color: var(--warning-color);
            border: 3px solid var(--warning-color);
        }
        
        .score-poor {
            background-color: rgba(220, 53, 69, 0.1);
            color: var(--danger-color);
            border: 3px solid var(--danger-color);
        }
        
        /* Tabs for health dimensions */
        .dimension-tabs {
            display: flex;
            border-bottom: 1px solid var(--border-color);
            margin-bottom: 1.5rem;
            overflow-x: auto;
        }
        
        .dimension-tab {
            padding: 0.75rem 1.5rem;
            border: none;
            background: none;
            font-weight: 600;
            color: var(--text-muted);
            border-bottom: 3px solid transparent;
            white-space: nowrap;
        }
        
        .dimension-tab:hover {
            color: var(--primary-color);
        }
        
        .dimension-tab.active {
            color: var(--primary-color);
            border-bottom: 3px solid var(--primary-color);
        }
        
        /* Progress indicators */
        .progress-container {
            margin-bottom: 1.5rem;
        }
        
        .progress-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.25rem;
        }
        
        .progress {
            height: 10px;
            border-radius: 5px;
        }
        
        /* Validation styles */
        .is-invalid {
            border-color: var(--danger-color) !important;
            box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15) !important;
        }
        
        .invalid-feedback {
            color: var(--danger-color);
            font-size: 0.875rem;
            margin-top: 0.25rem;
            display: none;
        }
        
        .is-invalid + .invalid-feedback {
            display: block;
        }
        
        /* Loading indicator */
        .loading-indicator {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(40, 167, 69, 0.3);
            border-radius: 50%;
            border-top-color: var(--primary-color);
            animation: spin 1s ease-in-out infinite;
            margin-right: 0.5rem;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* Real-time calculation indicator */
        .calculating-indicator {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: var(--primary-color);
            color: white;
            padding: 0.75rem 1.5rem;
            border-radius: 6px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
            display: none;
            z-index: 1000;
            font-weight: 600;
        }
        
        .calculating-indicator.show {
            display: flex;
            align-items: center;
        }
        
        /* Save results button */
        .save-results-btn {
            margin-top: 1rem;
        }
        
        /* Results history */
        .results-history {
            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);
            display: none;
        }
        
        .history-item {
            background-color: white;
            border-radius: 6px;
            padding: 1rem;
            margin-bottom: 0.75rem;
            border: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .history-item:last-child {
            margin-bottom: 0;
        }
        
        .history-score {
            font-weight: 700;
            color: var(--primary-color);
            font-size: 1.25rem;
        }
        
        .history-date {
            color: var(--text-muted);
            font-size: 0.85rem;
        }
    