
:root {
    --primary-color: #38a169; /* Green */
    --primary-light: #68d391;
    --primary-dark: #2f855a;
    --secondary-color: #3182ce; /* Blue */
    --secondary-light: #63b3ed;
    --secondary-dark: #2c5282;
    --bg-light: #f7fafc;
    --text-dark: #2d3748;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(56, 161, 105, 0.05) 0%, rgba(49, 130, 206, 0.07) 90%);
}

.card {
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
}

.meal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: white;
    font-size: 24px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.meal-icon:hover {
    transform: scale(1.1);
    background-color: var(--primary-color);
}

.activity-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-light);
    color: white;
    font-size: 24px;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.activity-icon:hover {
    transform: scale(1.1);
    background-color: var(--secondary-color);
}

.timeline {
    position: relative;
    margin: 40px 0;
    padding: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-left: 45px;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -35px;
    top: 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    border: 4px solid var(--primary-color);
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item.active::before {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.bg-vector {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%2338a169' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'/%3E%3C/svg%3E");
}

.bg-food-vector {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    opacity: 0.05;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%233182ce' d='M168 352c-59.8 0-106.2-54-106.2-120S108.2 112 168 112s106.2 54 106.2 120-46.4 120-106.2 120zm0-208c-44.2 0-74.2 39.8-74.2 88s30.1 88 74.2 88 74.2-39.8 74.2-88-30-88-74.2-88zM344 352c-59.8 0-106.2-54-106.2-120S284.2 112 344 112s106.2 54 106.2 120-46.4 120-106.2 120zm0-208c-44.2 0-74.2 39.8-74.2 88s30.1 88 74.2 88 74.2-39.8 74.2-88-30-88-74.2-88zM96 448c-8.8 0-16-7.2-16-16s7.2-16 16-16h320c8.8 0 16 7.2 16 16s-7.2 16-16 16H96z'/%3E%3C/svg%3E");
}

.input-field {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.2);
    outline: none;
}

.section-title {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 60px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.6s ease-out forwards;
}

.meal-timeline-marker {
    position: absolute;
    height: 25px;
    width: 25px;
    border-radius: 50%;
    background-color: var(--primary-color);
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.workout-marker {
    background-color: var(--secondary-color);
}

.timeline-scale {
    height: 4px;
    background-color: #e2e8f0;
    border-radius: 2px;
    position: relative;
    margin: 40px 0;
}

.timeline-tooltip {
    position: absolute;
    background-color: white;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    top: -45px;
    transform: translateX(-50%);
    z-index: 10;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-left: 4px solid var(--primary-color);
}

.tooltip-arrow {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid white;
}

.formula-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color);
    transition: all 0.3s ease;
}

.formula-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.nutrient-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
    color: white;
}

.protein-badge {
    background-color: var(--primary-color);
}

.carb-badge {
    background-color: var(--secondary-color);
}

.fat-badge {
    background-color: #ed8936;
}

/* For print/PDF optimization */
@media print {
    body {
        width: 100%;
        margin: 0;
        padding: 0;
        background: white;
    }
    
    .card {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
    
    .container {
        width: 100% !important;
        max-width: none !important;
    }
}