: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;
            --math-color: #6f42c1;
            --calc-color: #e83e8c;
            --boy-color: #4d8fc9;
            --girl-color: #e83e8c;
            --growth-color: #2a9d8f;
        }
       .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);
        }
        .gender-selector {
            display: flex;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }
        .gender-option {
            flex: 1;
            text-align: center;
            padding: 1.5rem 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.active {
            border-color: var(--primary-color);
            background-color: rgba(44, 125, 160, 0.1);
        }
        .gender-option.boy.active {
            border-color: var(--boy-color);
            background-color: rgba(77, 143, 201, 0.1);
        }
        .gender-option.girl.active {
            border-color: var(--girl-color);
            background-color: rgba(232, 62, 140, 0.1);
        }
        .gender-icon {
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }
        .boy .gender-icon {
            color: var(--boy-color);
        }
        .girl .gender-icon {
            color: var(--girl-color);
        }
        .unit-toggle {
            display: flex;
            background-color: var(--light-gray);
            border-radius: 6px;
            padding: 4px;
            width: fit-content;
            margin-bottom: 1rem;
        }
        .unit-btn {
            padding: 0.5rem 1rem;
            border-radius: 4px;
            border: none;
            background: none;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
        }
        .unit-btn.active {
            background-color: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .age-input-container {
            display: flex;
            gap: 1rem;
            align-items: flex-end;
        }
        .age-input {
            flex: 1;
        }
        .prediction-card {
            background: white;
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            margin-bottom: 1.5rem;
            text-align: center;
        }
        .prediction-value {
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--primary-color);
            margin: 1rem 0;
        }
        .prediction-range {
            font-size: 1.1rem;
            color: var(--text-muted);
        }
        .percentile-display {
            display: inline-block;
            padding: 0.5rem 1rem;
            background-color: rgba(42, 157, 143, 0.1);
            color: var(--growth-color);
            border-radius: 20px;
            font-weight: 600;
            margin: 0.5rem 0;
        }
        .stat-card {
            background: white;
            border-radius: 8px;
            padding: 1.25rem;
            border: 1px solid var(--border-color);
            margin-bottom: 1rem;
            text-align: center;
        }
        .stat-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 0.25rem;
        }
        .stat-label {
            color: var(--text-muted);
            font-size: 0.9rem;
        }
        .growth-box {
            background-color: rgba(42, 157, 143, 0.05);
            border-left: 3px solid var(--growth-color);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
        @media (max-width: 768px) {
            .gender-selector {
                flex-direction: column;
            }
            .age-input-container {
                flex-direction: column;
                align-items: stretch;
            }
            .prediction-value {
                font-size: 2rem;
            }
        }
        .growth-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        .growth-table th, .growth-table td {
            padding: 0.75rem;
            text-align: center;
            border: 1px solid var(--border-color);
        }
        .growth-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        .growth-table tr:nth-child(even) {
            background-color: rgba(44, 125, 160, 0.05);
        }
        .bmi-indicator {
            height: 10px;
            border-radius: 5px;
            background: linear-gradient(to right, #2a9d8f, #e9c46a, #f4a261, #e76f51);
            margin: 1rem 0;
            position: relative;
        }
        .bmi-marker {
            position: absolute;
            top: -5px;
            width: 4px;
            height: 20px;
            background-color: var(--text-color);
            transform: translateX(-50%);
        }
        .bmi-labels {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-top: 0.5rem;
        }
        .percentile-curve {
            display: flex;
            align-items: center;
            margin: 0.5rem 0;
        }
        .percentile-line {
            height: 4px;
            width: 30px;
            margin-right: 0.5rem;
        }
        .percentile-3 { background-color: #e9c46a; }
        .percentile-10 { background-color: #a7c957; }
        .percentile-25 { background-color: #2a9d8f; }
        .percentile-50 { background-color: #264653; }
        .percentile-75 { background-color: #2a9d8f; }
        .percentile-90 { background-color: #a7c957; }
        .percentile-97 { background-color: #e9c46a; }
        .method-selector {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin: 1rem 0;
        }
        .method-btn {
            background-color: rgba(44, 125, 160, 0.1);
            border: 1px solid rgba(44, 125, 160, 0.2);
            border-radius: 4px;
            padding: 0.5rem 0.75rem;
            font-size: 0.9rem;
            color: var(--primary-color);
            cursor: pointer;
            transition: all 0.2s;
        }
        .method-btn:hover {
            background-color: rgba(44, 125, 160, 0.2);
        }
        .method-btn.active {
            background-color: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
        .parent-inputs {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-bottom: 1rem;
        }
        @media (max-width: 576px) {
            .parent-inputs {
                grid-template-columns: 1fr;
            }
        }
        .data-table-container {
            max-height: 400px;
            overflow-y: auto;
            margin: 1.5rem 0;
            border: 1px solid var(--border-color);
            border-radius: 8px;
        }
        .data-table {
            width: 100%;
            border-collapse: collapse;
        }
        .data-table th {
            position: sticky;
            top: 0;
            background-color: var(--primary-color);
            color: white;
            font-weight: 600;
            padding: 12px 8px;
            text-align: center;
        }
        .data-table td {
            padding: 10px 8px;
            border-bottom: 1px solid var(--border-color);
            text-align: center;
        }
        .data-table tr:nth-child(even) {
            background-color: rgba(44, 125, 160, 0.05);
        }
        .data-table tr:hover {
            background-color: rgba(44, 125, 160, 0.1);
        }
        .percentile-badge {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 0.75rem;
            font-weight: 600;
            margin: 2px;
        }
        .p3 { background-color: #e9c46a; color: #333; }
        .p10 { background-color: #a7c957; color: #333; }
        .p25 { background-color: #2a9d8f; color: white; }
        .p50 { background-color: #264653; color: white; }
        .p75 { background-color: #2a9d8f; color: white; }
        .p90 { background-color: #a7c957; color: #333; }
        .p97 { background-color: #e9c46a; color: #333; }
        .comparison-card {
            background: white;
            border-radius: 8px;
            padding: 1rem;
            border: 1px solid var(--border-color);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
        }
        .comparison-value {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-right: 1rem;
            min-width: 80px;
        }
        .comparison-label {
            flex-grow: 1;
            font-size: 0.9rem;
        }
        .comparison-diff {
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 0.8rem;
            font-weight: 600;
        }
        .diff-positive { background-color: rgba(40, 167, 69, 0.1); color: #28a745; }
        .diff-negative { background-color: rgba(220, 53, 69, 0.1); color: #dc3545; }
        .validation-info {
            background-color: rgba(40, 167, 69, 0.1);
            border-left: 3px solid #28a745;
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1rem 0;
        }
        .validation-item {
            display: flex;
            align-items: center;
            margin-bottom: 0.5rem;
        }
        .validation-icon {
            color: #28a745;
            margin-right: 0.5rem;
            width: 20px;
        }
        .loading-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(255, 255, 255, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            z-index: 10;
        }
        .spinner {
            width: 40px;
            height: 40px;
            border: 4px solid var(--border-color);
            border-top-color: var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        .accuracy-meter {
            height: 6px;
            background-color: var(--border-color);
            border-radius: 3px;
            margin: 1rem 0;
            overflow: hidden;
        }
        .accuracy-fill {
            height: 100%;
            background: linear-gradient(to right, #e9c46a, #a7c957, #2a9d8f);
            transition: width 0.5s ease;
        }
        @media (max-width: 992px) {
            .comparison-card {
                flex-wrap: wrap;
            }
            .comparison-value {
                min-width: 60px;
            }
        }
        @media print {
            .ad-container,
            .action-btn,
            }
        .confidence-badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-left: 10px;
            background-color: rgba(42, 157, 143, 0.1);
            color: var(--growth-color);
        }
        .detailed-view {
            padding: 1rem;
        }
        .percentile-bars {
            margin: 1rem 0;
        }
        .percentile-bar {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
        }
        .bar-label {
            width: 40px;
            font-weight: 600;
            text-align: right;
            padding-right: 10px;
        }
        .bar-container {
            flex-grow: 1;
            height: 20px;
            background-color: var(--light-gray);
            border-radius: 4px;
            overflow: hidden;
        }
        .bar-fill {
            height: 100%;
            background-color: var(--growth-color);
            border-radius: 4px;
        }
        .bar-value {
            width: 60px;
            text-align: right;
            padding-left: 10px;
            font-family: 'Courier New', monospace;
        }
        .highlighted-row {
            background-color: rgba(44, 125, 160, 0.2) !important;
            box-shadow: inset 0 0 0 2px var(--primary-color);
            transition: all 0.3s ease;
        }
                    h5 { color: #2c7da0; }
                    .table { width: 100%; border-collapse: collapse; margin: 15px 0; }
                    .table th, .table td { border: 1px solid #ddd; padding: 8px; text-align: left; }
                    .table th { background-color: #f8f9fa; }
                    .table-primary { background-color: rgba(44, 125, 160, 0.1); }
                    .percentile-bar { display: flex; margin-bottom: 5px; }
                    .bar-label { width: 40px; }
                    .bar-container { flex-grow: 1; height: 15px; background: #f0f0f0; }
                    .bar-fill { height: 100%; background: #2a9d8f; }
                    .bar-value { width: 60px; }
                    @media print {
                        }