        :root {
            --primary-color: #9c27b0;
            --secondary-color: #e1bee7;
            --accent-color: #6a1b9a;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #6c757d;
            --success-color: #28a745;
            --warning-color: #ffc107;
            --pregnancy-pink: #e91e63;
            --pregnancy-purple: #9c27b0;
            --pregnancy-teal: #009688;
            --pregnancy-blue: #2196f3;
        }
         
        
        .page-header {
            background: linear-gradient(135deg, rgba(225, 190, 231, 0.4) 0%, rgba(156, 39, 176, 0.4) 100%);
            padding: 1.5rem 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid rgba(156, 39, 176, 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);
        }
         
        /* Pregnancy-specific styles */
        .pregnancy-info-box {
            background-color: rgba(156, 39, 176, 0.05);
            border-left: 3px solid var(--pregnancy-purple);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
        
        .pregnancy-alert {
            background-color: rgba(233, 30, 99, 0.1);
            border-left: 4px solid var(--pregnancy-pink);
            padding: 1rem;
            margin: 1rem 0;
            border-radius: 0 4px 4px 0;
        }
        
        .bmi-status {
            padding: 1rem;
            border-radius: 8px;
            margin: 1rem 0;
            border-left: 5px solid;
        }
        
        .bmi-underweight {
            background-color: rgba(33, 150, 243, 0.1);
            border-left-color: var(--pregnancy-blue);
        }
        
        .bmi-normal {
            background-color: rgba(40, 167, 69, 0.1);
            border-left-color: var(--success-color);
        }
        
        .bmi-overweight {
            background-color: rgba(255, 193, 7, 0.1);
            border-left-color: var(--warning-color);
        }
        
        .bmi-obese {
            background-color: rgba(233, 30, 99, 0.1);
            border-left-color: var(--pregnancy-pink);
        }
        
        .trimester-box {
            background-color: 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);
        }
        
        .trimester-header {
            font-weight: 600;
            color: var(--pregnancy-purple);
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border-color);
        }
        
        .weight-gain-summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }
        
        .weight-gain-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);
        }
        
        .weight-gain-item h4 {
            font-size: 1rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
        }
        
        .weight-gain-item .value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
        }
        
        .weight-gain-item .detail {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-top: 0.5rem;
        }
        
        .pregnancy-chart-container {
            position: relative;
            height: 400px;
            width: 100%;
            margin: 1.5rem 0;
        }
        
        .pregnancy-timeline {
            display: flex;
            justify-content: space-between;
            margin: 2rem 0;
            position: relative;
        }
        
        .pregnancy-timeline::before {
            content: '';
            position: absolute;
            top: 15px;
            left: 0;
            right: 0;
            height: 2px;
            background-color: var(--pregnancy-purple);
            z-index: 1;
        }
        
        .timeline-point {
            text-align: center;
            position: relative;
            z-index: 2;
        }
        
        .timeline-point .point {
            width: 30px;
            height: 30px;
            background-color: white;
            border: 3px solid var(--pregnancy-purple);
            border-radius: 50%;
            margin: 0 auto 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--pregnancy-purple);
            font-weight: bold;
        }
        
        .timeline-point.active .point {
            background-color: var(--pregnancy-purple);
            color: white;
        }
        
        .timeline-label {
            font-size: 0.85rem;
            color: var(--text-muted);
        }
         
        /* Responsive Adjustments */
        @media (max-width: 768px) {
 
            .weight-gain-summary {
                grid-template-columns: 1fr;
            }
            
            .pregnancy-timeline {
                flex-wrap: wrap;
            }
            
            .timeline-point {
                width: 25%;
                margin-bottom: 1.5rem;
            }
        }
         
        
        /* 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;
        }
        
        /* 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(156, 39, 176, 0.05);
        }
        
        .generating-indicator {
            display: none;
            text-align: center;
            padding: 1rem;
            color: var(--text-muted);
        }
        
        /* Weight distribution visualization */
        .weight-distribution {
            display: flex;
            margin: 1.5rem 0;
            border-radius: 8px;
            overflow: hidden;
            height: 40px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .weight-part {
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 0.85rem;
        }
        
        .weight-part.baby {
            background-color: #ff9800;
        }
        
        .weight-part.placenta {
            background-color: #4caf50;
        }
        
        .weight-part.fluid {
            background-color: #2196f3;
        }
        
        .weight-part.uterus {
            background-color: #9c27b0;
        }
        
        .weight-part.breasts {
            background-color: #e91e63;
        }
        
        .weight-part.blood {
            background-color: #f44336;
        }
        
        .weight-part.maternal {
            background-color: #795548;
        }
        
        /* Pregnancy progress bar */
        .pregnancy-progress {
            height: 20px;
            background-color: #f0f0f0;
            border-radius: 10px;
            margin: 1.5rem 0;
            overflow: hidden;
            position: relative;
        }
        
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #e1bee7, #9c27b0);
            border-radius: 10px;
            transition: width 0.5s ease;
        }
        
        .progress-label {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-color);
            font-weight: 600;
            font-size: 0.9rem;
        }
    