
        :root {
            --primary-color: #8a4baf;
            --secondary-color: #e6d4f0;
            --accent-color: #6a1b9a;
            --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;
            --postpartum-purple: #8a4baf;
            --postpartum-pink: #e83e8c;
            --postpartum-blue: #17a2b8;
            --cultural-gold: #ffd700;
        }
         
        .page-header {
            background: linear-gradient(135deg, rgba(230, 212, 240, 0.6) 0%, rgba(138, 75, 175, 0.4) 100%);
            padding: 1.5rem 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid rgba(138, 75, 175, 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);
        }
         
        /* Recovery Phase Cards */
        .recovery-phase-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }
        
        .phase-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;
            transition: all 0.3s;
        }
        
        .phase-card.active {
            border: 2px solid var(--primary-color);
            background-color: rgba(138, 75, 175, 0.05);
        }
        
        .phase-card.completed {
            background-color: rgba(40, 167, 69, 0.05);
            border-color: rgba(40, 167, 69, 0.5);
        }
        
        .phase-card.upcoming {
            background-color: rgba(255, 193, 7, 0.05);
            border-color: rgba(255, 193, 7, 0.5);
        }
        
        .phase-name {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-color);
        }
        
        .phase-duration {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-top: 0.5rem;
        }
         
        .cultural-box {
            background-color: rgba(255, 215, 0, 0.05);
            border-left: 3px solid var(--cultural-gold);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
        
        .medical-info-box {
            background-color: rgba(220, 53, 69, 0.05);
            border-left: 3px solid var(--medical-red);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        } 
        /* Responsive Adjustments */
        @media (max-width: 768px) {
 
            .recovery-phase-grid {
                grid-template-columns: 1fr;
            }
        }
        
        /* Delivery Type Selection */
        .delivery-type {
            display: flex;
            background-color: var(--light-gray);
            border-radius: 6px;
            padding: 4px;
            margin-bottom: 1.5rem;
        }
        
        .type-btn {
            flex: 1;
            text-align: center;
            padding: 0.75rem;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 600;
        }
        
        .type-btn.active {
            background-color: var(--primary-color);
            color: white;
        }
       
        /* 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(138, 75, 175, 0.05);
        }
        
        .generating-indicator {
            display: none;
            text-align: center;
            padding: 1rem;
            color: var(--text-muted);
        }
        
        /* Postpartum-specific styles */
        .milestone-box {
            background-color: rgba(138, 75, 175, 0.05);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border: 1px solid rgba(138, 75, 175, 0.2);
        }
        
        .milestone-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--primary-color);
        }
        
        .postpartum-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(138, 75, 175, 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;
        }
        
        /* Recovery stage indicators */
        .recovery-stage {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
            margin-right: 0.5rem;
        }
        
        .stage-immediate {
            background-color: rgba(220, 53, 69, 0.1);
            color: #dc3545;
        }
        
        .stage-early {
            background-color: rgba(255, 193, 7, 0.1);
            color: #ffc107;
        }
        
        .stage-mid {
            background-color: rgba(0, 123, 255, 0.1);
            color: #007bff;
        }
        
        .stage-late {
            background-color: rgba(40, 167, 69, 0.1);
            color: #28a745;
        }
        
        /* Timeline styling */
        .timeline-container {
            position: relative;
            max-width: 800px;
            margin: 2rem auto;
        }
        
        .timeline {
            position: relative;
            padding-left: 2rem;
        }
        
        .timeline::before {
            content: '';
            position: absolute;
            left: 7px;
            top: 0;
            bottom: 0;
            width: 2px;
            background-color: var(--primary-color);
        }
        
        .timeline-item {
            position: relative;
            margin-bottom: 2rem;
            padding-left: 2rem;
        }
        
        .timeline-item::before {
            content: '';
            position: absolute;
            left: -8px;
            top: 0;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background-color: white;
            border: 3px solid var(--primary-color);
        }
        
        .timeline-item.current::before {
            background-color: var(--primary-color);
        }
        
        .timeline-date {
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }
        
        .timeline-content {
            background: white;
            padding: 1rem;
            border-radius: 6px;
            border: 1px solid var(--border-color);
        }
        
        /* Symptom tracker */
        .symptom-tracker {
            background-color: rgba(138, 75, 175, 0.05);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border: 1px solid rgba(138, 75, 175, 0.2);
        }
        
        .symptom-item {
            display: flex;
            align-items: center;
            padding: 0.75rem;
            border-bottom: 1px solid rgba(138, 75, 175, 0.1);
        }
        
        .symptom-item:last-child {
            border-bottom: none;
        }
        
        .symptom-checkbox {
            margin-right: 1rem;
        }
        
        .symptom-name {
            flex-grow: 1;
            font-weight: 500;
        }
        
        .symptom-severity {
            font-size: 0.85rem;
            color: var(--text-muted);
        }
        
        .symptom-normal {
            color: var(--medical-green);
        }
        
        .symptom-warning {
            color: var(--medical-yellow);
        }
        
        .symptom-danger {
            color: var(--medical-red);
        }
        
        /* Postpartum chart styling */
        .recovery-chart-container {
            position: relative;
            height: 350px;
            width: 100%;
            margin: 1.5rem 0;
        }
        
        /* Recovery classification */
        .recovery-classification {
            padding: 1rem;
            border-radius: 8px;
            margin: 1rem 0;
            border-left: 5px solid;
        }
        
        .recovery-on-track {
            background-color: rgba(40, 167, 69, 0.1);
            border-left-color: var(--medical-green);
        }
        
        .recovery-caution {
            background-color: rgba(255, 193, 7, 0.1);
            border-left-color: var(--medical-yellow);
        }
        
        .recovery-concern {
            background-color: rgba(220, 53, 69, 0.1);
            border-left-color: var(--medical-red);
        }
        
        /* Self-care tips */
        .self-care-tips {
            background-color: rgba(138, 75, 175, 0.05);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border: 1px solid rgba(138, 75, 175, 0.2);
        }
        
        .tip-card {
            background: white;
            border-radius: 8px;
            padding: 1rem;
            margin-bottom: 1rem;
            border: 1px solid rgba(138, 75, 175, 0.1);
        }
        
        .tip-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: rgba(138, 75, 175, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            color: var(--primary-color);
        }
        
        /* Checkup reminders */
        .checkup-reminder {
            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);
        }
        
        /* Cultural traditions styling */
        .cultural-tradition-card {
            background: white;
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            border: 1px solid var(--border-color);
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
            border-top: 4px solid var(--cultural-gold);
        }
        
        .cultural-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--cultural-gold) 0%, #ffed4e 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
            color: white;
            font-size: 1.5rem;
        }
        
        .tradition-comparison {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin: 1rem 0;
        }
        
        @media (max-width: 768px) {
            .tradition-comparison {
                grid-template-columns: 1fr;
            }
        }
        
        .tradition-column {
            padding: 1rem;
            border-radius: 6px;
        }
        
        .traditional-column {
            background-color: rgba(255, 215, 0, 0.05);
            border: 1px solid rgba(255, 215, 0, 0.2);
        }
        
        .modern-column {
            background-color: rgba(138, 75, 175, 0.05);
            border: 1px solid rgba(138, 75, 175, 0.2);
        }
        
        .column-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid;
        }
        
        .traditional-title {
            color: #b8860b;
            border-bottom-color: rgba(184, 134, 11, 0.3);
        }
        
        .modern-title {
            color: var(--primary-color);
            border-bottom-color: rgba(138, 75, 175, 0.3);
        }
        
        /* Cultural nutrition guide */
        .nutrition-phase {
            margin-bottom: 1.5rem;
            padding: 1rem;
            border-radius: 8px;
            background: white;
            border: 1px solid var(--border-color);
        }
        
        .nutrition-phase-header {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
        }
        
        .phase-badge {
            background-color: var(--primary-color);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-weight: 600;
            margin-right: 1rem;
        }
        
        /* Global traditions grid */
        .global-traditions-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 1.5rem;
            margin: 1.5rem 0;
        }
        
        .global-tradition-card {
            background: white;
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            text-align: center;
            transition: all 0.3s;
        }
        
        .global-tradition-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .region-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            color: white;
            font-size: 1.5rem;
        }
        
        .east-asia-icon {
            background: linear-gradient(135deg, #d4af37 0%, #ffd700 100%);
        }
        
        .africa-icon {
            background: linear-gradient(135deg, #228B22 0%, #32CD32 100%);
        }
        
        .latin-america-icon {
            background: linear-gradient(135deg, #8B0000 0%, #FF4500 100%);
        }
        
        .europe-icon {
            background: linear-gradient(135deg, #1E90FF 0%, #87CEEB 100%);
        }
        
        .region-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--text-color);
        }
        
        .region-duration {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
        }
    