/* Nutrition Tracker Styles */

/* Hero Section */
.nutrition-hero {
    background: linear-gradient(135deg, #38a169 0%, #48bb78 25%, #68d391 50%, #9ae6b4 75%, #38a169 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.nutrition-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="nutrition-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="2" fill="rgba(255,255,255,0.1)"/><path d="M 5 10 Q 10 5 15 10" stroke="rgba(255,255,255,0.08)" stroke-width="1.5" fill="none"/><circle cx="3" cy="3" r="1" fill="rgba(255,255,255,0.06)"/><circle cx="17" cy="3" r="1" fill="rgba(255,255,255,0.06)"/><circle cx="3" cy="17" r="1" fill="rgba(255,255,255,0.06)"/><circle cx="17" cy="17" r="1" fill="rgba(255,255,255,0.06)"/></pattern></defs><rect width="100" height="100" fill="url(%23nutrition-pattern)"/></svg>');
    opacity: 0.7;
}

.nutrition-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.7;
}

.breadcrumb i {
    margin: 0 10px;
    font-size: 12px;
}

.nutrition-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.nutrition-highlight {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nutrition-hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
    line-height: 1.6;
}

.nutrition-hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.nutrition-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.nutrition-stat-item i {
    font-size: 1.2rem;
    color: #ffd700;
}

/* Nutrition Tracker Section */
.nutrition-tracker {
    padding: 80px 0;
    background: #f8fafc;
}

/* Tabs */
.tracker-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    background: white;
    border-radius: 15px;
    padding: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 0 auto 40px;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex: 1;
    justify-content: center;
}

.tab-btn.active {
    background: linear-gradient(135deg, #38a169, #48bb78);
    color: white;
    box-shadow: 0 4px 15px rgba(56, 161, 105, 0.3);
}

.tab-btn:hover:not(.active) {
    background: #f7fafc;
    color: #38a169;
}

.tab-btn i {
    font-size: 0.9rem;
}

/* Tab Content */
.tab-content {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Today's Intake Tab */
.today-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.today-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    display: flex;
    align-items: center;
    gap: 15px;
}

.today-header h2 i {
    color: #38a169;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 10px 15px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.date-btn {
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: #4a5568;
    transition: all 0.3s ease;
}

.date-btn:hover {
    background: #f7fafc;
    color: #38a169;
}

.date-selector input {
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
}

/* Nutrition Dashboard */
.nutrition-dashboard {
    display: grid;
    gap: 40px;
}

.macro-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.macro-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.macro-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.macro-card.calories {
    border-left: 5px solid #f56565;
}

.macro-card.protein {
    border-left: 5px solid #4299e1;
}

.macro-card.carbs {
    border-left: 5px solid #48bb78;
}

.macro-card.fats {
    border-left: 5px solid #ed8936;
}

.macro-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    margin-bottom: 15px;
}

