* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #5a8a8a 0%, #4e7d7d 15%, #427070 30%, #366363 45%, #2a5656 60%, #1e4949 75%, #123c3c 90%, #0a2f2f 100%);
    min-height: 100vh;
    color: #1a1a1a;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(90, 138, 138, 0.15) 0%, rgba(78, 125, 125, 0.15) 15%, rgba(66, 112, 112, 0.15) 30%, rgba(54, 99, 99, 0.15) 45%, rgba(42, 86, 86, 0.15) 60%, rgba(30, 73, 73, 0.15) 75%, rgba(18, 60, 60, 0.15) 90%, rgba(10, 47, 47, 0.15) 100%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.main-container {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    overflow: hidden;
    min-height: 600px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: #1a1a1a;
    padding: 30px 20px 0;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: none;
    background: linear-gradient(135deg, #4caf50, #81c784, #ffb74d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    font-size: 1.2rem;
    opacity: 0.8;
    color: #4a4a4a;
}

.wizard-container {
    background: transparent;
}

.progress-bar {
    background: #f8f9fa;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #66bb6a, #ffb74d);
    transition: width 0.3s ease;
    width: 16.67%;
}

.progress-text {
    font-weight: 600;
    color: #1a1a1a;
    z-index: 1;
}

.step {
    display: none;
    padding: 40px;
    text-align: center;
    min-height: 540px;
}

.step.active {
    display: block;
}

.step h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #1a1a1a;
    font-weight: 700;
}

.step p {
    font-size: 1.1rem;
    color: #2d2d2d;
    margin-bottom: 30px;
    line-height: 1.6;
}

.nutrient-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.nutrient-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: #1a1a1a;
    padding: 25px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.nutrient-card:hover {
    transform: translateY(-5px);
    background: #f0f0f0;
    border-color: #4caf50;
}

.nutrient-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.nutrient-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.food-examples, .protein-examples, .grain-examples, .nuts-examples, .fruits-examples, .all-examples {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding:20px;
}

.food-examples img, .protein-examples img, .grain-examples img, .nuts-examples img, .fruits-examples img, .all-examples img {
    max-width: 50%;
    height: auto;
    border-radius: 12px;
}

.food-tag {
    background: #f0f8f0;
    border: 1px solid #4caf50;
    color: #2e7d32;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
}

.portion-slider {
    margin: 40px 0 40px 0;
}

.portion-slider label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e0e0e0;
    outline: none;
    margin-bottom: 15px;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.portion-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #4a4a4a;
    margin-bottom: 10px;
}

.portion-display {
    font-size: 1.3rem;
    font-weight: bold;
    color: #66bb6a;
    margin-top: 10px;
}

.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: #1a1a1a;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Results Screen Styles */
.score-container {
    margin: 30px 0;
}

.score-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #4caf50 0%, #66bb6a 50%, #ffb74d 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 20px 60px rgba(76, 175, 80, 0.4);
    position: relative;
}

.score-circle::before {
    content: '';
    position: absolute;
    inset: 8px;
    background: #ffffff;
    border-radius: 50%;
}

.score-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1a1a1a;
    z-index: 1;
}

.score-label {
    font-size: 1rem;
    color: #4a4a4a;
    opacity: 0.9;
    z-index: 1;
}

.score-description {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.nutrient-breakdown {
    text-align: left;
    margin: 40px 0;
}

.nutrient-breakdown h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #1a1a1a;
    font-weight: 700;
}

.nutrient-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nutrient-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nutrient-name {
    min-width: 150px;
    font-weight: 600;
    color: #1a1a1a;
}

.bar-container {
    flex: 1;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s ease;
    background: linear-gradient(90deg, #4caf50, #66bb6a, #ffb74d);
}

.bar-percentage {
    min-width: 50px;
    text-align: right;
    font-weight: 600;
    color: #1a1a1a;
}

.omega-balance {
    margin: 40px 0;
    text-align: center;
}

.omega-balance h3 {
    margin-bottom: 25px;
    color: #1a1a1a;
    font-weight: 700;
}

.balance-indicator {
    max-width: 400px;
    margin: 0 auto;
}

.balance-bar {
    height: 30px;
    border-radius: 15px;
    display: flex;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}

.omega3-section {
    background: linear-gradient(90deg, #4db6ac, #26a69a);
    transition: width 0.8s ease;
}

.omega6-section {
    background: linear-gradient(90deg, #8bc34a, #689f38);
    transition: width 0.8s ease;
}

.balance-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.balance-labels span:first-child {
    color: #4db6ac;
}

.balance-labels span:last-child {
    color: #8bc34a;
}

#balanceStatus {
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #1a1a1a;
}

.recommendations {
    text-align: left;
    margin: 40px 0;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 25px;
    border-radius: 20px;
}

.recommendations h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 700;
}

.recommendations ul {
    list-style: none;
}

.recommendations li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    padding-left: 25px;
    color: #1a1a1a;
}

.recommendations li:before {
    content: "💡";
    position: absolute;
    left: 0;
}

.recommendations li:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .step {
        padding: 20px;
    }
    
    .step h2 {
        font-size: 1.8rem;
    }
    
    .nutrient-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .nutrient-card {
        padding: 20px;
    }
    
    .nutrient-number {
        font-size: 2rem;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
    }
    
    .nutrient-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .nutrient-name {
        min-width: auto;
    }
    
    .bar-container {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .nutrient-overview {
        grid-template-columns: 1fr;
    }
    
    .food-examples {
        justify-content: center;
    }
    
    .food-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Animation for step transitions */
.step {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
    transform: translateX(0);
}

/* Loading animation for score calculation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.calculating .score-circle {
    animation: pulse 1s infinite;
}
