        :root {
            --primary-color: #28a745;
            --secondary-color: #c3e6cb;
            --accent-color: #1e7e34;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #6c757d;
            --success-color: #28a745;
            --warning-color: #ffc107;
            --danger-color: #dc3545;
            --info-color: #17a2b8;
            --protein-color: #fd7e14;
            --carbs-color: #007bff;
            --fat-color: #6f42c1;
        }
         
        .page-header {
            background: linear-gradient(135deg, rgba(195, 230, 203, 0.4) 0%, rgba(40, 167, 69, 0.4) 100%);
            padding: 1.5rem 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid rgba(40, 167, 69, 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);
        }
         
        
        /* Financial Summary */
        .nutrition-summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }
        
        .nutrition-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);
        }
        
        .nutrition-item h4 {
            font-size: 1rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
        }
        
        .nutrition-item .value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
        }
        
        .nutrition-item .detail {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-top: 0.5rem;
        }
        
        /* Content Sections */
        .section-title {
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--primary-color);
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border-color);
        }
        
        .usage-step {
            display: flex;
            margin-bottom: 1.5rem;
            align-items: flex-start;
        }
        
        .step-number {
            width: 28px;
            height: 28px;
            background-color: var(--primary-color);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            flex-shrink: 0;
            font-weight: 600;
            font-size: 0.9rem;
        }
        
        .info-box {
            background-color: rgba(40, 167, 69, 0.05);
            border-left: 3px solid var(--primary-color);
            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(--danger-color);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
        
        /* Related Tools */
        .related-tools {
            background-color: white;
            border-radius: 8px;
            border: 1px solid var(--border-color); 
            margin-bottom: 1.5rem;
        }
        
        .related-title {
            font-weight: 600;
            margin-bottom: 1.25rem;
            padding-bottom: 0.75rem; 
            color: var(--primary-color);
        }
        
        .related-tool {
            display: flex;
            align-items: center;
            padding: 0.75rem 0;
            border-bottom: 1px solid var(--border-color);
            transition: background-color 0.3s;
        }
        
        .related-tool:hover {
            background-color: var(--light-gray);
        }
        
        .related-tool:last-child {
            border-bottom: none;
        }
        
        .related-icon {
            width: 36px;
            height: 36px;
            border-radius: 6px;
            background-color: rgba(40, 167, 69, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            color: var(--primary-color);
        }
        
        .related-name {
            font-weight: 500;
            margin-bottom: 0.25rem;
        }
        
        .related-desc {
            color: var(--text-muted);
            font-size: 0.9rem;
        }
        
        /* Ad Container */
        .ad-container {
            background-color: var(--light-gray);
            border-radius: 8px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            text-align: center;
            border: 1px solid var(--border-color);
        }
        
        .ad-label {
            font-size: 0.75rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 0.5rem;
        }
        
        .ad-placeholder {
            width: 100%;
            height: 250px;
            background-color: #f0f4f8;
            border: 1px dashed #dee2e6;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            font-weight: 500;
        }
        
        /* Footer */
        .footer {
            background-color: var(--light-gray); 
            margin-top: 3rem;
            border-top: 1px solid var(--border-color);
        }
        
        /* Responsive Adjustments */
        @media (max-width: 768px) {
            .tool-card {
                padding: 1.5rem;
            }
            
            .nutrition-summary {
                grid-template-columns: 1fr;
            }
        }
        
        /* 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);
        }
        
        /* Macro breakdown */
        .macro-breakdown {
            display: flex;
            height: 30px;
            border-radius: 6px;
            overflow: hidden;
            margin: 1.5rem 0;
        }
        
        .macro-protein {
            background-color: var(--protein-color);
        }
        
        .macro-carbs {
            background-color: var(--carbs-color);
        }
        
        .macro-fat {
            background-color: var(--fat-color);
        }
        
        .macro-legend {
            display: flex;
            justify-content: space-between;
            margin-top: 1rem;
        }
        
        .macro-legend-item {
            display: flex;
            align-items: center;
        }
        
        .macro-color {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin-right: 0.5rem;
        }
        
        .macro-protein-color {
            background-color: var(--protein-color);
        }
        
        .macro-carbs-color {
            background-color: var(--carbs-color);
        }
        
        .macro-fat-color {
            background-color: var(--fat-color);
        }
        
        /* Goal selector */
        .goal-selector {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 1.5rem;
        }
        
        .goal-option {
            flex: 1;
            min-width: 140px;
            text-align: center;
            padding: 1rem;
            border: 2px solid var(--border-color);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .goal-option:hover {
            border-color: var(--primary-color);
            background-color: rgba(40, 167, 69, 0.05);
        }
        
        .goal-option.active {
            border-color: var(--primary-color);
            background-color: rgba(40, 167, 69, 0.1);
        }
        
        .goal-icon {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
            color: var(--text-muted);
        }
        
        .goal-option.active .goal-icon {
            color: var(--primary-color);
        }
        
        /* Meal plan table */
        .meal-plan-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        
        .meal-plan-table th, .meal-plan-table td {
            padding: 0.75rem;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }
        
        .meal-plan-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        
        .meal-plan-table tr:hover {
            background-color: rgba(40, 167, 69, 0.05);
        }
        
        /* Activity level selector */
        .activity-levels {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 1.5rem;
        }
        
        .activity-option {
            display: flex;
            align-items: center;
            padding: 0.75rem;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .activity-option:hover {
            border-color: var(--primary-color);
        }
        
        .activity-option.active {
            border-color: var(--primary-color);
            background-color: rgba(40, 167, 69, 0.1);
        }
        
        .activity-icon {
            font-size: 1.25rem;
            margin-right: 1rem;
            color: var(--text-muted);
            width: 40px;
            text-align: center;
        }
        
        .activity-option.active .activity-icon {
            color: var(--primary-color);
        }
        
        .activity-content h6 {
            margin-bottom: 0.25rem;
            font-weight: 600;
        }
        
        .activity-content p {
            margin-bottom: 0;
            font-size: 0.9rem;
            color: var(--text-muted);
        }
        
        /* Measurement system toggle */
        .measurement-toggle {
            display: flex;
            background-color: var(--light-gray);
            border-radius: 6px;
            padding: 4px;
            margin-bottom: 1rem;
            width: fit-content;
        }
        
        .measurement-btn {
            padding: 0.5rem 1rem;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s;
            font-weight: 500;
        }
        
        .measurement-btn.active {
            background-color: var(--primary-color);
            color: white;
        }
        
        /* Generating indicator */
        .generating-indicator {
            display: none;
            text-align: center;
            padding: 1rem;
            color: var(--text-muted);
        }
        
        /* Unit conversion */
        .unit-conversion {
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-top: 0.25rem;
        }
        
        /* New Enhancements */
        
        /* Food Database */
        .food-database {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }
        
        .food-item {
            background: white;
            border-radius: 8px;
            padding: 1rem;
            border: 1px solid var(--border-color);
            transition: all 0.3s;
            cursor: pointer;
        }
        
        .food-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .food-calories {
            font-size: 1.25rem;
            font-weight: bold;
            color: var(--primary-color);
        }
        
        /* Progress Tracker */
        .progress-container {
            background: white;
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            margin-bottom: 1.5rem;
        }
        
        .progress-bar-custom {
            height: 20px;
            border-radius: 10px;
            background-color: var(--light-gray);
            overflow: hidden;
            margin-bottom: 1rem;
        }
        
        .progress-fill {
            height: 100%;
            background-color: var(--primary-color);
            transition: width 0.5s ease;
        }
        
        /* Interactive Calculator */
        .interactive-calc {
            background: white;
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            margin-bottom: 1.5rem;
        }
        
        .calc-controls {
            display: flex;
            gap: 1rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }
        
        .calc-btn {
            padding: 0.5rem 1rem;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            background: white;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .calc-btn:hover {
            background-color: var(--light-gray);
        }
        
        .calc-btn.active {
            background-color: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
        
        /* Social Sharing */
        .social-sharing {
            display: flex;
            gap: 0.5rem;
            margin-top: 1rem;
        }
        
        .social-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .social-btn:hover {
            transform: translateY(-2px);
        }
        
        .facebook { background-color: #3b5998; }
        .twitter { background-color: #1da1f2; }
        .pinterest { background-color: #e60023; }
        .whatsapp { background-color: #25d366; }
        
        /* Tooltip */
        .tooltip-custom {
            position: relative;
            display: inline-block;
            cursor: help;
            border-bottom: 1px dotted var(--text-muted);
        }
        
        .tooltip-custom .tooltip-text {
            visibility: hidden;
            width: 200px;
            background-color: var(--text-color);
            color: white;
            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;
        }
        
        .tooltip-custom:hover .tooltip-text {
            visibility: visible;
            opacity: 1;
        }
        
        /* Enhanced FAQ */
        .faq-item {
            margin-bottom: 1rem;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 1rem;
        }
        
        .faq-item:last-child {
            border-bottom: none;
        }
        
        .faq-question {
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--primary-color);
        }
    