/* Serving Size Modal Styles */
.serving-food-info {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.serving-food-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.serving-food-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.serving-options {
    margin-bottom: 1.5rem;
}

.serving-unit-selector {
    margin-bottom: 1rem;
}

.serving-unit-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.unit-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.unit-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.unit-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
}

.unit-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.current-serving {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    text-align: center;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.serving-multiplier {
    margin-bottom: 1rem;
}

.serving-multiplier label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.multiplier-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.multiplier-controls button {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: var(--radius);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.multiplier-controls button:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
}

.multiplier-controls input {
    width: 80px;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.multiplier-controls input:focus {
    outline: none;
    border-color: var(--primary);
}

.serving-preview {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 2px solid var(--border);
}

.preview-macros {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.preview-macros span {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.preview-calories {
    background: #fdcb6e;
}

.preview-protein {
    background: #e84393;
}

.preview-carbs {
    background: #74b9ff;
}

.preview-fat {
    background: #00cec9;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .multiplier-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .multiplier-controls input {
        width: 100px;
    }
    
    .preview-macros {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .preview-macros span {
        width: 100%;
        text-align: center;
    }
}