.macro-card.calories .macro-icon {
    background: linear-gradient(135deg, #f56565, #e53e3e);
}

.macro-card.protein .macro-icon {
    background: linear-gradient(135deg, #4299e1, #3182ce);
}

.macro-card.carbs .macro-icon {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.macro-card.fats .macro-icon {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
}

.macro-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 5px;
}

.macro-label {
    font-size: 1rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.macro-goal {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 15px;
}

.macro-progress {
    margin-top: 15px;
}

.progress-bar {
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.macro-card.calories .progress-fill {
    background: linear-gradient(135deg, #f56565, #e53e3e);
}

.macro-card.protein .progress-fill {
    background: linear-gradient(135deg, #4299e1, #3182ce);
}

.macro-card.carbs .progress-fill {
    background: linear-gradient(135deg, #48bb78, #38a169);
}

.macro-card.fats .progress-fill {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
}

/* Meals Section */
.meals-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.meal-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.meal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #38a169;
}

.meal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.meal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

.meal-header h3 i {
    color: #38a169;
}

.meal-calories {
    font-size: 1rem;
    font-weight: 600;
    color: #718096;
}

.meal-foods {
    min-height: 120px;
    margin-bottom: 20px;
}

.empty-meal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    color: #a0aec0;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.empty-meal:hover {
    border-color: #38a169;
    color: #38a169;
}

.empty-meal i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.food-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.food-item:hover {
    background: #edf2f7;
    transform: translateX(5px);
}

.food-info {
    flex: 1;
}

.food-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 3px;
}

.food-serving {
    font-size: 0.85rem;
    color: #718096;
}

.food-calories {
    font-weight: 600;
    color: #38a169;
}

.food-actions {
    display: flex;
    gap: 5px;
}

.food-action-btn {
    background: transparent;
    border: none;
    padding: 5px;
    border-radius: 4px;
    cursor: pointer;
    color: #718096;
    transition: all 0.3s ease;
}

.food-action-btn:hover {
    color: #e53e3e;
    background: #fed7d7;
}

.add-food-btn {
    background: linear-gradient(135deg, #38a169, #48bb78);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.add-food-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 161, 105, 0.3);
}

/* Add Foods Tab */
.foods-header {
    text-align: center;
    margin-bottom: 40px;
}

.foods-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.foods-header h2 i {
    color: #38a169;
}

.foods-header p {
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

.food-search {
    display: grid;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #38a169;
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.1);
}

.search-btn {
    background: linear-gradient(135deg, #38a169, #48bb78);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56, 161, 105, 0.3);
}

/* Quick Add */
.quick-add {
    background: white;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.quick-add h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-add h3 i {
    color: #38a169;
}

.quick-foods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.quick-food-btn {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #4a5568;
}

.quick-food-btn:hover {
    border-color: #38a169;
    color: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 161, 105, 0.15);
}

.quick-food-btn i {
    font-size: 1.5rem;
    color: #38a169;
}

/* Custom Food */
.custom-food {
    background: white;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.custom-food h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-food h3 i {
    color: #38a169;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    position: relative;
}

.input-group label {
    display: block;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

.input-group input:focus {
    outline: none;
    border-color: #38a169;
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.1);
}

.input-unit {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
    pointer-events: none;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.add-custom-btn {
    background: linear-gradient(135deg, #38a169, #48bb78);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.add-custom-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(56, 161, 105, 0.3);
}

/* Progress Tab */
.progress-header {
    text-align: center;
    margin-bottom: 40px;
}

.progress-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.progress-header h2 i {
    color: #38a169;
}

.progress-header p {
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

.progress-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.progress-filters select {
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-filters select:focus {
    outline: none;
    border-color: #38a169;
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.1);
}

.progress-charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.chart-container,
.progress-summary {
    background: white;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.chart-container h3,
.progress-summary h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
}

.chart-placeholder {
    height: 300px;
    background: #f7fafc;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #718096;
    border: 2px dashed #e2e8f0;
}

.chart-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #cbd5e0;
}

.summary-stats {
    display: grid;
    gap: 20px;
}

.summary-item {
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    text-align: center;
}

.summary-label {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 5px;
}

.summary-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
}

/* Goals Tab */
.goals-header {
    text-align: center;
    margin-bottom: 40px;
}

.goals-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.goals-header h2 i {
    color: #38a169;
}

.goals-header p {
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

.goals-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.goal-presets,
.custom-goals {
    background: white;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.goal-presets h3,
.custom-goals h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.goal-presets h3 i,
.custom-goals h3 i {
    color: #38a169;
}

.preset-options {
    display: grid;
    gap: 15px;
}

.preset-btn {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.preset-btn:hover {
    border-color: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 161, 105, 0.15);
}

.preset-btn i {
    font-size: 1.5rem;
    color: #38a169;
}

.preset-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.preset-desc {
    font-size: 0.9rem;
    color: #718096;
}

.save-goals-btn {
    background: linear-gradient(135deg, #38a169, #48bb78);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.save-goals-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(56, 161, 105, 0.3);
}

.reset-goals-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.reset-goals-btn:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

/* Diet Insights Tab */
.insights-header {
    text-align: center;
    margin-bottom: 40px;
}

.insights-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.insights-header h2 i {
    color: #38a169;
}

.insights-header p {
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.insight-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #38a169;
}

.insight-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #38a169, #48bb78);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
}

.insight-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
}

/* Macro Distribution */
.macro-distribution {
    display: grid;
    gap: 10px;
}

.distribution-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #4a5568;
}

.distribution-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.protein-color {
    background: #4299e1;
}

.carbs-color {
    background: #48bb78;
}

.fats-color {
    background: #ed8936;
}

/* Eating Patterns */
.eating-patterns,
.food-variety {
    display: grid;
    gap: 15px;
}

.pattern-item,
.variety-item {
    padding: 10px 0;
    border-bottom: 1px solid #f7fafc;
    color: #4a5568;
    font-size: 0.9rem;
}

.pattern-item:last-child,
.variety-item:last-child {
    border-bottom: none;
}

/* Recommendations */
.recommendations {
    display: grid;
    gap: 12px;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
}

.recommendation-item i {
    color: #38a169;
    margin-top: 2px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 25px 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 25px;
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #718096;
    cursor: pointer;
    padding: 5px;
}

.close-btn:hover {
    color: #e53e3e;
}

.modal-body {
    padding: 0 25px 25px;
}

.nutrition-preview {
    margin-top: 20px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 8px;
}

.nutrition-preview h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.nutrition-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.nutrition-item:last-child {
    border-bottom: none;
}

.nutrition-label {
    font-weight: 500;
    color: #4a5568;
}

.nutrition-value {
    font-weight: 600;
    color: #2d3748;
}

.modal-footer {
    padding: 25px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.cancel-btn {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #e2e8f0;
}

.confirm-btn {
    background: linear-gradient(135deg, #38a169, #48bb78);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 161, 105, 0.3);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 60px 0;
    flex-wrap: wrap;
}

.action-btn {
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn:hover {
    border-color: #38a169;
    color: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 161, 105, 0.15);
}

/* Related Tools */
.related-tools {
    padding: 80px 0;
    background: white;
}

.related-tools .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.related-tools .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 15px;
}

.related-tools .section-header p {
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

.related-tools .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-tools .tool-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.related-tools .tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: #38a169;
}

.related-tools .tool-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #38a169, #48bb78);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.related-tools .tool-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 10px;
}

.related-tools .tool-card p {
    color: #718096;
    margin-bottom: 20px;
    line-height: 1.6;
}

.related-tools .tool-link {
    color: #38a169;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.related-tools .tool-link:hover {
    gap: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nutrition-hero {
        padding: 100px 0 60px;
    }
    
    .nutrition-hero-title {
        font-size: 2.5rem;
    }
    
    .nutrition-hero-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .tracker-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .tab-btn {
        flex: none;
        min-width: 120px;
        font-size: 0.85rem;
    }
    
    .today-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .macro-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .meals-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .progress-charts {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .goals-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .input-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .quick-foods {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nutrition-hero-title {
        font-size: 2rem;
    }
    
    .nutrition-hero-stats {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .tracker-tabs {
        padding: 5px;
        gap: 3px;
    }
    
    .tab-btn {
        padding: 12px 8px;
        font-size: 0.75rem;
        min-width: 100px;
    }
    
    .macro-overview {
        grid-template-columns: 1fr;
    }
    
    .quick-foods {
        grid-template-columns: 1fr;
    }
    
    .nutrition-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #38a169;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.message.success {
    background: #f0fff4;
    color: #38a169;
    border: 1px solid #9ae6b4;
}

.message.error {
    background: #fed7d7;
    color: #e53e3e;
    border: 1px solid #feb2b2;
}

.input-group input.error,
.input-group select.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}
