 
        :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;
            --medical-purple: #6f42c1;
        }
         
        .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);
        }
         
        
        /* Measurement unit toggle */
        .unit-toggle {
            display: flex;
            background-color: var(--light-gray);
            border-radius: 6px;
            padding: 4px;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }
        
        .unit-btn {
            flex: 1;
            text-align: center;
            padding: 0.75rem;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 600;
            min-width: 120px;
            margin: 2px;
        }
        
        .unit-btn.active {
            background-color: var(--primary-color);
            color: white;
        }
        
        /* Result Area */
        .result-container {
            background-color: var(--light-gray);
            border-radius: 6px;
            padding: 1.5rem;
            margin-top: 1.5rem;
            position: relative;
            border: 1px solid var(--border-color);
        }
        
        .result-title {
            font-weight: 600;
            margin-bottom: 0.75rem;
            color: var(--primary-color);
        }
        
        .summary-card {
            background: white;
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            margin-bottom: 1.5rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .summary-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }
        
        .summary-label {
            color: var(--text-muted);
            font-size: 0.9rem;
        }
        
        /* Financial Summary (reused for results) */
        .financial-summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }
        
        .financial-item {
            background: white;
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .financial-item h4 {
            font-size: 1rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
        }
        
        .financial-item .value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
        }
        
        .financial-item .detail {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-top: 0.5rem;
        }
        
        /* Chart Container */
        .chart-container {
            position: relative;
            height: 400px;
            width: 100%;
            margin: 2rem 0;
        }
         
        /* Gender selection */
        .gender-selection {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }
        
        .gender-option {
            flex: 1;
            max-width: 200px;
            text-align: center;
            padding: 1rem;
            border: 2px solid var(--border-color);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .gender-option:hover {
            border-color: var(--primary-color);
            background-color: rgba(44, 125, 160, 0.05);
        }
        
        .gender-option.selected {
            border-color: var(--primary-color);
            background-color: rgba(44, 125, 160, 0.1);
        }
        
        .gender-icon {
            font-size: 2rem;
            margin-bottom: 0.5rem;
            display: block;
        }
        
        /* WHR classification */
        .whr-classification {
            padding: 1rem;
            border-radius: 8px;
            margin: 1rem 0;
            border-left: 5px solid;
        }
        
        .whr-low-risk {
            background-color: rgba(40, 167, 69, 0.1);
            border-left-color: var(--medical-green);
        }
        
        .whr-moderate-risk {
            background-color: rgba(255, 193, 7, 0.1);
            border-left-color: var(--medical-yellow);
        }
        
        .whr-high-risk {
            background-color: rgba(220, 53, 69, 0.1);
            border-left-color: var(--medical-red);
        }
        
        .whr-very-high-risk {
            background-color: rgba(108, 117, 125, 0.1);
            border-left-color: #6c757d;
        }
        
        .whr-chart-container {
            position: relative;
            height: 300px;
            width: 100%;
            margin: 1.5rem 0;
        }
        
        .whr-status-indicator {
            display: inline-block;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin-right: 8px;
        }
        
        .status-low-risk {
            background-color: var(--medical-green);
        }
        
        .status-moderate-risk {
            background-color: var(--medical-yellow);
        }
        
        .status-high-risk {
            background-color: var(--medical-orange);
        }
        
        .status-very-high-risk {
            background-color: var(--medical-red);
        }
        
        /* 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);
        }
        
        /* 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;
        }
        
        /* Comparison table */
        .comparison-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        
        .comparison-table th, .comparison-table td {
            padding: 0.75rem;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }
        
        .comparison-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        
        .comparison-table tr:hover {
            background-color: rgba(44, 125, 160, 0.05);
        }
        
        /* Medical-specific styling */
        .medical-alert {
            background-color: rgba(220, 53, 69, 0.1);
            border-left: 4px solid var(--medical-red);
            padding: 1rem;
            margin: 1rem 0;
            border-radius: 0 4px 4px 0;
        }
        
        .normal-range {
            color: var(--medical-green);
            font-weight: 600;
        }
        
        .abnormal-range {
            color: var(--medical-red);
            font-weight: 600;
        }
        
        .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);
        }
        
        /* Body shape visualization */
        .body-shape-container {
            display: flex;
            justify-content: space-around;
            align-items: flex-end;
            height: 200px;
            margin: 2rem 0;
            padding: 0 1rem;
        }
        
        .body-shape {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 150px;
        }
        
        .shape-visualization {
            width: 80px;
            border-radius: 40px 40px 20px 20px;
            margin-bottom: 1rem;
            position: relative;
        }
        
        .apple-shape {
            height: 140px;
            background: linear-gradient(to bottom, #ff9966, #ff5e62);
        }
        
        .pear-shape {
            height: 120px;
            background: linear-gradient(to bottom, #36d1dc, #5b86e5);
        }
        
        .hourglass-shape {
            height: 130px;
            background: linear-gradient(to bottom, #a8edea, #fed6e3);
        }
        
        .shape-label {
            font-weight: 600;
            text-align: center;
            margin-bottom: 0.5rem;
        }
        
        .shape-whr-range {
            font-size: 0.85rem;
            color: var(--text-muted);
            text-align: center;
        }
        
        /* Responsive body shape adjustments */
        @media (max-width: 768px) {
            .body-shape-container {
                flex-direction: column;
                height: auto;
                align-items: center;
                gap: 2rem;
            }
            
            .body-shape {
                width: 120px;
            }
        }
    