        :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;
            --fitness-green: #198754;
            --fitness-blue: #0d6efd;
            --fitness-orange: #fd7e14;
            --fitness-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);
        }
          
        
        .fitness-info-box {
            background-color: rgba(25, 135, 84, 0.05);
            border-left: 3px solid var(--fitness-green);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
        
         
 
        /* Toggle switch for calculation modes */
        .calculation-modes {
            display: flex;
            background-color: var(--light-gray);
            border-radius: 6px;
            padding: 4px;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }
        
        .mode-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;
        }
        
        .mode-btn.active {
            background-color: var(--primary-color);
            color: white;
        }
        
        /* 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;
        }
        
        /* Input group styling */
        .input-group {
            margin-bottom: 1rem;
        }
        
        /* 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);
        }
        
        /* Fitness-specific styling */
        .fitness-alert {
            background-color: rgba(25, 135, 84, 0.1);
            border-left: 4px solid var(--fitness-green);
            padding: 1rem;
            margin: 1rem 0;
            border-radius: 0 4px 4px 0;
        }
        
        .good-result {
            color: var(--fitness-green);
            font-weight: 600;
        }
        
        .average-result {
            color: var(--fitness-blue);
            font-weight: 600;
        }
        
        .needs-improvement {
            color: var(--fitness-orange);
            font-weight: 600;
        }
        
        .poor-result {
            color: #dc3545;
            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);
        }
        
        /* Metabolic age specific styles */
        .metabolic-age-result {
            text-align: center;
            padding: 2rem;
            border-radius: 8px;
            margin: 1.5rem 0;
            border: 1px solid var(--border-color);
            background-color: white;
        }
        
        .age-comparison {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 1.5rem 0;
        }
        
        .age-box {
            padding: 1.5rem;
            border-radius: 8px;
            margin: 0 1rem;
            min-width: 150px;
            text-align: center;
        }
        
        .chronological-age {
            background-color: rgba(13, 110, 253, 0.1);
            border: 2px solid var(--fitness-blue);
        }
        
        .metabolic-age {
            background-color: rgba(25, 135, 84, 0.1);
            border: 2px solid var(--fitness-green);
        }
        
        .age-difference {
            font-size: 2rem;
            font-weight: 700;
            color: var(--primary-color);
            margin: 0.5rem 0;
        }
        
        .age-label {
            font-size: 0.9rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .arrow-icon {
            font-size: 2rem;
            color: var(--primary-color);
        }
        
        .metabolic-status {
            padding: 1rem;
            border-radius: 8px;
            margin: 1rem 0;
            border-left: 5px solid;
        }
        
        .status-younger {
            background-color: rgba(25, 135, 84, 0.1);
            border-left-color: var(--fitness-green);
        }
        
        .status-same {
            background-color: rgba(13, 110, 253, 0.1);
            border-left-color: var(--fitness-blue);
        }
        
        .status-older {
            background-color: rgba(220, 53, 69, 0.1);
            border-left-color: #dc3545;
        }
        
        .metric-indicator {
            display: inline-block;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin-right: 8px;
        }
        
        .metric-excellent {
            background-color: var(--fitness-green);
        }
        
        .metric-good {
            background-color: #0dcaf0;
        }
        
        .metric-fair {
            background-color: var(--fitness-orange);
        }
        
        .metric-poor {
            background-color: #dc3545;
        }
        
        .progress-container {
            margin: 1rem 0;
        }
        
        .progress-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.25rem;
        }
        
        .progress-bar {
            height: 10px;
            border-radius: 5px;
            background-color: #e9ecef;
            overflow: hidden;
        }
        
        .progress-fill {
            height: 100%;
            border-radius: 5px;
            transition: width 0.5s ease-in-out;
        }
        
        /* BMR calculation display */
        .bmr-display {
            background-color: rgba(111, 66, 193, 0.1);
            border-left: 3px solid var(--fitness-purple);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1rem 0;
        }
        
        .unit-toggle {
            display: flex;
            background-color: var(--light-gray);
            border-radius: 6px;
            padding: 4px;
            margin-bottom: 1rem;
            width: fit-content;
        }
        
        .unit-btn {
            padding: 0.5rem 1rem;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
            font-size: 0.9rem;
        }
        
        .unit-btn.active {
            background-color: var(--primary-color);
            color: white;
        }
        
        /* Enhanced disclaimer styling */
        .disclaimer-alert {
            background-color: rgba(220, 53, 69, 0.1);
            border-left: 4px solid #dc3545;
            padding: 1.25rem;
            margin: 1.5rem 0;
            border-radius: 0 8px 8px 0;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .disclaimer-alert strong {
            color: #dc3545;
        }
        
        .disclaimer-alert ul {
            margin-top: 0.5rem;
            margin-bottom: 0;
            padding-left: 1.5rem;
        }
        
        .disclaimer-alert li {
            margin-bottom: 0.25rem;
        }
        
        /* Recalculate button styling */
        .btn-warning {
            background-color: #fd7e14;
            border-color: #fd7e14;
            color: white;
            font-weight: 600;
        }
        
        .btn-warning:hover {
            background-color: #e56a00;
            border-color: #e56a00;
        }
        
        /* Result range indicator */
        .range-indicator {
            display: flex;
            align-items: center;
            margin: 1rem 0;
            padding: 0.75rem;
            background-color: #f8f9fa;
            border-radius: 6px;
            border: 1px solid #dee2e6;
        }
        
        .range-label {
            font-weight: 600;
            margin-right: 1rem;
            min-width: 120px;
        }
        
        .range-bar {
            flex-grow: 1;
            height: 20px;
            background: linear-gradient(to right, #198754, #0dcaf0, #fd7e14, #dc3545);
            border-radius: 10px;
            position: relative;
            overflow: hidden;
        }
        
        .range-marker {
            position: absolute;
            top: -2px;
            width: 4px;
            height: 24px;
            background-color: #333;
            transform: translateX(-50%);
        }
        
        .range-values {
            display: flex;
            justify-content: space-between;
            margin-top: 0.25rem;
            font-size: 0.85rem;
            color: #6c757d;
        }
        
        /* Enhanced tooltip */
        .tooltip-container {
            position: relative;
            display: inline-block;
            margin-left: 0.5rem;
        }
        
        .tooltip-icon {
            color: #6c757d;
            cursor: help;
        }
        
        .tooltip-text {
            visibility: hidden;
            width: 300px;
            background-color: #333;
            color: #fff;
            text-align: center;
            border-radius: 6px;
            padding: 0.5rem;
            position: absolute;
            z-index: 1;
            bottom: 125%;
            left: 50%;
            transform: translateX(-50%);
            opacity: 0;
            transition: opacity 0.3s;
            font-size: 0.9rem;
            font-weight: normal;
        }
        
        .tooltip-container:hover .tooltip-text {
            visibility: visible;
            opacity: 1;
        }
        
        /* Estimation accuracy info */
        .accuracy-info {
            background-color: rgba(13, 110, 253, 0.1);
            border-left: 3px solid #0d6efd;
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1rem 0;
            font-size: 0.9rem;
        }
        
        /* Result confidence indicator */
        .confidence-indicator {
            display: flex;
            align-items: center;
            margin: 1rem 0;
            padding: 0.75rem;
            background-color: #f8f9fa;
            border-radius: 6px;
            border: 1px solid #dee2e6;
        }
        
        .confidence-dots {
            display: flex;
            margin-left: 1rem;
        }
        
        .confidence-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: #dee2e6;
            margin-right: 6px;
        }
        
        .confidence-dot.active {
            background-color: var(--primary-color);
        }
        
        .accuracy-note {
            font-size: 0.85rem;
            color: #6c757d;
            margin-top: 0.5rem;
            padding: 0.5rem;
            border-top: 1px solid #dee2e6;
        }
        
        /* Age range display */
        .age-range-display {
            display: flex;
            justify-content: space-around;
            margin: 1.5rem 0;
            text-align: center;
        }
        
        .range-item {
            padding: 1rem;
            border-radius: 8px;
            min-width: 120px;
        }
        
        .range-min {
            background-color: rgba(25, 135, 84, 0.1);
            border: 1px solid rgba(25, 135, 84, 0.3);
        }
        
        .range-max {
            background-color: rgba(220, 53, 69, 0.1);
            border: 1px solid rgba(220, 53, 69, 0.3);
        }
        
        .range-estimate {
            background-color: rgba(13, 110, 253, 0.1);
            border: 2px solid rgba(13, 110, 253, 0.5);
        }
    