        :root {
            --primary-color: #27ae60;
            --secondary-color: #a9dfbf;
            --accent-color: #196f3d;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #6c757d;
            --protein-color: #3498db;
            --carbs-color: #f39c12;
            --fat-color: #e74c3c;
            --fiber-color: #9b59b6;
            --sugar-color: #1abc9c;
            --breakfast-color: #3498db;
            --lunch-color: #2ecc71;
            --dinner-color: #9b59b6;
            --snack-color: #f39c12;
        }
        
       
        
        .page-header {
            background: linear-gradient(135deg, rgba(169, 223, 191, 0.4) 0%, rgba(39, 174, 96, 0.4) 100%);
            padding: 1.5rem 0;
            margin-bottom: 2rem;
            border-bottom: 1px solid rgba(39, 174, 96, 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);
        }
         
        /* Summary Cards */
        .summary-card {
            background: 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);
        }
        
        .summary-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }
        
        .summary-label {
            color: var(--text-muted);
            font-size: 0.9rem;
        }
        
        /* Chart Container */
        .chart-container {
            position: relative;
            height: 400px;
            width: 100%;
            margin: 2rem 0;
        }
        
        /* Nutrition Summary */
        .nutrition-summary {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 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);
            text-align: center;
        }
        
        .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(39, 174, 96, 0.05);
            border-left: 3px solid var(--primary-color);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
        
        .nutrition-info-box {
            background-color: rgba(52, 152, 219, 0.05);
            border-left: 3px solid var(--protein-color);
            padding: 1rem;
            border-radius: 0 4px 4px 0;
            margin: 1.5rem 0;
        }
        
        /* Food Search & Selection */
        .food-search-container {
            position: relative;
            margin-bottom: 1.5rem;
        }
        
        .food-search-results {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid var(--border-color);
            border-radius: 0 0 6px 6px;
            max-height: 300px;
            overflow-y: auto;
            z-index: 1000;
            display: none;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        
        .food-search-result {
            padding: 0.75rem 1rem;
            border-bottom: 1px solid var(--border-color);
            cursor: pointer;
            transition: background-color 0.2s;
        }
        
        .food-search-result:hover {
            background-color: rgba(39, 174, 96, 0.1);
        }
        
        .food-search-result:last-child {
            border-bottom: none;
        }
        
        .food-name {
            font-weight: 600;
            margin-bottom: 0.25rem;
        }
        
        .food-details {
            font-size: 0.85rem;
            color: var(--text-muted);
        }
        
        /* Meal Diary */
        .meal-diary {
            margin-bottom: 2rem;
        }
        
        .meal-section {
            margin-bottom: 2rem;
        }
        
        .meal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid;
        }
        
        .breakfast-header {
            border-color: var(--breakfast-color);
        }
        
        .lunch-header {
            border-color: var(--lunch-color);
        }
        
        .dinner-header {
            border-color: var(--dinner-color);
        }
        
        .snacks-header {
            border-color: var(--snack-color);
        }
        
        .meal-title {
            font-weight: 600;
            color: var(--text-color);
        }
        
        .meal-total {
            font-weight: 600;
            color: var(--primary-color);
        }
        
        .food-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem;
            border-bottom: 1px solid var(--border-color);
            background-color: white;
        }
        
        .food-item:last-child {
            border-bottom: none;
        }
        
        .food-item:hover {
            background-color: rgba(39, 174, 96, 0.05);
        }
        
        .food-item-info {
            flex: 1;
        }
        
        .food-item-name {
            font-weight: 500;
            margin-bottom: 0.25rem;
        }
        
        .food-item-serving {
            font-size: 0.85rem;
            color: var(--text-muted);
        }
        
        .food-item-calories {
            font-weight: 600;
            color: var(--primary-color);
        }
        
        .food-item-actions {
            margin-left: 1rem;
        }
        
        .empty-meal {
            padding: 2rem;
            text-align: center;
            color: var(--text-muted);
            background-color: rgba(0,0,0,0.02);
            border-radius: 6px;
        }
        
        /* Progress Bar */
        .progress-container {
            margin: 1.5rem 0;
        }
        
        .progress {
            height: 1.5rem;
            border-radius: 0.75rem;
            background-color: #e9ecef;
            overflow: hidden;
        }
        
        .progress-bar {
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 0.85rem;
        }
        
        .calorie-progress {
            background-color: var(--primary-color);
        }
        
        .protein-progress {
            background-color: var(--protein-color);
        }
        
        .carbs-progress {
            background-color: var(--carbs-color);
        }
        
        .fat-progress {
            background-color: var(--fat-color);
        }
        
        /* Nutrient Badges */
        .nutrient-badge {
            display: inline-block;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 600;
            margin-right: 0.5rem;
            margin-bottom: 0.5rem;
        }
        
        .protein-badge {
            background-color: rgba(52, 152, 219, 0.1);
            color: var(--protein-color);
            border: 1px solid rgba(52, 152, 219, 0.2);
        }
        
        .carbs-badge {
            background-color: rgba(243, 156, 18, 0.1);
            color: var(--carbs-color);
            border: 1px solid rgba(243, 156, 18, 0.2);
        }
        
        .fat-badge {
            background-color: rgba(231, 76, 60, 0.1);
            color: var(--fat-color);
            border: 1px solid rgba(231, 76, 60, 0.2);
        }
        
        .fiber-badge {
            background-color: rgba(155, 89, 182, 0.1);
            color: var(--fiber-color);
            border: 1px solid rgba(155, 89, 182, 0.2);
        }
        
        .sugar-badge {
            background-color: rgba(26, 188, 156, 0.1);
            color: var(--sugar-color);
            border: 1px solid rgba(26, 188, 156, 0.2);
        }
         
        /* Responsive Adjustments */
        @media (max-width: 768px) {
 
            .nutrition-summary {
                grid-template-columns: 1fr;
            }
        }
         
        
        /* Tabs for meal selection */
        .meal-tabs {
            display: flex;
            background-color: var(--light-gray);
            border-radius: 6px;
            padding: 4px;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }
        
        .meal-tab {
            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;
        }
        
        .meal-tab.active {
            background-color: var(--primary-color);
            color: white;
        }
        
        /* Serving size selector */
        .serving-selector {
            display: flex;
            align-items: center;
            margin-bottom: 1.5rem;
        }
        
        .serving-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background-color: var(--light-gray);
            border: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-weight: bold;
        }
        
        .serving-value {
            margin: 0 1rem;
            font-weight: 600;
            min-width: 60px;
            text-align: center;
        }
        
        /* Food database table */
        .food-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }
        
        .food-table th, .food-table td {
            padding: 0.75rem;
            text-align: left;
            border-bottom: 1px solid var(--border-color);
        }
        
        .food-table th {
            background-color: var(--light-gray);
            font-weight: 600;
        }
        
        .food-table tr:hover {
            background-color: rgba(39, 174, 96, 0.05);
        }
        
        /* Quick add buttons */
        .quick-add-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }
        
        .quick-add-btn {
            padding: 0.5rem 1rem;
            border-radius: 20px;
            background-color: white;
            border: 1px solid var(--border-color);
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .quick-add-btn:hover {
            background-color: rgba(39, 174, 96, 0.1);
            border-color: var(--primary-color);
        }
        
        /* Daily goal settings */
        .goal-settings {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-bottom: 1.5rem;
        }
        
        .goal-setting {
            display: flex;
            flex-direction: column;
        }
        
        /* Water tracker */
        .water-tracker {
            display: flex;
            align-items: center;
            margin-bottom: 1.5rem;
            padding: 1rem;
            background-color: rgba(52, 152, 219, 0.05);
            border-radius: 8px;
        }
        
        .water-icon {
            font-size: 2rem;
            color: var(--protein-color);
            margin-right: 1rem;
        }
        
        .water-controls {
            display: flex;
            align-items: center;
        }
        
        .water-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: white;
            border: 2px solid var(--protein-color);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-weight: bold;
            color: var(--protein-color);
            margin-right: 0.5rem;
        }
        
        .water-progress {
            flex: 1;
            margin: 0 1rem;
        }
    